View previous topic :: View next topic |
Author |
Message |
zontar Tux's lil' helper
Joined: 23 Jan 2005 Posts: 88 Location: Seattle
|
Posted: Sat Apr 08, 2006 9:31 pm Post subject: [Solved] udev and usb scanner |
|
|
I upgraded to udev 087 yesterday and now I get an error message about my usb scanner. I followed the instructions at the wiki
http://gentoo-wiki.com/HOWTO_Install_a_USB_scanner
about a year ago and things work fine. But I get a message saying
Invalid Rule: scanner:root:scanner:0660
when udev starts. XSane is working so I guess it's not too big a deal. I'd just like to know what's going on. Should I just remove the offending lines from 10-udev.rules?
Last edited by zontar on Mon Apr 10, 2006 5:32 am; edited 1 time in total |
|
Back to top |
|
|
Headrush Watchman
Joined: 06 Nov 2003 Posts: 5597 Location: Bizarro World
|
Posted: Sat Apr 08, 2006 9:53 pm Post subject: |
|
|
Post the rule. |
|
Back to top |
|
|
zontar Tux's lil' helper
Joined: 23 Jan 2005 Posts: 88 Location: Seattle
|
Posted: Sun Apr 09, 2006 1:20 am Post subject: |
|
|
Thanks for the reply. I put this at the end of /etc/udev/rules.d/10-udev.rules
# scanner devices
scanner:root:scanner:0660
usb/scanner*:root:scanner:0660
I just copied it from http://gentoo-wiki.com/HOWTO_Install_a_USB_scanner#UDEV |
|
Back to top |
|
|
Headrush Watchman
Joined: 06 Nov 2003 Posts: 5597 Location: Bizarro World
|
Posted: Sun Apr 09, 2006 1:59 am Post subject: |
|
|
I've never seen rules like that before. Thinking that maybe something had changed with udev, I tired adding those rules and this was in the log: Code: | Apr 8 21:56:47 tux udevd[456]: add_to_rules: invalid rule 'scanner:root:scanner:0660 '
Apr 8 21:56:47 tux udevd[456]: add_to_rules: invalid rule 'usb/scanner*:root:scanner:0660 ' |
Can you post the output of:
and I'll see about creating the proper rule you need.
And what model scanner is it? |
|
Back to top |
|
|
zontar Tux's lil' helper
Joined: 23 Jan 2005 Posts: 88 Location: Seattle
|
Posted: Sun Apr 09, 2006 8:12 am Post subject: |
|
|
Gosh, thanks. Here's the output:
truck ~ # lsusb
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 002: ID 04a9:220d Canon, Inc. CanoScan N670U/N676U/LiDE 20
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
It's a CanonScan LiDE 20. Nice little scanner. |
|
Back to top |
|
|
Headrush Watchman
Joined: 06 Nov 2003 Posts: 5597 Location: Bizarro World
|
Posted: Sun Apr 09, 2006 2:52 pm Post subject: |
|
|
Do you have gphoto2 emerged? (Its worthwhile to have since it provides some of the scripts for scanners automatically)
What is the output of: Code: | ls -l /etc/hotplug/usb/
cat /etc/hotplug/usb/libsane.usermap | grep 220d |
Edit: The scanner is working? Just remove those lines in your udev rule, they are wrong and not needed. Most usb scanners are accessed through the libusb library and device nodes are not needed/used. |
|
Back to top |
|
|
zontar Tux's lil' helper
Joined: 23 Jan 2005 Posts: 88 Location: Seattle
|
Posted: Sun Apr 09, 2006 8:03 pm Post subject: |
|
|
Thanks for taking the time to think about this. The scanner IS working so I'll just remove the lines from 10-udev.rules. I've written rules for some other devices (iPod, camera, etc) and these look different. I set up the scanner a long time ago (using wiki info) and it's been working fine so I hadn't looked into it. After updating udev on Friday, it started complaining about these lines. Maybe someone should edit the wiki page. |
|
Back to top |
|
|
|