View previous topic :: View next topic |
Author |
Message |
dju` Retired Dev
Joined: 11 Feb 2003 Posts: 370
|
Posted: Tue Dec 21, 2004 9:08 am Post subject: libusb, usb scanner and hotplug troubles (one more) |
|
|
Hello,
I'm trying to make my Canon N650 usb scanner works. I'm using hotplug-20040923, coldplug-20040920, libusb-0.1.8, ck-sources-2.6.9-r3 and sane-backends-1.0.15.
It seems hotplug passes "DEVICE=/proc/bus/usb/001/002" to the /etc/hotplug/usb/libusbscanner script, so everything libusbscanner does is to chmod 660 and chown root:scanner it.
Actually, the scanner is on libusb:002:002:
Code: | sane-find-scanner
found USB scanner (vendor=0x04a9 [Canon], product=0x2206 [CanoScan], chip=LM9832/3) at libusb:002:002 |
This is why a simple user can't see the scanner, because /proc/bus/usb/002/002 isn't writable.
My question is: why does hotplug (or coldplug maybe, because my scanner is plugged at boot time) passes "001/002" instead of "002/002" to libusbscanner script?
Thanks for feedback. |
|
Back to top |
|
|
toralf Developer
Joined: 01 Feb 2004 Posts: 3942 Location: Hamburg
|
Posted: Tue Dec 21, 2004 1:48 pm Post subject: |
|
|
I never got this scanner to work correctly with an actual gentoo system, at least xsane complaines about something and I got lot of error messages in my syslog. |
|
Back to top |
|
|
dju` Retired Dev
Joined: 11 Feb 2003 Posts: 370
|
Posted: Tue Dec 21, 2004 2:50 pm Post subject: |
|
|
mine works correctly if i set the right permissions on the right /proc file.
...erm, correctly is not the world, i still can't get nice colors and tone. driver seems to be really bad. |
|
Back to top |
|
|
lazarusrat Guru
Joined: 17 Jul 2002 Posts: 305 Location: Lafayette, IN
|
Posted: Wed Dec 22, 2004 12:27 pm Post subject: |
|
|
I was having the same problem with vanilla 2.6.9 and 2.69.-cksomething. Attempting to fix another problem, I recompiled the kernel with UHCI, EHCI, and agpgart as modules (they were compiled in) and added pci=routeirq to the boot arguments. It works now. The libusbscanner script and sane-find-scanner and scanimage -L all show it as 001:003. _________________ obpiper: pipe menu generator for openbox
obtheme: pipe menu to switch openbox themes |
|
Back to top |
|
|
dju` Retired Dev
Joined: 11 Feb 2003 Posts: 370
|
Posted: Thu Dec 30, 2004 8:30 am Post subject: |
|
|
i've solved this by upgrading to ck-sources-2.6.10-r1 and moving UHCI to module (it was compiled-in). dunno which one did the trick, but, who cares thanks a lot. |
|
Back to top |
|
|
|