On 4 Nov 2001, Yves Duret wrote:
{ Denis Pelletier <[EMAIL PROTECTED]> writes:
{
{ > Hello,
{ >
{ > With kernel 2.4.13-2 I can't use my USB scanner (Epson perfection 640U).
{ > If I try to run xsane from the command line I get "xsane: no devices
{ > available". If I click on the dynamic xsane icon on my desktop I get
{ > "Failed to open device `/dev/usb/scanner0`: Invalid argument."
{ >
{ > usbview sees my scanner.
{ >
{ > [dpel@maniwaki dpel]$ ls -l /dev/usb/scanner0
{ > crw------- 1 dpel usb 180, 48 Dec 31 1969 /dev/usb/scanner0
{
{ date ? :-)
{
{ > With the kernel 2.4.10-6 my scanner is working. I'm using devfs with both
{ > kernels.
{
{ very strange.
{ output of cat /proc/bus/usb/devices ?
I have more info. With kernel-2.4.10-6 my scanner is
[dpel@maniwaki dpel]$ ls -l /dev/usb/scanner
crw------- 1 dpel usb 180, 48 Dec 31 1969 /dev/usb/scanner
and with 2.4.13-2 it is /dev/usb/scanner0. So obviously part of the
problem was my config of sane. I only had the line "usb /dev/usb/scanner"
in the file epson.conf. Adding the line "usb /dev/usb/scanner0" I can now
run sane from the command line. So the naming scheme changed between
2.4.10 and 2.4.13.
The only problem remaining is the dynamic icon on my desktop. If I click
on it, it execute the command "/usr/bin/xsane /dev/usb/scanner" or
"usr/bin/xsane /dev/usb/scanner0" depending on the kernel I'm running and
I get "Failed to open device `/dev/usb/scanner": Invalid argument".
The problem with xsane is that you can use "/usr/bin/xsane" or
"/usr/bin/xsane epson:/dev/usb/scanner", but you can't use "/usr/bin/xsane
/dev/usb/scanner". If you specify which device to use, you must also
specify which driver the device is using. Can the dynamic script do such a
thing, i.e. picking up the driver that goes with the device?
One last thing. The output of /proc/usb/devices (which is the same under
both kernel) is:
T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.00 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 0.00
S: Product=USB UHCI Root Hub
S: SerialNumber=9800
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=255ms
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.00 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 0.00
S: Product=USB UHCI Root Hub
S: SerialNumber=9400
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=255ms
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
D: Ver= 1.00 Cls=ff(vend.) Sub=00 Prot=ff MxPS= 8 #Cfgs= 1
P: Vendor=04b8 ProdID=010c Rev= 0.01
S: Manufacturer=EPSON
S: Product=Perfection640
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 2mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=usbscanner
E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl= 0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl= 0ms
Denis
_______________________________________________
Denis Pelletier
�tudiant au doctorat
sciences �conomiques, Universit� de Montr�al
an ordinary boy an ordinary name
but ordinary's just not good enough today
--Our Lady Peace, Superman's Dead