[sane-devel] HP 7450C USB scanner failure with ADF

m. allan noah anoah at pfeiffer.edu
Wed Jun 25 19:36:57 BST 2003


tom, did you do an 'rpm -e --force --nodeps sane-backends' first?

when you compiled the new sane backends, did you do:

./configure --prefix=/usr --sysconfdir=/etc
make
make install

if not, start with those two things. then we can be sure that the version 
of sane you are using is the one you compiled.

allan

On 25 Jun 2003, Thomas Frayne wrote:

> On Tue, 2003-06-24 at 12:41, Henning Meier-Geinitz wrote:
> > Hi,
> > > Then I rebooted to determine if the scanner would be detected as a usb
> > > device.  The hardware browser still showed no browser, and xsane found
> > > no scanner device on startup.
> > > 
> > > How can I get the scanner recognized as a USB device?
> > 
> > That's done automatically. If it's not detected as USB device by the
> > kernel, it can't be used by hpusbscsi.
> > 
> > Is it found by sane-find-scanner as root?
> > Is it found by scanimage -L as root?
> > If yes, you may need to set up permissions for libusb correctly.
> > That's explained in man sane-usb.
> > 
> 
> Thanks.  I read the manual, found that permissions were not set
> correctly, set them in fstab as recommended.  Then sane-find-scanner and
> scanimage -L worked as a normal user.  However, the scanner still does
> not work.  I think I am closer, but I am lost.
> 
> Messages indicated failure of usbdevfs, which is supposed to be
> obsolete.  /usr/local/etc/sane.d/avision.conf lists devices which do not
> exist.  I suspect that there is a mismatches among the sane
> configuration which was set up for the initial Redhat 9, the sane
> configuration set up when I installed sane-backends-1.0.12.tar.gz and
> xsane-0.91.tar.gz, and the kernel 2.4.20-18.9, which was upgraded by
> Up2date, but I can't figure out how to straighten it out.
> 
> I'll keep trying.  I have just done 
> modprobe scanner vendor=0x0001  product=0x0002,
> and I plan to reboot and continue debugging, starting with why
> /dev/usbscanner does not exist.
> 
> Any help would be appreciated.
> 
> Tom Frayne
> 
> 
> 
> 
> Here are the details:
> 
> found USB scanner (vendor=0x03f0 [hp], product=0x0801 [hp scanjet
> 7400c]) at libusb:004:002
> 
> device `avision:libusb:004:002' is a Hewlett-Packard ScanJet 7400c
> flatbed scanner
> 
> Hardware browser lists no scanners
> 
> Messages:
> Jun 24 13:37:48 localhost syslogd 1.4.1: restart.
> Jun 24 13:37:48 localhost syslog: syslogd startup succeeded
> Jun 24 13:37:48 localhost kernel: klogd 1.4.1, log source = /proc/kmsg
> started.
> Jun 24 13:37:48 localhost kernel: Linux version 2.4.20-18.9
> (root at gozin3) (gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)) #1
> Wed Jun 4 15:04:35 PDT 2003
> Jun 24 13:37:50 localhost kernel: usb.c: registered new driver usbdevfs
> Jun 24 13:37:50 localhost kernel: usb.c: registered new driver hub
> Jun 24 13:37:50 localhost kernel: PCI: Found IRQ 5 for device 00:0b.0
> Jun 24 13:37:50 localhost kernel: usb-ohci.c: USB OHCI at membase
> 0xf0870000, IRQ 5
> Jun 24 13:37:50 localhost kernel: usb-ohci.c: usb-00:0b.0, NEC
> Corporation USB
> Jun 24 13:37:50 localhost kernel: usb.c: new USB bus registered,
> assigned bus number 1
> Jun 24 13:37:50 localhost kernel: hub.c: USB hub found
> Jun 24 13:37:50 localhost kernel: hub.c: 3 ports detected
> Jun 24 13:37:50 localhost kernel: PCI: Found IRQ 9 for device 00:0b.1
> Jun 24 13:37:50 localhost kernel: PCI: Sharing IRQ 9 with 00:0a.0
> Jun 24 13:37:50 localhost kernel: usb-ohci.c: USB OHCI at membase
> 0xf0872000, IRQ 9
> Jun 24 13:37:50 localhost kernel: usb-ohci.c: usb-00:0b.1, NEC
> Corporation USB (#2)
> Jun 24 13:37:50 localhost kernel: usb.c: new USB bus registered,
> assigned bus number 2
> Jun 24 13:37:50 localhost kernel: hub.c: USB hub found
> Jun 24 13:37:50 localhost kernel: hub.c: 2 ports detected
> Jun 24 13:37:50 localhost kernel: hub.c: new USB device 00:0b.0-1,
> assigned address 2
> Jun 24 13:37:50 localhost kernel: hub.c: USB hub found
> Jun 24 13:37:50 localhost kernel: hub.c: 4 ports detected
> Jun 24 13:37:50 localhost kernel: PCI: Found IRQ 10 for device 00:0b.2
> Jun 24 13:37:50 localhost kernel: PCI: Sharing IRQ 10 with 00:07.2
> Jun 24 13:37:50 localhost kernel: PCI: Sharing IRQ 10 with 00:0d.0
> Jun 24 13:37:50 localhost kernel: ehci-hcd 00:0b.2: NEC Corporation USB
> 2.0
> Jun 24 13:37:50 localhost kernel: ehci-hcd 00:0b.2: irq 10, pci mem
> f087a000
> Jun 24 13:37:50 localhost kernel: usb.c: new USB bus registered,
> assigned bus number 3
> Jun 24 13:37:51 localhost kernel: PCI: 00:0b.2 PCI cache line size set
> incorrectly (32 bytes) by BIOS/FW.
> Jun 24 13:37:51 localhost kernel: PCI: 00:0b.2 PCI cache line size
> corrected to 128.
> Jun 24 13:37:51 localhost kernel: ehci-hcd 00:0b.2: USB 2.0 enabled,
> EHCI 0.95, driver 2003-Jan-22
> Jun 24 13:37:51 localhost kernel: usb.c: USB disconnect on device
> 00:0b.0-1 address 2
> Jun 24 13:37:51 localhost kernel: hub.c: USB hub found
> Jun 24 13:37:51 localhost kernel: hub.c: 5 ports detected
> Jun 24 13:37:51 localhost kernel: usb-uhci.c: $Revision: 1.275 $ time
> 07:14:02 May 29 2003
> Jun 24 13:37:51 localhost kernel: usb-uhci.c: High bandwidth mode
> enabled
> Jun 24 13:37:51 localhost kernel: PCI: Found IRQ 10 for device 00:07.2
> Jun 24 13:37:51 localhost kernel: PCI: Sharing IRQ 10 with 00:0b.2
> Jun 24 13:37:51 localhost kernel: PCI: Sharing IRQ 10 with 00:0d.0
> Jun 24 13:37:51 localhost kernel: usb-uhci.c: USB UHCI at I/O 0x9000,
> IRQ 10
> Jun 24 13:37:51 localhost kernel: usb-uhci.c: Detected 2 ports
> Jun 24 13:37:51 localhost kernel: usb.c: new USB bus registered,
> assigned bus number 4
> Jun 24 13:37:51 localhost kernel: hub.c: USB hub found
> Jun 24 13:37:51 localhost kernel: hub.c: 2 ports detected
> Jun 24 13:37:51 localhost kernel: usb-uhci.c: v1.275:USB Universal Host
> Controller Interface driver
> Jun 24 13:37:51 localhost kernel: usb.c: registered new driver hiddev
> Jun 24 13:37:51 localhost kernel: usb.c: registered new driver hid
> Jun 24 13:37:51 localhost kernel: hid-core.c: v1.8.1 Andreas Gal,
> Vojtech Pavlik <vojtech at suse.cz>
> Jun 24 13:37:51 localhost kernel: hid-core.c: USB HID support drivers
> Jun 24 13:37:51 localhost kernel: mice: PS/2 mouse device common for all
> mice
> Jun 24 13:37:51 localhost kernel: hub.c: new USB device 00:0b.2-1,
> assigned address 2
> Jun 24 13:37:51 localhost kernel: hub.c: USB hub found
> Jun 24 13:37:51 localhost kernel: hub.c: 4 ports detected
> Jun 24 13:37:51 localhost kernel: Adding Swap: 1582360k swap-space
> (priority -1)
> Jun 24 13:37:51 localhost kernel: hub.c: new USB device 00:07.2-1,
> assigned address 2
> Jun 24 13:37:51 localhost kernel: usb.c: USB device 2 (vend/prod
> 0x3f0/0x801) is not claimed by any active driver.
> Jun 24 13:37:51 localhost kernel: hub.c: new USB device 00:0b.2-1.2,
> assigned address 3
> Jun 24 13:37:51 localhost kernel: usb.c: USB device 3 (vend/prod
> 0x2821/0x5001) is not claimed by any active driver.
> Jun 24 13:37:51 localhost kernel: usbdevfs: remount parameter error
> Jun 24 13:37:51 localhost kernel: hub.c: new USB device 00:0b.2-1.4,
> assigned address 4
> Jun 24 13:37:51 localhost kernel: usb.c: USB device 4 (vend/prod
> 0x3f0/0x3404) is not claimed by any active driver.
> Jun 24 13:37:51 localhost kernel: hdc: attached ide-scsi driver.
> Jun 24 13:37:51 localhost kernel: scsi1 : SCSI host adapter emulation
> for IDE ATAPI devices
> Jun 24 13:37:51 localhost kernel:   Vendor: HP        Model: CD-Writer+
> 8100   Rev: 1.0g
> Jun 24 13:37:51 localhost kernel:   Type:  
> CD-ROM                             ANSI SCSI revision: 02
> Jun 24 13:37:51 localhost kernel: Initializing USB Mass Storage
> driver...
> Jun 24 13:37:51 localhost kernel: usb.c: registered new driver
> usb-storage
> Jun 24 13:37:51 localhost kernel: scsi2 : SCSI emulation for USB Mass
> Storage devices
> Jun 24 13:37:51 localhost kernel:   Vendor: ASUS      Model:
> CRW-5224A         Rev: 1.00
> Jun 24 13:37:51 localhost kernel:   Type:  
> CD-ROM                             ANSI SCSI revision: 02
> Jun 24 13:37:51 localhost kernel: USB Mass Storage support registered.
> Jun 24 13:37:51 localhost kernel: Attached scsi CD-ROM sr0 at scsi0,
> channel 0, id 4, lun 0
> Jun 24 13:37:51 localhost kernel: Attached scsi CD-ROM sr1 at scsi1,
> channel 0, id 0, lun 0
> Jun 24 13:37:51 localhost kernel: Attached scsi CD-ROM sr2 at scsi2,
> channel 0, id 0, lun 0
> Jun 24 13:37:51 localhost kernel: (scsi0:A:4): 10.000MB/s transfers
> (10.000MHz, offset 32)
> Jun 24 13:37:51 localhost kernel: sr0: scsi3-mmc drive: 0x/0x dvd-ram
> cd/rw xa/form2 cdda tray
> Jun 24 13:37:51 localhost kernel: Uniform CD-ROM driver Revision: 3.12
> Jun 24 13:37:51 localhost kernel: sr1: scsi3-mmc drive: 24x/24x writer
> cd/rw xa/form2 cdda tray
> Jun 24 13:37:51 localhost kernel: sr2: scsi-1 drive
> Jun 24 13:37:51 localhost kernel: usb.c: registered new driver usblp
> Jun 24 13:37:51 localhost kernel: printer.c: usblp0: USB Bidirectional
> printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x3404
> Jun 24 13:37:51 localhost kernel: printer.c: v0.11: USB Printer Device
> Class driver
> Jun 24 13:37:51 localhost kernel: parport0: PC-style at 0x378
> [PCSPP,TRISTATE]
> Jun 24 13:37:51 localhost kernel: ip_tables: (C) 2000-2002 Netfilter
> core team
> Jun 24 13:37:51 localhost kernel: ip_conntrack version 2.1 (6143
> buckets, 49144 max) - 292 bytes per conntrack
> Jun 24 13:37:51 localhost kernel: Linux Tulip driver version
> 0.9.15-pre12 (Aug 9, 2002)
> Jun 24 13:37:51 localhost kernel: PCI: Found IRQ 11 for device 00:0c.0
> 
> Jun 24 13:45:57 localhost kernel: ac97_codec: AC97  codec, id: TRA35
> (TriTech TR A5)
> Jun 24 13:45:58 localhost modprobe: modprobe: Can't locate module
> sound-service-0-3
> Jun 24 13:52:13 localhost modprobe: modprobe: Can't locate module
> char-major-81
> Jun 24 13:52:35 localhost last message repeated 7 times
> Jun 24 13:53:48 localhost kernel: usb_control/bulk_msg: timeout
> Jun 24 13:53:48 localhost kernel: usbdevfs: USBDEVFS_BULK failed dev 2
> ep 0x82 len 1 ret -110
> Jun 24 13:54:18 localhost kernel: usb_control/bulk_msg: timeout
> Jun 24 13:54:18 localhost kernel: usbdevfs: USBDEVFS_BULK failed dev 2
> ep 0x83 len 22 ret -110
> Jun 24 13:54:48 localhost kernel: usb_control/bulk_msg: timeout
> Jun 24 13:54:48 localhost kernel: usbdevfs: USBDEVFS_BULK failed dev 2
> ep 0x1 len 6 ret -110
> Jun 24 13:55:18 localhost kernel: usb_control/bulk_msg: timeout
> Jun 24 13:55:18 localhost kernel: usbdevfs: USBDEVFS_BULK failed dev 2
> ep 0x82 len 1 ret -110
> Jun 24 13:55:48 localhost kernel: usb_control/bulk_msg: timeout
> Jun 24 13:55:48 localhost kernel: usbdevfs: USBDEVFS_BULK failed dev 2
> ep 0x1 len 6 ret -110
> Jun 24 13:57:50 localhost modprobe: modprobe: Can't locate module
> char-major-81
> Jun 24 13:57:50 localhost last message repeated 3 times
> 
> Jun 24 13:58:20 localhost kernel: usb_control/bulk_msg: timeout
> Jun 24 13:58:20 localhost kernel: usbdevfs: USBDEVFS_BULK failed dev 2
> ep 0x1 len 6 ret -110
> Jun 24 13:58:50 localhost kernel: usb_control/bulk_msg: timeout
> Jun 24 13:58:50 localhost kernel: usbdevfs: USBDEVFS_BULK failed dev 2
> ep 0x82 len 1 ret -110
> Jun 24 13:59:20 localhost kernel: usb_control/bulk_msg: timeout
> Jun 24 13:59:20 localhost kernel: usbdevfs: USBDEVFS_BULK failed dev 2
> ep 0x1 len 6 ret -110
> 
> Jun 24 14:16:09 localhost gconfd (root-3450): Received signal 1,
> shutting down cleanly
> 
> Jun 24 14:16:45 localhost rpc.statd[2040]: Caught signal 15,
> un-registering and exiting.Jun 25 08:55:06 
> 
> Jun 25 08:55:06 localhost kernel: usb.c: registered new driver
> usbscanner
> Jun 25 08:55:06 localhost kernel: scanner.c: 0.4.12:USB Scanner Driver
> Jun 25 08:55:06 localhost kernel: scanner.c: probe_scanner: User
> specified USB scanner -- Vendor:Product - 1:2
> 
> GENERIC KERNEL SCANNER DRIVER
>        Ensure that the access permissions for the USB device are set
> appropri-
>        ately.  We recommend to add a group "scanner" to /etc/group
> which  con-
>        tains all users that should have access to the scanner.  The
> permission
>        of the device should then be set to allow group read and write 
> access.
>        For  example,  if  the scanner is at USB device
> /dev/usb/scanner0, then
>        the following two commands would set the permission correctly:
>  
>               $ chgrp scanner /dev/usb/scanner0
>               $ chmod 660 /dev/usb/scanner0
>  
>        If your scanner isn’t detected automatically by your operating
> system’s
>        scanner  driver, you need to tell the kernel the vendor and
> product ids
>        of your scanner. For Linux, this can be done with modprobe 
> parameters:
>        First,  remove  the scanner module (rmmod scanner), then load it
> again:
>        modprobe scanner vendor=0x0001  product=0x0002.   Use  the 
> appropriate
>        vendor  and  product  ids  (e.g.  from /var/log/messages, dmesg,
> or cat
>        /proc/bus/usb/devices)
>  
> 
> /usr/local/etc/sane.d/avision.conf
> scsi AVISION
> scsi FCPA
> scsi MINOLTA
> scsi MITSBISH MCA-S600C
> scsi MITSBISH MCA-SS600
> scsi HP
> scsi hp
> scsi /dev/scanner
> usb  /dev/usbscanner
> usb  /dev/usb/scanner
> 
> [root at localhost root]# ls -l /dev/usb/scanner0
> crw-------    1 tom      root     180,  48 Jan 30 02:24
> /dev/usb/scanner0
> [root at localhost root]# ls -l /dev/usbscanner
> ls: /dev/usbscanner: No such file or directory
> [root at localhost root]# ls -l /dev/usb/scanner
> ls: /dev/usb/scanner: No such file or directory
> [root at localhost root]#
> 
> 
> /etc/fstab
> none 	/proc/bus/usb 		usbfs defaults,devmode=0666  0  0
> 
> /proc/bus/usb/devices
> C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
> I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
> E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=255ms
> T:  Bus=04 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
> D:  Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
> P:  Vendor=03f0 ProdID=0801 Rev= 0.01
> S:  Manufacturer=hp
> S:  Product=hp scanjet 7400c
> S:  SerialNumber=87 tem  7400c   
> 
> /proc/bus/usb/drivers
>         usbdevfs
>          hub
>  96-111: hiddev
>          hid
>          usb-storage
>   0- 15: usblp
>  48- 63: usbscanner
> 
> 
> 
> 
> _______________________________________________
> Sane-devel mailing list
> Sane-devel at www.mostang.com
> http://www.mostang.com/mailman/listinfo/sane-devel
> 

-- 
"so don't tell us it can't be done, putting down what you don't know.
money isn't our god, integrity will free our souls" - Max Cavalera




More information about the sane-devel mailing list