Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
libusb, usb scanner and hotplug troubles (one more)
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
dju`
Retired Dev
Retired Dev


Joined: 11 Feb 2003
Posts: 370

PostPosted: Tue Dec 21, 2004 9:08 am    Post subject: libusb, usb scanner and hotplug troubles (one more) Reply with quote

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


Joined: 01 Feb 2004
Posts: 3942
Location: Hamburg

PostPosted: Tue Dec 21, 2004 1:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
dju`
Retired Dev
Retired Dev


Joined: 11 Feb 2003
Posts: 370

PostPosted: Tue Dec 21, 2004 2:50 pm    Post subject: Reply with quote

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


Joined: 17 Jul 2002
Posts: 305
Location: Lafayette, IN

PostPosted: Wed Dec 22, 2004 12:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
dju`
Retired Dev
Retired Dev


Joined: 11 Feb 2003
Posts: 370

PostPosted: Thu Dec 30, 2004 8:30 am    Post subject: Reply with quote

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
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