LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   USB scanner not in /proc/bus/usb/devices (http://www.linuxquestions.org/questions/linux-hardware-18/usb-scanner-not-in-proc-bus-usb-devices-145975/)

psweetma 02-14-2004 08:47 AM

USB scanner not in /proc/bus/usb/devices
 
Hi, I'd like to get my USB scanner working in Redhat 9 (Kernel 2.4.20), but I can't get it listed in /proc/bus/usb/devices. My USB FlashDrive is working so I think my USB system is fundamentally ok. The scanner is detected fine by windows too. What steps have I missed out?

I have tried issing the command '/sbin/modprobe scanner'. I don't know if I need to do this, but it does not error and gives the following in /var/logs/messages:

Feb 14 14:24:22 Tarfax kernel: scanner.c: 0.4.9:USB Scanner Driver

I have tried unplugging the USB cable from the scanner and reconnecting too.


My /proc/bus/usb/devices looks like:

T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=1
2 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 #Cfg
s= 1
P: Vendor=0000 ProdID=0000 Rev= 0.00
S: Product=USB UHCI Root Hub
S: SerialNumber=d800
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=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=1
2 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfg
s= 1
P: Vendor=0c76 ProdID=0007 Rev= 1.00
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=08(stor.) Sub=06 Prot=50
Driver=usb-storage
E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=83(I) Atr=03(Int.) MxPS= 8 Ivl=10ms
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=1
2 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 #Cfg
s= 1
P: Vendor=0000 ProdID=0000 Rev= 0.00
S: Product=USB UHCI Root Hub
S: SerialNumber=d400
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



Any help appreciated,
Paul

uwejs 02-25-2004 11:45 AM

Hi,

what type (model, vendor) of scanner is it?

uwejs

psweetma 02-25-2004 02:25 PM

It's an Epson Stylus CX3200 - a model readily supported, I understand.

Phorem 02-25-2004 04:05 PM

Taken right from the linuxprinting.org page..............


To be able to scan you need either kernel 2.4.21 or newer or you do a small change in the "scanner.o" module of older kernels. See this posting on the linux-usb-devel mailing list and the thread "Epson Stylus cx3200 MFP" on the Epson Forum.

You have to remove the following from the drivers/usb/scanner.c file in the kernel source:

if (dev->config[0].bNumInterfaces != 1) {
info("probe_scanner: Only one device interface is supported.");
return NULL;
}

Then you have to recompile, install, and reload the "scanner.o" kernel module (the commands have to be executed as "root", we assume that the kernel source code is in the /usr/src/linux directory):

cd /usr/src/linux
make modules
cp drivers/usb/scanner.o /lib/modules/<Linux version>/kernel/drivers/usb/
rmmod scanner
modprobe scanner vendor=0x04b8 product=0x0802

After having done so you can configure SANE to use the CX3200 with the "epson" scanner driver, it is compatible to the Epson Perfection 1200U.

Copying should just work with the front panel of the device.


Edit*** Here is the link http://www.linuxprinting.org/show_pr...-Stylus_CX3200

Cheers.

psweetma 02-25-2004 04:47 PM

Great, thank you very much, I'll give it the module recompilation a crack.

I'd given up on my original post, my fault for not putting the device details I suppose.

I'll post back here when I've tried the recompilation fix.


All times are GMT -5. The time now is 08:34 AM.