Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] udev and usb scanner
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
zontar
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jan 2005
Posts: 88
Location: Seattle

PostPosted: Sat Apr 08, 2006 9:31 pm    Post subject: [Solved] udev and usb scanner Reply with quote

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


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Sat Apr 08, 2006 9:53 pm    Post subject: Reply with quote

Post the rule.
Back to top
View user's profile Send private message
zontar
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jan 2005
Posts: 88
Location: Seattle

PostPosted: Sun Apr 09, 2006 1:20 am    Post subject: Reply with quote

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


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Sun Apr 09, 2006 1:59 am    Post subject: Reply with quote

zontar wrote:
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

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:
Code:
lsusb

and I'll see about creating the proper rule you need.

And what model scanner is it?
Back to top
View user's profile Send private message
zontar
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jan 2005
Posts: 88
Location: Seattle

PostPosted: Sun Apr 09, 2006 8:12 am    Post subject: Reply with quote

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


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Sun Apr 09, 2006 2:52 pm    Post subject: Reply with quote

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: :oops: 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
View user's profile Send private message
zontar
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jan 2005
Posts: 88
Location: Seattle

PostPosted: Sun Apr 09, 2006 8:03 pm    Post subject: Reply with quote

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