On Wed, 2003-06-25 at 13:52, Henning Meier-Geinitz wrote: > Is the scanner found as USB device now? Something like "libusb:001:002"? > > Please show us "sane-find-scanner -q". > > I have to admitt that I'm a bit confused by the backend. It uses USB > interrupt transfers to get the status of the scanner. However that > only works with libusb, not the kernel scanner driver. So I don't > really know why the backend lists "usb /dev/ubs/scanner" in > avision.conf. Maybe the maintainer can enlighten me :-) > > The name "usbdevfs" is obsolete. It's called "usbfs" now. But that's > not your problem.
> Usually the config files list all devices and device files the backend > supports. So it doesn't matter if there are additional ones. > > The backend checks for all USB devices anymway, I don't think the > entries in avsion.conf are necessary at all. > rmmod scanner > modprobe scanner vendor=0x03f0 product=0x0801 > Some distributions use(d) /dev/usbscanner, some use /dev/usb/scanner0. > Shouldn't matter in your case. > > > 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. > > That's your scanner. It's ok that it's not "claimed by any active > driver" because in this case it's used by usbfs (libusb). You can also > try to load the USB scanner driver as mentioned above. Then you should > get a message from that driver. > > I recommend to unplug/replug your scanner before any test. Otherwise > it may be confuded by eralier tests. > > > [root@localhost root]# ls -l /dev/usb/scanner0 > > crw-- 1 tom root 180, 48 Jan 30 02:24 > > /dev/usb/scanner0 > > That's ok. YOu can add a link /dev/usb/scanner to that one but I don't > think it's necessary. > > > /proc/bus/usb/devices > > Those entries start with "T:" (topology). > > > 48- 63: usbscanner > > Is loaded but doesn't know about your scanner. > > Bye, > Henning I snipped what now seems taken care of. Here is a summary of the current state: modprobe scanner vendor=0x03f0 product=0x0801 Jun 26 08:05:09 localhost kernel: usb.c: registered new driver usbscanner Jun 26 08:05:09 localhost kernel: scanner.c: USB scanner device (0x03f0/0x0801) now attached to scanner0 Jun 26 08:05:09 localhost kernel: scanner.c: 0.4.12:USB Scanner Driver Modified /usr/local/etc/sane.d/avision.conf to add usb /dev/usb/scanner0 [root@localhost root]# sane-find-scanner found USB scanner (vendor=0x03f0, product=0x0801) at /dev/usb/scanner0 found USB scanner (vendor=0x03f0 [hp], product=0x0801 [hp scanjet 7400c]) at libusb:004:002 [root@localhost root]# scanimage -L No scanners were identified. Hardware Browser found no scanners. Modified /usr/local/etc/sane.d/avision.conf to add usb 0x03f0 0x0801 This made scanimage -L work after rebooting, both in root mode and user mode: device `avision:libusb:004:002' is a Hewlett-Packard ScanJet 7400c flatbed scanner I shutdown, powered off the scanner, rebooted, ran xsane, and started a scan. The scanner hung as before, and the following appeared in messages. Jun 26 11:34:14 localhost modprobe: modprobe: Can't locate module char-major-81 Jun 26 12:11:41 localhost last message repeated 4 times Jun 26 12:11:41 localhost last message repeated 3 times Jun 26 12:18:37 localhost kernel: usb_control/bulk_msg: timeout Jun 26 12:18:37 localhost kernel: usbdevfs: USBDEVFS_BULK failed dev 2 ep 0x82 len 1 ret -110 Jun 26 12:19:07 localhost kernel: usb_control/bulk_msg: timeout Jun 26 12:19:07 localhost kernel: usbdevfs: USBDEVFS_BULK failed dev 2 ep 0x83 len 22 ret -110 Jun 26 12:19:37 localhost kernel: usb_control/bulk_msg: timeout Jun 26 12:19:37 localhost kernel: usbdevfs: USBDEVFS_BULK failed dev 2 ep 0x1 len 6 ret -110 Jun 26 12:20:07 localhost kernel: usb_control/bulk_msg: timeout Jun 26 12:20:07 localhost kernel: usbdevfs: USBDEVFS_BULK failed dev 2 ep 0x82 len 1 ret -110 Jun 26 12:20:37 localhost kernel: usb_control/bulk_msg: timeout Jun 26 12:20:37 localhost kernel: usbdevfs: USBDEVFS_BULK failed dev 2 ep 0x1 len 6 ret -110 I tried to change all occurrences of usbdevfs in my /etc (fstab, hotplug/usb.rc, mtab, rc.d/rc.sysinit, rc.sysinit) to usbfs, but something went wrong, and my system became unbootable. I restored my / and /var partitions. Now I am pretty sure that my problem is in usbdevfs, but I don't know how to fix it. What can I try next?