<div class="gmail_quote">
<div>Hello Stef, I didnt realize the 100 kb limit. My post bounced. Reposting my inputs. Please guide me on the next steps. -- Thanks, Iain</div>
<div> </div>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">Hello Stef,<br><br>I am very thankful to you for helping me here. Your solution worked.<br>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<br>

#I ran command <b>sudo sane-find-scanner -v -v</b><br>#Got the following<br><b>found USB scanner (vendor=0x0461 [Primax], product=0x038c [USB Scanner], chip=GL646_HP) at libusb:003:004<br></b><br><br>#Found this useful <a href="https://help.ubuntu.com/community/CheckIfScannerIsClone" target="_blank">https://help.ubuntu.com/community/CheckIfScannerIsClone</a><br>

#Backed up genesys_devices.c<br>#Added line to genesys_devices.c to the end to the <b>genesys_usb_device_list[]</b><br>#Retrieved the usb vid and the usb pid from sane-find-scanner -v -v<br><b>{0x0461, 0x038c, &medion_md5345_model},</b><br>

<br>#Backed up genesys.conf<br>#Added line<br># UMAX Astra 4100<br><b>usb 0x0461 0x038c </b><br><br>#Typed<br><b>cd sane-backends<br>sudo ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var<br>sudo make<br>sudo make install</b><br>

<br>#Plugged in the scanner, turned it on, tried the command <br>#sudo scanimage -L<br>#Got the following output<br>iain@iain-System-Product-Name:/usr/src/sane-backends$ <b>sudo scanimage -L</b><br><u style="BACKGROUND-COLOR:rgb(255,255,255);COLOR:rgb(0,153,0)"><b>device `genesys:libusb:003:004' is a Medion MD5345/MD6228/MD6471 flatbed scanner</b></u><br style="BACKGROUND-COLOR:rgb(255,255,255);COLOR:rgb(204,0,0)">

<br>#Set Scanner permission - Made no effect. Need to check by restarting system. For now using the sudo command<br><b>sudo gedit /lib/udev/rules.d/40-libsane.rules</b><br>#Added<br><b># Umax Astra 4100 USB Flatbed Scanner<br>

ATTRS{idVendor}=="0x0461", ATTRS{idProduct}=="0x038c", ENV{libsane_matched}="yes"</b><br><br>#Try scanning using your script<br>#I uncommented the line xsane 2>xl.log<br><b>#Try scanning<br>

iain@iain-System-Product-Name:/usr/src/sane-backends/backend$ sudo sh run-genesys<br><br></b>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.<br>

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.<br>Is there any ways this can be included in the future releases of debian / ubuntu etc. Please share your views.<br>

<br>Thanks and Regards,<br>Iain 
<div class="HOEnZb">
<div class="h5"><br><br><br>
<div class="gmail_quote">On Wed, Dec 7, 2011 at 1:55 AM, Stef <span dir="ltr"><<a href="mailto:stef.dev@free.fr" target="_blank">stef.dev@free.fr</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">Le lundi 5 décembre 2011 16:19:16 vous avez écrit :<br>
<div>> Hello Stef,<br>><br>> I'm quite strong in java. I haven't coded in C for the past 4 years but I<br>> don't mind giving it a try.<br>> I've haven't done any developement in ubuntu. Nonetheless I'll like to give<br>

> it a shot.<br>> I really appreciate it if you could help me.<br>><br>> Regards,<br>> Iain<br>><br><br></div>       Hello,<br><br>       the files you'll have to modify are <a href="http://genesys.conf.in/" target="_blank">genesys.conf.in</a>, genesys_devices.c,<br>

genesys_gl646.c and genesys_gl646.h . One first thing to do is to add you<br>scanner model to genesys.conf and genesys_devices.c . For a start I would<br>simply clone the medion_md5345_model entry into a umax_astra_4100, change the<br>

device description strings and reference it in the genesys_usb_device_list at<br>the end of the file. Sometimes scanners are simply clones, and I wouldn't be<br>surprised that the MD5345 is a clone of the 4100.<br>       Compile and try it. When developping I always test the binaries with a<br>

script like the one appended. Placed in the backend subdir it runs the<br>scanimage with the compiled version.<br>       If we are lucky, it may just work. If not, we'll have to study how this<br>scanner works under windows by recording USB activity using Usbsnoop.<br>

<br>Regards,<br><span><font color="#888888">       Stef</font></span></blockquote></div><br></div></div></blockquote></div><br>