(Solved) Re: usb scanner, kernel 2.6.3
First, thanks to all that helpd. Next, a small howto for references: For background, and to know what you are going to do, read /usr/share/doc/libsane/Readme.debian.gz and other Readmes in same directory. In the example that follows /dev/usb/scanner0 is used. You may need scanner1, or 2, ... 1. su (become root) 2. sane-find-scanner 3. Change line in /etc/hotplug/usb/libsane.usermap to reflect findings from step 2. 4. It is recommended to add your scanner to /etc/hotplug/blacklist to avoid having it recognized by the kernel. I didn have any blacklist, so next time I boot I may need to do that, lets see. 5. chown root:scanner /dev/usb/scanner0 6. adjust permissions if needed, the user needs to be able to read and write; for example, after adding the username to the scanner group, mine shows up as [EMAIL PROTECTED]:~$ ls -l /dev/usb/scanner0 crw-rw-rw-1 root scanner 180, 48 2002-03-14 16:54 /dev/usb/scanner0 It is said to do chmod 0660 /dev/usb/scanner0 in /usr/share/doc/libsane/README.Debian.gz 7. adduser username scanner (add the user to the scanner group) 8. logout from X, get back (to make sure that the new group membership is recorded) and try it. should work now. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: usb scanner, kernel 2.6.3
On Sun, Mar 07, 2004 at 06:44:15AM -0500, Antonio Rodriguez wrote: > On Sat, Mar 06, 2004 at 09:45:21PM +0100, Philippe Marzouk wrote: > > On Sat, Mar 06, 2004 at 09:32:48PM +0100, Kenneth Macdonald Karlsen wrote: > > > Philippe Marzouk wrote: > > > > >the kernel you have to swith to using libusb. > > > > > > > >For my Epson scanner I had simply to put > > > > > > > >usb > > > > > > > >on the epson.conf file > > > > > > > >Philippe > > > > For my epson it was not as simple. > > > Sane is now supported by libusb and not kernel. > > > Run sane-find-scanner. You get something like this: > > > > > > found USB scanner (vendor=0x04b8 [EPSON], product=0x0104 > > > [Perfection1200]) at libusb:001:003 > > > # Your USB scanner was (probably) detected. It may or may not be > > > supported by > > > # SANE. Try scanimage -L and read the backend's manpage. > > > > > > Then I put this in /etc/sane.d/epson.conf: > > > usb libusb:001:003 > > I am having a bad time making this work. I have tried a > bunch of different options, including one found on the net about > making some changes in fstab: > There are some more instructions in /usr/share/doc/libsane/README.Debian.gz to have the device get the right permissions when connected. If I remember correctly: I added scanner to /etc/hotplug/blacklist (When I first configure it the scanner module was still there and I had compiled it with my kernel, it should not be necessary to add it now). Then in /etc/hotplug/usb/libsane.usermap I added a line for my scanner like the sample entry provided and replaced and by the values for my Epson 1240U. Lastly, I commented out the 'usb /dev/usb/scanner0' line I had added to the /etc/sane.d/epson.conf file and added a new line with simply 'usb' on it. YMMV HTH, Philippe -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: usb scanner, kernel 2.6.3
On Sun, 7 Mar 2004 06:44:15 -0500 Antonio Rodriguez <[EMAIL PROTECTED]> wrote: > On Sat, Mar 06, 2004 at 09:45:21PM +0100, Philippe Marzouk wrote: > > On Sat, Mar 06, 2004 at 09:32:48PM +0100, Kenneth Macdonald Karlsen > > wrote: > > > Philippe Marzouk wrote: > > > > >the kernel you have to swith to using libusb. > > > > > > > >For my Epson scanner I had simply to put > > > > > > > >usb > > > > > > > >on the epson.conf file > > > > > > > >Philippe > > > > For my epson it was not as simple. > > > Sane is now supported by libusb and not kernel. > > > Run sane-find-scanner. You get something like this: > > > > > > found USB scanner (vendor=0x04b8 [EPSON], product=0x0104 > > > [Perfection1200]) at libusb:001:003 > > > # Your USB scanner was (probably) detected. It may or may not be > > > supported by > > > # SANE. Try scanimage -L and read the backend's manpage. > > > > > > Then I put this in /etc/sane.d/epson.conf: > > > usb libusb:001:003 > > I am having a bad time making this work. I have tried a > bunch of different options, including one found on the net about > making some changes in fstab: > > none/proc/bus/usb usbfs defaults,devmode=0666 0 > 0 > > Here is another output: > [EMAIL PROTECTED]:~$ sane-find-scanner > found USB scanner (vendor=0x03f0, product=0x0401) at libusb:003:002 > # Your USB scanner was (probably) detected. It may or may not be > # supported by SANE. Try scanimage -L and read the backend's manpage. > > Made the change in /etc/sane.d/hp.conf > # HP ScanJet 5200C > #usb 0x03f0 0x0401 > usb libusb:003:002 > > and also tried without libusb as indicated by one of you: > # HP ScanJet 5200C > #usb 0x03f0 0x0401 > usb > > Nothing works. Any ideas? That's further than I get with the Epson perfection 1660 photo: sane-find-scanner with no arguments doesn't find anything sane-find-scanner -f /proc/bus/usb/001/003 reports: found USB scanner (UNKNOWN vendor and product) at device /proc/bus/usb/001/003 # Your USB scanner was detected. It may or may not be supported by # SANE. Try scanimage -L and read the backend's manpage. # `UNKNOWN vendor and product' means that there seems to be a scanner at this # device file but the vendor and product ids couldn't be identified. # Currently identification only works with Linux versions >= 2.4.8. You may # need to configure your backend manually, see the backend's manpage. The relevant bit of /proc/bus/usb/devices has: T: Bus=01 Lev=01 Prnt=01 Port=05 Cnt=01 Dev#= 2 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=ff(vend.) Sub=ff Prot=ff MxPS=64 #Cfgs= 1 P: Vendor=04b8 ProdID=011e Rev= 1.00 S: Manufacturer=EPSON S: Product=EPSON Scanner C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 2mA I: If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none) E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms the versions of sane and libusb are: ii sane-utils 1.0.13-3 API library for scanners -- utilities ii libusb-0.1-4 0.1.8-4Userspace USB programming library The kernel is 2.6.3 for AMD k7 (Debian Sid stock kernel). (I'm not totally convinced I understand the controllers on this machine as the scanner shows up on Bus 001 (the USB2 bus) whichever socket I plug it into, while the printer (also supposedly a USB2 device) never does). -- James Tappin, O__ "I forget the punishment for using [EMAIL PROTECTED] -- \/`Microsoft --- Something lingering http://www.tappin.me.uk/with data loss in it I fancy" -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: usb scanner, kernel 2.6.3
On Sat, Mar 06, 2004 at 09:45:21PM +0100, Philippe Marzouk wrote: > On Sat, Mar 06, 2004 at 09:32:48PM +0100, Kenneth Macdonald Karlsen wrote: > > Philippe Marzouk wrote: > > >the kernel you have to swith to using libusb. > > > > > >For my Epson scanner I had simply to put > > > > > >usb > > > > > >on the epson.conf file > > > > > >Philippe > > For my epson it was not as simple. > > Sane is now supported by libusb and not kernel. > > Run sane-find-scanner. You get something like this: > > > > found USB scanner (vendor=0x04b8 [EPSON], product=0x0104 > > [Perfection1200]) at libusb:001:003 > > # Your USB scanner was (probably) detected. It may or may not be > > supported by > > # SANE. Try scanimage -L and read the backend's manpage. > > > > Then I put this in /etc/sane.d/epson.conf: > > usb libusb:001:003 I am having a bad time making this work. I have tried a bunch of different options, including one found on the net about making some changes in fstab: none/proc/bus/usb usbfs defaults,devmode=0666 0 0 Here is another output: [EMAIL PROTECTED]:~$ sane-find-scanner found USB scanner (vendor=0x03f0, product=0x0401) at libusb:003:002 # Your USB scanner was (probably) detected. It may or may not be supported by # SANE. Try scanimage -L and read the backend's manpage. Made the change in /etc/sane.d/hp.conf # HP ScanJet 5200C #usb 0x03f0 0x0401 usb libusb:003:002 and also tried without libusb as indicated by one of you: # HP ScanJet 5200C #usb 0x03f0 0x0401 usb Nothing works. Any ideas? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: usb scanner, kernel 2.6.3
On Sat, Mar 06, 2004 at 09:32:48PM +0100, Kenneth Macdonald Karlsen wrote: > Philippe Marzouk wrote: > > >On Sat, Mar 06, 2004 at 09:05:08AM -0500, Antonio Rodriguez wrote: > > > > > >>Where is the option for usb scanner when compiling your kernel? It > >>seems that it was forgotten. Yesterday I found out that to use the > >>scanner I had to boot with the 2.4.22 image, now I am trying to > >>recompile the image 2.6.3 to add scanner support but I can find only > >>for microtek, and no generic as it used to be. I am suspending the > >>compiling until I find out more about it. > >> > >> > >> > > > >The kernel changelog mentions it, it is now deprecated and removed from > >the kernel you have to swith to using libusb. > > > >For my Epson scanner I had simply to put > > > >usb > > > >on the epson.conf file > > > >Philippe > > > > > > > For my epson it was not as simple. > Sane is now supported by libusb and not kernel. > Run sane-find-scanner. You get something like this: > > found USB scanner (vendor=0x04b8 [EPSON], product=0x0104 > [Perfection1200]) at libusb:001:003 > # Your USB scanner was (probably) detected. It may or may not be > supported by > # SANE. Try scanimage -L and read the backend's manpage. > > Then I put this in /etc/sane.d/epson.conf: > usb libusb:001:003 > > Scanner OK. But then next time you plug it in it may be on another bus and you'll have to change the configuration. Philippe -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: usb scanner, kernel 2.6.3
Philippe Marzouk wrote: On Sat, Mar 06, 2004 at 09:05:08AM -0500, Antonio Rodriguez wrote: Where is the option for usb scanner when compiling your kernel? It seems that it was forgotten. Yesterday I found out that to use the scanner I had to boot with the 2.4.22 image, now I am trying to recompile the image 2.6.3 to add scanner support but I can find only for microtek, and no generic as it used to be. I am suspending the compiling until I find out more about it. The kernel changelog mentions it, it is now deprecated and removed from the kernel you have to swith to using libusb. For my Epson scanner I had simply to put usb on the epson.conf file Philippe For my epson it was not as simple. Sane is now supported by libusb and not kernel. Run sane-find-scanner. You get something like this: found USB scanner (vendor=0x04b8 [EPSON], product=0x0104 [Perfection1200]) at libusb:001:003 # Your USB scanner was (probably) detected. It may or may not be supported by # SANE. Try scanimage -L and read the backend's manpage. Then I put this in /etc/sane.d/epson.conf: usb libusb:001:003 Scanner OK. Kenneth. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: usb scanner, kernel 2.6.3
On Sat, Mar 06, 2004 at 09:05:08AM -0500, Antonio Rodriguez wrote: > Where is the option for usb scanner when compiling your kernel? It > seems that it was forgotten. Yesterday I found out that to use the > scanner I had to boot with the 2.4.22 image, now I am trying to > recompile the image 2.6.3 to add scanner support but I can find only > for microtek, and no generic as it used to be. I am suspending the > compiling until I find out more about it. > The kernel changelog mentions it, it is now deprecated and removed from the kernel you have to swith to using libusb. For my Epson scanner I had simply to put usb on the epson.conf file Philippe -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]