This is a discussion on Setting up scanner with kernel 2.6.7 within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> I've been working on getting usb scanners to work with a couple of slackware 10 systems running 2.6.7. The ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I've been working on getting usb scanners to work with a couple of slackware 10 systems running 2.6.7. The main problem is that there does not seem to be any device created for the scanner (ex. /dev/scanner). dmesg when connecting the scanner: usb 3-2: new full speed USB device using address 3 sane-find-scanner detects it properly: found USB scanner (vendor=0x03f0, product=0x0601 [HP ScanJet 6300C]) at libusb:003:003 The scanner vendor/product id values are found in /etc/hotplug/usb/libsane.usermap There does not appear to be any usb scanner device file. The command find /dev -name "*scan*" does not find anything. /etc/sane.d/hp.conf does contain the appropriate entry for the scanner. Looking at /etc/udev/permissions.d/udev.permissions it looks like /dev/scanner and /dev/usb/scanner? files should be created but are not there for some reason when the scanner is connected. What am I missing? -- mark email? echo znex@ghpxre.arg |rot13 |
| |||
| > I've been working on getting usb scanners to work with a couple of > slackware 10 systems running 2.6.7. The main problem is that there does > not seem to be any device created for the scanner (ex. /dev/scanner). Why do I always find the answer immediately after posting a message to a list/group?? Running "xsane hp:libusb:003:003" works perfectly. I guess I was looking for a device that I didn't need. -- mark email? echo znex@ghpxre.arg |rot13 |
| |||
| > Why do I always find the answer immediately after posting a message to a > list/group?? Running "xsane hp:libusb:003:003" works perfectly. I guess > I was looking for a device that I didn't need. Just keep posting then - just make yure you don't forget to report your findings, so folks on groups.google.com will have an easy time, too ~Mik -- Top-Bottom Programming never gets you where you wanted to go. Bottom-Top Programming gets you where you never wanted to go. while not life: sleep((sleep.normal_time - 5h)); eat(mode=fast); pc_mainloop() |
| |||
| On Thu, 23 Sep 2004 17:40:27 +0000, Iyam N. Obody wrote: > xsane hp:libusb:003:003 I've been having trouble as well, i thought it was a udev problem, but after your post it appears to not be the case. Where did you get "hp" from, is that hp's sane backend? I have an epson scanner and i tried xsane epson:libusb:004:005 (my scanner entry) and i get failed to open device, invalid argument. I've also tried ep instead of epson. Sane's backend for epson scanners is epson, so i was hoping you could give me a few pointers, or maybe the link to where you got that info. Been searching for 3 days now thanks |
| |||
| On Thursday 23 September 2004 11:15 am, Mykil X did deign to grace us with the following: > On Thu, 23 Sep 2004 17:40:27 +0000, Iyam N. Obody wrote: > >> xsane hp:libusb:003:003 > > I've been having trouble as well, i thought it was a udev problem, > but after your post it appears to not be the case. > Where did you get "hp" from, is that hp's sane backend? I have an epson > scanner and i tried xsane epson:libusb:004:005 (my scanner entry) and i > get failed to open device, invalid argument. I've also tried ep instead of > epson. Sane's backend for epson scanners is epson, so i was hoping you > could give me a few pointers, or maybe the link to where you got that > info. Been searching for 3 days now > I have an HP scanner, and I'm afraid I can't be much help, because it seems that somehow it gets "noticed" automagically: --------------- $ lsdev Device DMA IRQ I/O Ports ------------------------------------------------ 8139too d000-d0ff cascade 4 2 dma 0080-008f dma1 0000-001f dma2 00c0-00df fpu 00f0-00ff ide0 14 01f0-01f7 03f6-03f6 ff00-ff07 ide1 15 0170-0177 0376-0376 ff08-ff0f keyboard 1 0060-006f Mouse 12 parport0 0378-037a PCI 0cf8-0cff pic1 0020-003f pic2 00a0-00bf Realtek d000-d0ff rtc 8 0070-007f serial 02f8-02ff 03f8-03ff Silicon d400-d4ff d800-d83f dc00-dcff ff00-ff0f SiS d800-d83f dc00-dcff sis900 d400-d4ff timer 0 0040-005f usb-ohci 5 10 usb-uhci 11 c800-c81f cc00-cc1f vga+ 03c0-03df VIA c800-c81f cc00-cc1f rich@entheos:~ $ /sbin/lsusb Bus 005 Device 001: ID 0000:0000 Bus 005 Device 002: ID 03f0:3005 Hewlett-Packard Bus 004 Device 001: ID 0000:0000 Bus 003 Device 001: ID 0000:0000 Bus 002 Device 001: ID 0000:0000 Bus 001 Device 001: ID 0000:0000 rich@entheos:~ $ find /dev -name "*scan*" -print /dev/usb/scanner0 /dev/usb/scanner1 /dev/usb/scanner2 /dev/usb/scanner3 /dev/usb/scanner4 /dev/usb/scanner5 /dev/usb/scanner6 /dev/usb/scanner7 /dev/usb/scanner8 /dev/usb/scanner9 /dev/usb/scanner10 /dev/usb/scanner11 /dev/usb/scanner12 /dev/usb/scanner13 /dev/usb/scanner14 /dev/usb/scanner15 rich@entheos:~ $ -------------------------- And there is no driver for it! )-; (HP Scanjet 4600) Cheers! Rich |
| |||
| Mykil X wrote: > i tried xsane epson:libusb:004:005 (my scanner entry) and i > get failed to open device, invalid argument. Try plustek:libusb:004:005 Obviously if the scanner gets switched off then on again the last number will change (use sane-find-scanner again). If you want to play, Epson's Iscan is quite good. |
| |||
| ok I want mine to work also worked fine with 8.1, 9.0, 9.1 and 10.0 with the 2.4x things appear to be a bit different with 2.6x dmesg: usb 1-1: new full speed USB device using address 2 scanner is listed in /etc/hotplug/usb/libsane.usermap Acer Peripherals Inc.|Prisa AcerScan 620U & 640U libusbscanner 0x0003 0x04a5 0x2060 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000 But (evan as root): scanimage -L No scanners were identified. sane-find-scanner No USB scanners found seems I may need a line like following: (I quote from this thread): Running "xsane hp:libusb:003:003" works perfectly. I guess how do I create one for my scanner? when I was running 8.1: sane-find-scanner: found USB scanner (vendor = 0x04a5, product = 0x2060) at dev snapscan.conf has # Benq/Acer/Vuego 640U usb 0x04a5 0x2060 Message posted via: ===================== www.linuxpackages.net/forum www.linuxpackages.net Expanding the world of Slackware ===================== |
| |||
| On Fri, 22 Oct 2004 13:27:43 +0000, Ben Cobb wrote: > ok I want mine to work also > worked fine with 8.1, 9.0, 9.1 and 10.0 with the 2.4x > > things appear to be a bit different with 2.6x > > > dmesg: > usb 1-1: new full speed USB device using address 2 > > scanner is listed in /etc/hotplug/usb/libsane.usermap > > Acer Peripherals Inc.|Prisa AcerScan 620U & 640U > libusbscanner 0x0003 0x04a5 0x2060 0x0000 > 0x0000 > 0x00 0x00 0x00 0x00 0x00 > 0x00 0x00000000 > > But (evan as root): > scanimage -L > No scanners were identified. > > sane-find-scanner > No USB scanners found > > seems I may need a line like following: > (I quote from this thread): > Running "xsane hp:libusb:003:003" works perfectly. I guess > > how do I create one for my scanner? > > > when I was running 8.1: > sane-find-scanner: found USB scanner (vendor = 0x04a5, product = > 0x2060) at dev > snapscan.conf has # Benq/Acer/Vuego 640U > usb 0x04a5 0x2060 > kernel 2.6 uses libusb. Also make sure you are mounting usbdevfs. In fstab i have none /proc/bus/usb usbdevfs devmode=666,auto 0 0 In /etc/sane.d make sure only your backend is executable. (chmod +x acer.conf) The acer.conf is only a guess. Make sure that's the proper backend file for your scanner. Once you determine your proper backend, open the file and for the device just use "usb" *no quotes and on it's own line. THat tells sane that you are using libusb. Hope that does the trick for you. |
| |||
| thanks for the quick reply/tip though I don't think I understand any of it. Message posted via: ===================== www.linuxpackages.net/forum www.linuxpackages.net Expanding the world of Slackware ===================== |
| ||||
| thanks for the hints added the line to fstab - now scanner works for root. and I get some acitivity from sane-find-scanner and scanimage -L I referenced my "backend" in snapscan.conf (/usr/local/bin/u222v067.bin ) and added usb to snapscan.conf making snapscan executable didn't seem to effect anything now to get it to work as a user. Message posted via: ===================== www.linuxpackages.net/forum www.linuxpackages.net Expanding the world of Slackware ===================== |