[sane-devel] Ubuntu 11.10 : Support for Umax Astra 4100 via
iain kashyap
iain.kashyap at gmail.com
Tue Dec 13 05:23:53 UTC 2011
Hello Stef, I didnt realize the 100 kb limit. My post bounced. Reposting
my inputs. Please guide me on the next steps. -- Thanks, Iain
> Hello Stef,
>
> I am very thankful to you for helping me here. Your solution worked.
> Following is a transcript of what i've done so far. I've added my comments
> after # on every new line after which I'm typing what I see in the terminal
> #I ran command *sudo sane-find-scanner -v -v*
> #Got the following
> *found USB scanner (vendor=0x0461 [Primax], product=0x038c [USB Scanner],
> chip=GL646_HP) at libusb:003:004
> *
>
> #Found this useful https://help.ubuntu.com/community/CheckIfScannerIsClone
> #Backed up genesys_devices.c
> #Added line to genesys_devices.c to the end to the *
> genesys_usb_device_list[]*
> #Retrieved the usb vid and the usb pid from sane-find-scanner -v -v
> *{0x0461, 0x038c, &medion_md5345_model},*
>
> #Backed up genesys.conf
> #Added line
> # UMAX Astra 4100
> *usb 0x0461 0x038c *
>
> #Typed
> *cd sane-backends
> sudo ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
> sudo make
> sudo make install*
>
> #Plugged in the scanner, turned it on, tried the command
> #sudo scanimage -L
> #Got the following output
> iain at iain-System-Product-Name:/usr/src/sane-backends$ *sudo scanimage -L*
> *device `genesys:libusb:003:004' is a Medion MD5345/MD6228/MD6471 flatbed
> scanner*
>
> #Set Scanner permission - Made no effect. Need to check by restarting
> system. For now using the sudo command
> *sudo gedit /lib/udev/rules.d/40-libsane.rules*
> #Added
> *# Umax Astra 4100 USB Flatbed Scanner
> ATTRS{idVendor}=="0x0461", ATTRS{idProduct}=="0x038c",
> ENV{libsane_matched}="yes"*
>
> #Try scanning using your script
> #I uncommented the line xsane 2>xl.log
> *#Try scanning
> iain at iain-System-Product-Name:/usr/src/sane-backends/backend$ sudo sh
> run-genesys
>
> *Attached image Screenshot at 2011-12-13 03:55:23.png shows the
> screenshot of my screen. This never came before. I used to get a screen
> saying scanner wasn't detected.
> I'm attaching a zip file with the 2 updated files, genesys.conf &
> genesys_devices.c with comments. I'm included your sh file with the
> uncommented line as well as some outputs formats.
> Is there any ways this can be included in the future releases of debian /
> ubuntu etc. Please share your views.
>
> Thanks and Regards,
> Iain
>
>
>
> On Wed, Dec 7, 2011 at 1:55 AM, Stef <stef.dev at free.fr> wrote:
>
>> Le lundi 5 décembre 2011 16:19:16 vous avez écrit :
>> > Hello Stef,
>> >
>> > I'm quite strong in java. I haven't coded in C for the past 4 years but
>> I
>> > don't mind giving it a try.
>> > I've haven't done any developement in ubuntu. Nonetheless I'll like to
>> give
>> > it a shot.
>> > I really appreciate it if you could help me.
>> >
>> > Regards,
>> > Iain
>> >
>>
>> Hello,
>>
>> the files you'll have to modify are genesys.conf.in,
>> genesys_devices.c,
>> genesys_gl646.c and genesys_gl646.h . One first thing to do is to add you
>> scanner model to genesys.conf and genesys_devices.c . For a start I would
>> simply clone the medion_md5345_model entry into a umax_astra_4100, change
>> the
>> device description strings and reference it in the
>> genesys_usb_device_list at
>> the end of the file. Sometimes scanners are simply clones, and I wouldn't
>> be
>> surprised that the MD5345 is a clone of the 4100.
>> Compile and try it. When developping I always test the binaries
>> with a
>> script like the one appended. Placed in the backend subdir it runs the
>> scanimage with the compiled version.
>> If we are lucky, it may just work. If not, we'll have to study how
>> this
>> scanner works under windows by recording USB activity using Usbsnoop.
>>
>> Regards,
>> Stef
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20111213/53ac77e9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sane-backends-umax-updates.zip
Type: application/zip
Size: 326 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20111213/53ac77e9/attachment.zip>
More information about the sane-devel
mailing list