[sane-devel] Hotplug and udev files created automatically now, please test!

Wittawat Yamwong wy-sane-devel at arcor.de
Thu May 4 13:40:43 UTC 2006


Hi Peter,

Try this:

USB_DEVFS_PATH=/dev/bus/usb scanimage [...]

The above line tells libusb to look at /dev/bus/usb first. Hope it helps.

On Thursday 04 May 2006 10:05, Peter Christy wrote:
> [...]
> I have added your line (slightly amended) to my udev rules:
>
> # permissions for usb scanner
> SUBSYSTEM=="usb", ACTION=="add", ENV{PRODUCT}=="04b8/011d/*",
> RUN+="/bin/sh -c '/bin/chgrp scanner $env{DEVICE}; /bin/chmod 664
> $env{DEVICE}'"  (all on one line - its been word-wrapped by my e-mail
> program!)

You should write the USBID as "4b8/11d/*". (No prepending '0') The environment 
variables PRODUCT, DEVICE etc. are defined in the kernel's USB core driver. 
(grep 'DEVICE=' [kernel]/drivers/usb/core/*) It is valid for kernel 2.6.13.

> According to messages elsewhere in this thread, it should use /dev/bus/ if
> its available, and only use /proc/bus if there is no device on /dev/bus/

libusb 0.1.10a installed in SUSE Linux 10.0 looks at /proc/bus/usb first 
then /dev/bus/usb. Whether a newer version also works this way, I don't know. 
I think, it also depends on Linux distribution. Actually, the whole problem 
is not directly related to SANE. IMHO, distributors should be responsible for 
a working libusb.

Regards
-- 
Wittawat Yamwong
Hannover, Germany



More information about the sane-devel mailing list