Cannot setup scanner with 2.6 kernel
Hi! I'm trying to set up hp scanjet 5300c on debian sarge 2.6 kernel but it isn't working with xsane.
Hotplug status: PCI Status for kernel: Linux 2.6.8-2-386 i686 PCI up; bus count is 2 USB Status for kernel: Linux 2.6.8-2-386 i686 USB up; bus count is 4 T: Bus=05 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 8 P: Vendor=0000 ProdID=0000 Rev= 2.06 S: Manufacturer=Linux 2.6.8-2-386 ehci_hcd S: Product=VIA Technologies, Inc. USB 2.0 S: SerialNumber=0000:00:10.4 I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub T: Bus=04 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2 P: Vendor=0000 ProdID=0000 Rev= 2.06 S: Manufacturer=Linux 2.6.8-2-386 uhci_hcd S: Product=VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (#4) S: SerialNumber=0000:00:10.3 I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2 P: Vendor=0000 ProdID=0000 Rev= 2.06 S: Manufacturer=Linux 2.6.8-2-386 uhci_hcd S: Product=VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (#3) S: SerialNumber=0000:00:10.2 I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2 P: Vendor=0000 ProdID=0000 Rev= 2.06 S: Manufacturer=Linux 2.6.8-2-386 uhci_hcd S: Product=VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (#2) S: SerialNumber=0000:00:10.1 I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2 P: Vendor=0000 ProdID=0000 Rev= 2.06 S: Manufacturer=Linux 2.6.8-2-386 uhci_hcd S: Product=VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller S: SerialNumber=0000:00:10.0 I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 3 Spd=12 MxCh= 0 P: Vendor=04e8 ProdID=323a Rev= 1.00 I: If#= 0 Alt= 0 #EPs= 2 Cls=07(print) Sub=01 Prot=02 Driver=usblp USB Drivers Loaded: hiddev hub usb usbfs usbhid usbkbd usblp usbserial usbserial_generic usb-storage khubd/hotplug thread: F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD 1 S 0 231 1 0 75 0 - 0 hub_th ? 00:00:00 khubd Module Size Used by ipv6 229892 8 lp 10408 0 parport_pc 33348 1 parport 37320 2 lp,parport_pc pcspkr 3816 0 rtc 12088 0 usblp 12032 0 snd_via82xx 26660 0 snd_ac97_codec 59268 1 snd_via82xx snd_pcm 85384 1 snd_via82xx snd_timer 23300 1 snd_pcm snd_page_alloc 11144 2 snd_via82xx,snd_pcm gameport 4736 1 snd_via82xx snd_mpu401_uart 7296 1 snd_via82xx snd_rawmidi 23204 1 snd_mpu401_uart snd_seq_device 7944 1 snd_rawmidi snd 50660 7 snd_via82xx,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device shpchp 87148 0 pciehp 83948 0 pci_hotplug 30640 2 shpchp,pciehp amd64_agp 10696 1 agpgart 31784 1 amd64_agp via82cxxx_audio 26248 1 uart401 11460 1 via82cxxx_audio sound 75308 2 via82cxxx_audio,uart401 soundcore 9824 4 snd,via82cxxx_audio,sound ac97_codec 16908 1 via82cxxx_audio tsdev 7168 0 mousedev 9996 1 evdev 9088 0 capability 4872 0 commoncap 7168 1 capability psmouse 17800 0 ext3 109672 2 jbd 54552 1 ext3 eth1394 19976 0 r8169 16004 0 ds 17796 0 yenta_socket 19200 0 pcmcia_core 63028 2 ds,yenta_socket sr_mod 15780 0 sbp2 22408 0 sd_mod 20480 4 ide_cd 38176 0 cdrom 35740 2 sr_mod,ide_cd ide_disk 16768 0 ide_generic 1664 0 pdc202xx_new 10012 0 aec62xx 10012 0 alim15x3 11404 0 amd74xx 13340 0 atiixp 8472 0 cmd64x 11548 0 cs5520 6408 0 cs5530 6664 0 cy82c693 4996 0 generic 4608 0 hpt34x 5760 0 ns87415 4936 0 opti621 4740 0 pdc202xx_old 15388 0 piix 12448 0 rz1000 3200 0 sc1200 8456 0 serverworks 12308 0 siimage 12032 0 sis5513 15240 0 slc90e66 8200 0 triflex 5380 0 trm290 4740 0 floppy 54992 0 usb_storage 59328 0 via82cxxx 12956 1 ide_core 125028 28 ide_cd,ide_disk,ide_generic,pdc202xx_new,aec62xx,alim15x3,amd74xx,atiixp,cmd64x,cs5520,cs5530,cy82c6 93,generic,hpt34x,ns87415,opti621,pdc202xx_old,piix,rz1000,sc1200,serverworks,siimage,sis5513,slc90e 66,triflex,trm290,usb_storage,via82cxxx ohci1394 32004 0 ieee1394 100408 3 eth1394,sbp2,ohci1394 fbcon 27524 71 vga16fb 12456 1 vgastate 8576 1 vga16fb usbserial 27112 0 usbhid 28864 0 usbkbd 6912 0 ehci_hcd 27908 0 uhci_hcd 29328 0 usbcore 104164 9 usblp,usb_storage,usbserial,usbhid,usbkbd,ehci_hcd,uhci_hcd thermal 12944 0 processor 17584 1 thermal fan 4236 0 sata_via 7428 0 sata_promise 9732 3 libata 36228 2 sata_via,sata_promise scsi_mod 115148 6 sr_mod,sbp2,sd_mod,usb_storage,sata_promise,libata unix 26036 414 font 8576 1 fbcon vesafb 6688 0 cfbcopyarea 3840 2 vga16fb,vesafb cfbimgblt 3200 2 vga16fb,vesafb cfbfillrect 3712 2 vga16fb,vesafb INPUT status for kernel: Linux 2.6.8-2-386 i686 INPUT devices: I: Bus=0011 Vendor=0001 Product=0001 Version=ab41 N: Name="AT Translated Set 2 keyboard" P: Phys=isa0060/serio0/input0 H: Handlers=kbd event0 I: Bus=0011 Vendor=0002 Product=0002 Version=0051 N: Name="PS2++ Logitech Wheel Mouse" P: Phys=isa0060/serio1/input0 H: Handlers=event1 mouse0 ts0 I: Bus=0010 Vendor=001f Product=0001 Version=0100 N: Name="PC Speaker" P: Phys=isa0061/input0 H: Handlers=kbd event2 INPUT handlers: N: Number=0 Name=kbd N: Number=1 Name=evdev Minor=64 N: Number=2 Name=mousedev Minor=32 N: Number=3 Name=tsdev Minor=128 done. sane-usb-finder is: # sane-find-scanner will now attempt to detect your scanner. If the # result is different from what you expected, first make sure your # scanner is powered up and properly connected to your computer. # No SCSI scanners found. If you expected something different, make sure that # you have loaded a SCSI driver for your SCSI adapter. # Also you need support for SCSI Generic (sg) in your operating system. # If using Linux, try "modprobe sg". # 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. # Not checking for parallel port scanners. # Most Scanners connected to the parallel port or other proprietary ports # can't be detected by this program. Can anyone help? Thanks. |
DstructO,
Have the same HP 5300 scanner, but haven't set it up with my new install yet. (Sarge with 2.6.8 kernel) BUT, if it helps, I plugged it in and just did a quickie lsusb and got this: :~$ lsusb Bus 002 Device 001: ID 0000:0000 Bus 001 Device 005: ID 03f0:0701 Hewlett-Packard ScanJet 5300c/5370c Bus 001 Device 002: ID 045e:0040 Microcrap Corp. Wheel Mouse Optical Bus 001 Device 001: ID 0000:0000 So apparently it sees it o.k. Keep me posted how things work out, I'm curious. |
Same thing here. lsusb lists the device well. But xsane says no device found. I used libusb
and hotplug but nothing seems to work. Any ideas? |
Hi
I have the same problem with a canon scanner I can get it to work with Xsane by unplugging the usb cable from the scanner then reconnecting it Xsane then picks it up. This problem occurred after an apt-get dist-upgrade Sls |
I think it's a kernel issue. I had 2.4 kernel and same scanner worked fine there but when i changed to kernel 2.6 it is showing problem.
|
O.K., finally had a chance to try it out. Got my HP5300 working fine. Works better than it did under Windows in fact. Usual disclaimer, not sure if it will work for everyone else, but here's what I did:
I'm running the latest stable release of Sarge using the 2.6.8 kernel, and have hotplug 0.0.20040329-22 and libusb 2:0.1.10a-14. I installed XSane using Synaptic (or use apt-get, or whatever apt flavor you prefer....) While logged in as root, I ran sane-find-scanner in the console and got: [COLOR=royal blue] # sane-find-scanner will now attempt to detect your scanner. If the # result is different from what you expected, first make sure your # scanner is powered up and properly connected to your computer. # 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 [Hewlett Packard], product=0x0701 [Hewlett Packard ScanJet 5300C/5370C ]) 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. # Not checking for parallel port scanners. # Most Scanners connected to the parallel port or other proprietary ports # can't be detected by this program. [/COLOR] Then I ran scanimage -L in the console and got: [COLOR=royal blue] device `avision:libusb:001:003' is a Hewlett-Packard ScanJet 5300C flatbed scanner [/COLOR] While logged in as root, I went over to the /etc/group file and found this line: [COLOR=royal blue] scanner:x:105: [/COLOR] And changed this line to read: [COLOR=royal blue] scanner:x:105:mike[/COLOR] (replace my username with whatever user name you login with) Save the /etc/group file and log out, and log back in as a regular user, start XSane, and everything should work o.k. By the way, if someone could e-mail me their /etc/sane.d/avision.conf file, I'd appreciate it. |
scanner issues
JetJock
http://svn.exactcode.de/sane-avision...d/avision.conf getting error: avision.c:1828:2: #error "You must update include/sane/sanei_usb.h and sanei/sanei_usb.c accordingly!" trying to install hp5300c on fedora-core 3 sane-backends-1.0.15 scanimage -L doesnt find the device, but sane-fine-scanner does: found USB scanner (vendor=0x03f0 [Hewlett Packard], product=0x0701 [Hewlett Packard ScanJet 5300C/5370C ]) at libusb:003:008 # Your USB scanner was (probably) detected. It may or may not be supported by # SANE. Try scanimage -L and read the backend's manpage. ideas? |
Shade00,
It looks like the hardware part is working pretty much o.k. if sane-find-scanner finds it o.k., and reports back correctly. I guess for starters, try to log in as root and do sane-find-scanner and scanimage -L from there. Let me know your results after you try that. Also, thanks for the link to avision.conf |
Well I was silently following this thread because I didn't know how to get my scanner workin either. At first I was having the same isuues as you all then I found this thread.http://www.linuxquestions.org/questi...5&pagenumber=1
I only got as far as the first few lines then went to make sure I had the hpijs and hpoj drivers installed along with libsane. It turns out that I didn't have hpoj installed. After that all was good. Using a OfficeJet 6110 all in one print/scan/fax. Maybe that thread can help you guys out. And hope it is as easy for you as it was for me. |
With the stand-alone scanners like the 5300, you shouldn't need hpijs or hplip, etc. Just a working USB connection, and an application like XSane. I don't have any of the specialized HP packages installed, and mine works like a charm. I think you only run into issues and need them if you're using one of the all-in-one multifunction print/scan/copy machines.
|
Quote:
|
Have the same problem
|
I *vaguely* recall that with the 2.6 kernels, the manner in which SANE accesses the scanner changed - no longer uses /dev/usbscanner or similar, but uses libusb instead? Or something along those lines...
|
All times are GMT -5. The time now is 01:36 AM. |