Sunday, October 19, 2008

udev

After some compilation and installation following this post FC8 HP LaserJet M1005 MFP installation -step-by-step-, I managed to get my scanner to work on Linpus. Unfortunately only as root. To get past this, I needed to dig into the world of udev. Here's what I found -

The scanner is found, as follows -
[user@localhost udev]$ sane-find-scanner
found USB scanner (vendor=0x03f0, product=0x3b17) at libusb:001:004

and after updating /etc/udev/rules.d/60-libsane.rules, udev is creating a symlink for the scanner -

[user@localhost udev]$ ll /dev/scanner-1-2.3
lrwxrwxrwx 1 root root 15 2008-10-20 16:33 /dev/scanner-1-2.3 -> bus/usb/001/004
[user@localhost udev]$ ll /dev/bus/usb/001/004
crw-r--r--+ 1 user root 189, 3 2008-10-20 16:54 /dev/bus/usb/001/004

and magically after a restart, it's even creating them with the right owner. A lot of playing around yesterday (perhaps without restarting) had me frustrated, as it was consistently created with root:root as the owner.

No comments: