Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem with usbfs and scanner
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Bowmore
n00b
n00b


Joined: 24 Jul 2004
Posts: 4

PostPosted: Sat Jul 24, 2004 7:13 pm    Post subject: Problem with usbfs and scanner Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55015
Location: 56N 3W

PostPosted: Sat Jul 24, 2004 8:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
Bowmore
n00b
n00b


Joined: 24 Jul 2004
Posts: 4

PostPosted: Sat Jul 24, 2004 8:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55015
Location: 56N 3W

PostPosted: Sat Jul 24, 2004 8:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
Bowmore
n00b
n00b


Joined: 24 Jul 2004
Posts: 4

PostPosted: Sat Jul 24, 2004 9:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55015
Location: 56N 3W

PostPosted: Sun Jul 25, 2004 10:14 am    Post subject: Reply with quote

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
View user's profile Send private message
toaster666
n00b
n00b


Joined: 17 Apr 2004
Posts: 41
Location: Berlin

PostPosted: Mon Dec 20, 2004 2:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum