Setting up Hp 5470c scanner with sane
Hi everyone,
I need some help setting up a scanner (HP scanjet 5470c USB interface) on my system (Mandrake 9.1 2.4.21-0.13mdk). I have been following directions from the linuxformat magazine (LFX15 June2001) on setting up scanners using sane. 1) I downloaded and compiled/installed the sane backends and frontends (sane backends-1.0.12: hp5470c is supported as an alpha driver). OK so far :-) 2) then I tried scanimage --list devices, and got the following message: No scanners were identified. If you were expecting something different, check that the scanner is plugged in, turned on and detected by the sane-find-scanner tool (if appropriate). Please read the documentation which came with this software (README, FAQ, manpages). 3) I tried sane-find-scanner: # No SCSI scanners found. If you expected something different, make sure that # you have loaded a SCSI driver for your SCSI adapter. # No USB scanners found. If you expected something different, make sure that # you have loaded a driver for your USB host controller and have installed a # kernel scanner module. # Scanners connected to the parallel port or other proprietary ports can't be # detected by this program. Oops, what now. 4) My scanner is detected in /proc/bus/usb/devices as: T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#= 3 Spd=12 MxCh= 0 D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=03f0 ProdID=1105 Rev= 0.00 S: Manufacturer=Hewlett-Packard S: Product=HP Scanjet 5400C Series S: SerialNumber=CN18D1I18ZBD C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 48mA I: If#= 0 Alt= 0 #EPs= 3 Cls=10(unk. ) Sub=01 Prot=00 Driver=(none) E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=83(I) Atr=03(Int.) MxPS= 1 Ivl=10ms 5) and I have usb support configured as a kernel module: lsmod ... hid 20900 0 (unused) input 5664 0 [keybdev mousedev hid] usb-uhci 24652 0 (unused) usbcore 72992 1 [hid usb-uhci] rtc 8060 0 (autoclean) 6) I found a USB-devices howto and made a device scanner0: mknod /dev/usb/scanner0 c 180 48 chmod a+rw /dev/usb/scanner0 7) I checked to make sure I had libusb on my system: rpm -qa | grep libusb libusb0.1_4-0.1.6a-2mdk but all to no result. Can someone help me to check if I have installed a kernel scanner module? I don't know how to do that :-(. Any further help would be highly appreciated.... Just let me know if you need more info on this. This scanner is the last device I have to get working on Linux. Constantly rebooting in Windows isn't much fun :-P some more info: lsusb Invalid product/subclass spec at line 2650 Bus 002 Device 001: ID 0000:0000 Bus 001 Device 001: ID 0000:0000 Bus 001 Device 002: ID 1063:1555 Motorola Electronics Taiwan Ltd. [hex] MC141555 Hub Bus 001 Device 004: ID 043e:4a4d LG Electronics USA Inc. Flatron 915FT Plus Monitor Bus 001 Device 003: ID 03f0:1105 Hewlett-Packard ScanJet 5470c dmesg ... Real Time Clock Driver v1.10e usb.c: registered new driver usbdevfs usb.c: registered new driver hub usb-uhci.c: $Revision: 1.275 $ time 15:32:56 Mar 14 2003 usb-uhci.c: High bandwidth mode enabled PCI: Found IRQ 5 for device 00:07.2 PCI: Sharing IRQ 5 with 00:07.3 PCI: Sharing IRQ 5 with 00:09.0 usb-uhci.c: USB UHCI at I/O 0xd400, IRQ 5 usb-uhci.c: Detected 2 ports usb.c: new USB bus registered, assigned bus number 1 hub.c: USB hub found hub.c: 2 ports detected PCI: Found IRQ 5 for device 00:07.3 PCI: Sharing IRQ 5 with 00:07.2 PCI: Sharing IRQ 5 with 00:09.0 usb-uhci.c: USB UHCI at I/O 0xd800, IRQ 5 usb-uhci.c: Detected 2 ports usb.c: new USB bus registered, assigned bus number 2 hub.c: USB hub found hub.c: 2 ports detected usb-uhci.c: v1.275:USB Universal Host Controller Interface driver usbdevfs: remount parameter error EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,9), internal journal Adding Swap: 586332k swap-space (priority -1) hub.c: new USB device 00:07.2-1, assigned address 2 hub.c: USB hub found hub.c: 5 ports detected hub.c: new USB device 00:07.2-2, assigned address 3 usb.c: USB device 3 (vend/prod 0x3f0/0x1105) is not claimed by any active driver . hub.c: new USB device 00:07.2-1.5, assigned address 4 usb.c: USB device 4 (vend/prod 0x43e/0x4a4d) is not claimed by any active driver . usb.c: registered new driver hiddev usb.c: registered new driver hid usb-uhci.c: interrupt, status 3, frame# 1435 hiddev0: USB HID v1.00 Pointer [LG Elec?ronics Inc. USB Mon?tor] on usb1:4.0 hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <vojtech@suse.cz> hid-core.c: USB HID support drivers mice: PS/2 mouse device common for all mice SCSI subsystem driver Revision: 1.00 ... Thanks in advance, Guust |
Hmm... if the device is supported, it might take loading another USB module for it:
/sbin/modprobe scanner Yeah, no kidding, there's one called scanner.... Cheers, Finegan |
Hi Finegan,
I tried your advice. Scanner gets loaded (it shows up in lsmod) but sane-find-scanner gives the same output, no scanner found :-( Do you have some more ideas? thanks, Guust |
Hmm... sometimes USB modules will load without kicking errors, also, Sane likes to comment out the functionality of alpha or beta gear by default. So, check "dmesg" and post back anything useful from the module load. Then check through, yep... check this out, find your scanner .conf files... since you did a hand install, probably all in /usr/local/saned/ and take a look at the file hp.conf:
Code:
bob@thescreamingbrain:/usr/etc/sane.d$ more hp.conf Cheers, Finegan |
Finegan,
the scanner module seems to have loaded without error (from dmesg): usb.c: registered new driver usbscanner scanner.c: 0.4.10:USB Scanner Driver I have been making changes in hp5400.conf. this is how it was: # hp5400.conf # See man sane-hp5400 for a description. # # HP 5400C usb 0x03F0 0x1005 # # HP 5470C usb 0x03F0 0x1105 # # Device filename to use for scanner access # # Uncomment the following line if autodetection fails # /dev/usb/scanner0 I added the line: option connect-device and restarted saned. No change, it still didn't find the scanner. The configuration file is in /usr/local/src/sane-backends-1.0.12/backend. Is this normal? I compiled and installed from this directory and it got installed in /usr/local/lib/sane. Also, I don't have a device /dev/scanner. Should this be a symlink to /dev/usb/scanner0? Or should I make the changes to hp.conf? thanks, Guust |
Found another one, maybe this is it, although the info in the kernel config says hp53xx, it might also cover the 5400s:
/sbin/modprobe hpusbscsi I'll check the Sane docs, might be a bit. Cheers, Finegan |
No luck there. It gets loaded fine, but still no scannersf found. I'll keep looking if I can find something here. Thanks for the help so far.
Guust |
Success at last.
What was missing... 1) added a line in /etc/fstab none /proc/bus/usb usbfs defaults 0 0 2) did mount -r to mount this. 3) removed the scanner module with rmmod scanner 4) reloaded the scanner module as modprobe scanner vendor=0x03f0 product=0x1105 5) sane-find-scanner reports: # No SCSI scanners found. If you expected something different, make sure that # you have loaded a SCSI driver for your SCSI adapter. found USB scanner (vendor=0x03f0, product=0x1105) at /dev/usb/scanner0 found USB scanner (vendor=0x03f0, product=0x1105) at /dev/usbscanner # Your USB scanner was detected. It may or may not be supported by # SANE. Try scanimage -L and read the backend's manpage. # Scanners connected to the parallel port or other proprietary ports can't be # detected by this program. and I just finished my first scan whith xscanimage :-) I finally got it working. I think I can only scan as root now, but I'll find a way around that. Thanks for all the help, Guust |
Look into running saned in daemon mode, accessible from localhost so that joe user can get to it. It'll fire up saned on the fly with a request from xsane, it'll involve changing inetd.conf a little and making certain saned.conf (same place as hp.conf) has 127.0.0.1 in it, or the IP of the machine itself... actually, its all under the manpage for saned and I'm doing a bad job of regurgitating that.
Cheers, Finegan |
I'll have a look at it in the morning. Thanks for the tip.
Guust |
check /usr/src/linux-2.**/driver/usb/scanner.h
have a list about "pid vid"
if no you must add "pid vid" ,then compile kernel |
Problem with installing hp5470c redhat
Dear linux friends,
I've tried to install for some time now to install my hp5470c usb scanner under redhat 9.0 with sane. I installed backends 1.0.13 (but maybe in the wrong place (is that possible?) tarball X-sane 0.92 rpm Can you install them together, i.e. rpm and tar ball? In any case my frontend can't still my scanner. Should i install from scratch? And what would be the best way to remove it all? If i try to fing the config of the hp5470c i can't reach further than this: "[root@.... sane.d]# cat hp.conf scsi HP # Uncomment the following if you have "Error during device I/O" on SCSI # option dumb-read # # The usual place for a SCSI-scanner on Linux /dev/scanner # # USB-scanners supported by the hp-backend # HP ScanJet 4100C usb 0x03f0 0x0101 # HP ScanJet 5200C usb 0x03f0 0x0401 # HP ScanJet 62X0C usb 0x03f0 0x0201 # HP ScanJet 63X0C usb 0x03f0 0x0601 # # Uncomment the following if your scanner is connected by USB, # but you are not using libusb # /dev/usb/scanner0 # option connect-device" :( greetings Marcel van der Reijken (Netherlands) |
All times are GMT -5. The time now is 08:25 PM. |