View previous topic :: View next topic |
Author |
Message |
Bowmore n00b

Joined: 24 Jul 2004 Posts: 4
|
Posted: Sat Jul 24, 2004 7:13 pm Post subject: Problem with usbfs and scanner |
|
|
Hi,
I'm desperately trying to make my scanner work...
- Epson Perfection 1250 Photo USB
- libusb, sane compiled with -USE=usb
When connecting the scanner dmesg says:
usb 3-2: new full speed USB device using address 2
sane-find-scanner says:
found USB scanner (vendor=0x04b8 [EPSON], product=0x010f [EPSON Scanner 010F], chip=LM9832/3) at libusb:003:003
When I try to use kooka or iscan dmesg says:
usb 3-2: usbfs: USBDEVFS_BULK failed ep 0x82 len 1 ret -110
usb 3-2: bulk timeout on ep2in
usb 3-2: usbfs: USBDEVFS_BULK failed ep 0x82 len 4 ret -110
usb 3-2: usbfs: interface 0 claimed while 'kooka' sets config #1
I've tried kernel 2.6.7 and 2.6.8-rc2, it makes no difference.
Any ideas?
Thx
Bowmore |
|
Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 55015 Location: 56N 3W
|
Posted: Sat Jul 24, 2004 8:16 pm Post subject: |
|
|
Bowmore,
Have you got long timeouts configured in your kernel?
Whats in your hot plug script _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
 |
Bowmore n00b

Joined: 24 Jul 2004 Posts: 4
|
Posted: Sat Jul 24, 2004 8:35 pm Post subject: |
|
|
Hi NeddySeagoon,
I haven't configured any timeouts in the kernel, so there should be the defaults.
Here's my script /etc/hotplug/usb/libusbscanner
#!/bin/sh
# This file is part of sane-backends.
#
# This script changes the permissions and ownership of a USB device under
# /proc/bus/usb to grant access to this device to users in the scanner group.
#
# Ownership is set to root:scanner, permissions are set to 0660.
#
# Arguments :
# -----------
# ACTION=[add|remove]
# DEVICE=/proc/bus/usb/BBB/DDD
# TYPE=usb
if [ -z "$DEVICE" ] ; then
IF=$(echo $DEVPATH | sed 's:\(bus/usb/devices/\)\(.*\)-\(.*\):\2:')
DEV=$(echo $DEVPATH | sed 's:\(bus/usb/devices/\)\(.*\)-\(.*\):\3:')
DEV=$(expr $DEV + 1)
DEVICE=$(printf '/proc/bus/usb/%.03d/%.03d' $IF $DEV)
fi
if [ "$ACTION" = "add" -a "$TYPE" = "usb" ]; then
chown root:scanner "$DEVICE"
chmod 0770 "$DEVICE"
fi
# That's an insecure but simple alternative
# Everyone has access to the scanner
# if [ "$ACTION" = "add" -a "$TYPE" = "usb" ]; then
# chmod 0666 "$DEVICE"
# fi
While the scanner is connected ls -l /proc/bus/usb/003/ says:
-rwxrwx--- 1 root scanner 57 Jul 24 22:32 002
Thx
Bowmore |
|
Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 55015 Location: 56N 3W
|
Posted: Sat Jul 24, 2004 8:54 pm Post subject: |
|
|
Bowmore,
That all looks good and the long timeout option has been removed from 2.6.7. I don't know when it went.
Which backend are you using?
http://www.freecolormanagement.com/sane/ says the Plustek backend works with the Perfection 1250. i.e. not the Epson one. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
 |
Bowmore n00b

Joined: 24 Jul 2004 Posts: 4
|
Posted: Sat Jul 24, 2004 9:30 pm Post subject: |
|
|
Hi NeddySeagoon,
I use the plustek backend.
I've forgotten to say that the scanner has worked with kernel 2.4.x
But if I'd go back, my dvd-writer wouldn't work...
Thx
Bowmore |
|
Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 55015 Location: 56N 3W
|
Posted: Sun Jul 25, 2004 10:14 am Post subject: |
|
|
Bowmore,
I'm out of ideas just now. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
 |
toaster666 n00b


Joined: 17 Apr 2004 Posts: 41 Location: Berlin
|
Posted: Mon Dec 20, 2004 2:27 pm Post subject: |
|
|
Hello Bowmore,
had you resolved your problems? I have exactly the same problem now. Could you give me a clue?
Thanks
>toaster |
|
Back to top |
|
 |
|