[sane-devel] VIA chipset and HP4100C USB scanner

m. allan noah anoah@pfeiffer.edu
Tue, 29 Jun 2004 19:34:08 -0400 (EDT)


when you run scanimage with no -d argument, sane will load all the 
backends that are listed in the dll.conf file, in an attempt to find your 
scanner. you can look for this file in /etc/sane.d or similar, and # out 
all the options other than the backend you are using. this should fix the 
video issues.

as to the timeouts, that could have any number of causes, but seems really 
common with 2.6.x can you switch back to a 2.4 kernel just to test?

allan

On Tue, 29 Jun 2004, Bill Moseley wrote:

> 
> I've got a MSI KT266-Pro2 motherboard with a VIA chipset.  I'm wondering if
> my hardware is the problem or if there's other things to check.  I'm
> able to sync a USB Palm device with Jpilot without any problems, but
> my scanner generates errors.
> 
> I have another machine (an older Toshiba laptop) which first reported
> errors (way below), but I'm now able to scan with the HP 4100C scanner.
> 
> One difference is that on my desktop it seems that hotplug is loading
> videodev module, but that doesn't happen on my laptop.  I'm not sure
> why.
> 
> So basically, my qustion is if my hardware is just broken and will never
> work, or if there's something else I can try to resolve scanning
> problems.  I have hope since Jpilot usb sync works.
> 
> Here's some details:
> 
> Both my Desktop (the KT266-Pro2 machine) and my laptop are running
> Debian Sid.  The Desktop has 2.6.6 and the laptop 2.6.5.  Otherwise,
> same software (below for sane and libusb versions).
> 
> 
> When I plug in my scanner into the KT266-PRO2 I see:
> 
>   Jun 28 21:30:25 bumby kernel: usb 1-2: new full speed USB device using address 2
> 
> 
> Then I run sane-find-scanner and it reports:
> 
>     found USB scanner (vendor=0x03f0, product=0x0101) at libusb:001:002
>       # Your USB scanner was (probably) detected. It may or may not be supported by
>       # SANE. Try scanimage -L and read the backend's manpage.
> 
> 
> and in syslog I see:
> 
>     Jun 28 21:30:41 bumby kernel: usb 1-2: control timeout on ep0in
>     Jun 28 21:30:41 bumby kernel: usbfs: USBDEVFS_CONTROL failed cmd sane-find-scann dev 2 rqt 128 rq 6 len 100 ret -110
>     Jun 28 21:30:42 bumby kernel: usb 1-2: control timeout on ep0in
>     Jun 28 21:30:42 bumby kernel: usbfs: USBDEVFS_CONTROL failed cmd sane-find-scann dev 2 rqt 128 rq 6 len 100 ret -110
> 
> Sometimes this works:
> 
>     moseley@bumby:~$ scanimage -L
>     device `hp:libusb:001:002' is a Hewlett-Packard ScanJet 4100C flatbed scanner
> 
> and entries in syslog from scanimage:
> 
>     Jun 28 21:34:11 bumby kernel: Linux video capture interface: v1.00
>     Jun 28 21:34:18 bumby kernel: usb 1-2: control timeout on ep0out
> 
> Not sure why Linux video capture was loaded.  I don't have any video
> capture cards.  lsmod shows "videodev".  Is hotplug confused about what
> module should be loaded?
> 
> Sometimes syslog reports this again:
> 
>     Jun 28 21:37:34 bumby kernel: usb 1-2: control timeout on ep0out
> 
> But sometimes scanimage -L reports that a scanner can't be found, and
> sometimes scanimage -L hangs with the process in "D" status which can't
> be kill -9'ed (requires a reboot, so it seems).  I've also had scanimage
> -L do this:
> 
>     moseley@bumby:~$ scanimage -L
>     Segmentation fault
> 
> Finally:
> 
>     moseley@bumby:~$ scanimage >out.png
>     scanimage: no SANE devices found
> 
> or sometimes:
> 
>    meley@bumby:~$ scanimage >out.png
>    scanimage: sane_start: Error during device I/O
> 
> And that's where I'm stuck.  Any suggestions?
> 
> Here's more details on my setup.  Probably more info than needed, but...
> 
> Debian Sid with 2.6.6.  MSI K7T266 main board.
> 
>     moseley@bumby:~$ dpkg -l | egrep '(sane|libusb|hotplug)'
>     ii  hotplug        0.0.20040329-8 Linux Hotplug Scripts
>     ii  libsane        1.0.14-2       API library for scanners
>     ii  libusb-0.1-4   0.1.8-11       Userspace USB programming library
>     ii  sane           1.0.12-2       scanner graphical frontends
>     ii  sane-utils     1.0.14-2       API library for scanners -- utilities
>     ii  xsane          0.93-1         GTK+-based X11 frontend for SANE (Scanner Ac
>     ii  xsane-common   0.93-1         GTK+-based X11 frontend for SANE (Scanner Ac
> 
> 
> Here's one of my usb entries from lspci -v  (says USB2.0 but I think my
> USB is 1.1, according to the MSI motherboard manual).
> 
>     0000:00:11.2 USB Controller: VIA Technologies, Inc. VT6202 [USB 2.0 controller] (rev 1b) (prog-if 00 [UHCI])
>         Subsystem: VIA Technologies, Inc. (Wrong ID) USB Controller
>         Flags: bus master, medium devsel, latency 64, IRQ 5
>         I/O ports at d400 [size=32]
>         Capabilities: [80] Power Management version 2
> 
> 
> 
> 
>     moseley@bumby:~$ lsmod
>     Module                  Size  Used by
>     videodev                9408  0 
>     lp                     10564  0 
>     uhci_hcd               30672  0 
>     w83627hf               28612  0 
>     i2c_sensor              2944  1 w83627hf
>     i2c_isa                 2048  0 
>     i2c_viapro              7052  0 
>     i2c_core               23044  4 w83627hf,i2c_sensor,i2c_isa,i2c_viapro
> 
>     moseley@bumby:~$ fgrep USB /boot/config-2.6.6-xfs-athlon  | grep -v ^#
>     CONFIG_USB=y
>     CONFIG_USB_DEVICEFS=y
>     CONFIG_USB_UHCI_HCD=m
>     CONFIG_USB_AUDIO=m
>     CONFIG_USB_PRINTER=m
>     CONFIG_USB_STORAGE=m
>     CONFIG_USB_HID=m
>     CONFIG_USB_HIDINPUT=y
>     CONFIG_USB_HIDDEV=y
>     CONFIG_USB_KBD=m
>     CONFIG_USB_MOUSE=m
>     CONFIG_USB_SERIAL=m
>     CONFIG_USB_SERIAL_GENERIC=y
>     CONFIG_USB_SERIAL_BELKIN=m
>     CONFIG_USB_SERIAL_WHITEHEAT=m
>     CONFIG_USB_SERIAL_DIGI_ACCELEPORT=m
>     CONFIG_USB_SERIAL_EMPEG=m
>     CONFIG_USB_SERIAL_FTDI_SIO=m
>     CONFIG_USB_SERIAL_VISOR=m
>     CONFIG_USB_SERIAL_IPAQ=m
>     CONFIG_USB_SERIAL_IR=m
>     CONFIG_USB_SERIAL_EDGEPORT=m
>     CONFIG_USB_SERIAL_KEYSPAN_PDA=m
>     CONFIG_USB_SERIAL_KEYSPAN=m
>     CONFIG_USB_SERIAL_KLSI=m
>     CONFIG_USB_SERIAL_MCT_U232=m
>     CONFIG_USB_SERIAL_PL2303=m
>     CONFIG_USB_SERIAL_CYBERJACK=m
>     CONFIG_USB_SERIAL_XIRCOM=m
>     CONFIG_USB_SERIAL_OMNINET=m
>     CONFIG_USB_EZUSB=y
>     CONFIG_USB_RIO500=m
> 
> I'm able to scan on my laptop, also runnning Debian Sid and same software.
> But, once in a while I do see similar problems -- so I wonder if it's a
> scanner issue.
> 
> Jun 29 09:29:22 localhost kernel: usbfs: USBDEVFS_CONTROL failed cmd sane-find-scann dev 2 rqt 128 r
> Jun 29 09:29:23 localhost kernel: usb 1-1: control timeout on ep0in
> Jun 29 09:29:23 localhost kernel: usbfs: USBDEVFS_CONTROL failed cmd sane-find-scann dev 2 rqt 128 r
> Jun 29 09:29:44 localhost kernel: usb 1-1: control timeout on ep0out
> Jun 29 09:30:09 localhost kernel: usb 1-1: control timeout on ep0out
> Jun 29 09:30:41 localhost kernel: usb 1-1: bulk timeout on ep1in
> Jun 29 09:30:41 localhost kernel: usbfs: USBDEVFS_BULK failed dev 2 ep 0x81 len 4096 ret -110
> Jun 29 09:30:46 localhost kernel: usb 1-1: control timeout on ep0out
> Jun 29 09:31:16 localhost kernel: usb 1-1: bulk timeout on ep2out
> Jun 29 09:31:16 localhost kernel: usbfs: USBDEVFS_BULK failed dev 2 ep 0x2 len 2 ret -110
> 
> 
> 
> 

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