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

m. allan noah anoah@pfeiffer.edu
Wed, 25 Jun 2003 14:36:57 -0400 (EDT)


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

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

=2E/configure --prefix=3D/usr --sysconfdir=3D/etc
make
make install

if not, start with those two things. then we can be sure that the version=
=20
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 us=
b
> > > device.  The hardware browser still showed no browser, and xsane foun=
d
> > > no scanner device on startup.
> > >=20
> > > How can I get the scanner recognized as a USB device?
> >=20
> > That's done automatically. If it's not detected as USB device by the
> > kernel, it can't be used by hpusbscsi.
> >=20
> > 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.
> >=20
>=20
> 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.
>=20
> 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.
>=20
> I'll keep trying.  I have just done=20
> modprobe scanner vendor=3D0x0001  product=3D0x0002,
> and I plan to reboot and continue debugging, starting with why
> /dev/usbscanner does not exist.
>=20
> Any help would be appreciated.
>=20
> Tom Frayne
>=20
>=20
>=20
>=20
> Here are the details:
>=20
> found USB scanner (vendor=3D0x03f0 [hp], product=3D0x0801 [hp scanjet
> 7400c]) at libusb:004:002
>=20
> device `avision:libusb:004:002' is a Hewlett-Packard ScanJet 7400c
> flatbed scanner
>=20
> Hardware browser lists no scanners
>=20
> 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 =3D /proc/kmsg
> started.
> Jun 24 13:37:48 localhost kernel: Linux version 2.4.20-18.9
> (root@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@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: =20
> 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: =20
> 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
>=20
> 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
>=20
> 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
>=20
> Jun 24 14:16:09 localhost gconfd (root-3450): Received signal 1,
> shutting down cleanly
>=20
> Jun 24 14:16:45 localhost rpc.statd[2040]: Caught signal 15,
> un-registering and exiting.Jun 25 08:55:06=20
>=20
> 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
>=20
> 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=20
> access.
>        For  example,  if  the scanner is at USB device
> /dev/usb/scanner0, then
>        the following two commands would set the permission correctly:
> =20
>               $ chgrp scanner /dev/usb/scanner0
>               $ chmod 660 /dev/usb/scanner0
> =20
>        If your scanner isn=E2=80=99t detected automatically by your opera=
ting
> system=E2=80=99s
>        scanner  driver, you need to tell the kernel the vendor and
> product ids
>        of your scanner. For Linux, this can be done with modprobe=20
> parameters:
>        First,  remove  the scanner module (rmmod scanner), then load it
> again:
>        modprobe scanner vendor=3D0x0001  product=3D0x0002.   Use  the=20
> appropriate
>        vendor  and  product  ids  (e.g.  from /var/log/messages, dmesg,
> or cat
>        /proc/bus/usb/devices)
> =20
>=20
> /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
>=20
> [root@localhost root]# ls -l /dev/usb/scanner0
> crw-------    1 tom      root     180,  48 Jan 30 02:24
> /dev/usb/scanner0
> [root@localhost root]# ls -l /dev/usbscanner
> ls: /dev/usbscanner: No such file or directory
> [root@localhost root]# ls -l /dev/usb/scanner
> ls: /dev/usb/scanner: No such file or directory
> [root@localhost root]#
>=20
>=20
> /etc/fstab
> none =09/proc/bus/usb =09=09usbfs defaults,devmode=3D0666  0  0
>=20
> /proc/bus/usb/devices
> C:* #Ifs=3D 1 Cfg#=3D 1 Atr=3D40 MxPwr=3D  0mA
> I:  If#=3D 0 Alt=3D 0 #EPs=3D 1 Cls=3D09(hub  ) Sub=3D00 Prot=3D00 Driver=
=3Dhub
> E:  Ad=3D81(I) Atr=3D03(Int.) MxPS=3D   8 Ivl=3D255ms
> T:  Bus=3D04 Lev=3D01 Prnt=3D01 Port=3D00 Cnt=3D01 Dev#=3D  2 Spd=3D12  M=
xCh=3D 0
> D:  Ver=3D 1.00 Cls=3D00(>ifc ) Sub=3D00 Prot=3D00 MxPS=3D 8 #Cfgs=3D  1
> P:  Vendor=3D03f0 ProdID=3D0801 Rev=3D 0.01
> S:  Manufacturer=3Dhp
> S:  Product=3Dhp scanjet 7400c
> S:  SerialNumber=3D87 tem  7400c  =20
>=20
> /proc/bus/usb/drivers
>         usbdevfs
>          hub
>  96-111: hiddev
>          hid
>          usb-storage
>   0- 15: usblp
>  48- 63: usbscanner
>=20
>=20
>=20
>=20
> _______________________________________________
> Sane-devel mailing list
> Sane-devel@www.mostang.com
> http://www.mostang.com/mailman/listinfo/sane-devel
>=20

--=20
"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