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

Henning Meier-Geinitz henning at meier-geinitz.de
Tue May 9 17:07:38 UTC 2006


Hi,

On 2006-05-07 20:39, Peter Christy wrote:
> To summarise: I added the following line to my udev.rules (sorry about the 
> wrod-wrap!)
> 
> # permissions for usb scanner
> SUBSYSTEM=="usb", ACTION=="add", ENV{PRODUCT}=="4b8/11d/*", 
> RUN+="/bin/sh -c '/bin/chgrp scanner $env{DEVICE}; /bin/chmod 664 
> $env{DEVICE}'"
> 
> Many thanks to all those who have contributed ideas, and particularly to 
> Wittawat Yamwong for the solution!
> 
> Might be an idea to add this fix in the documentation somewhere?

By default, SANE generates a udev rules file like this:

ACTION!="add", GOTO="libsane_rules_end"
SUBSYSTEM!="usb_device", GOTO="libsane_rules_end"

# Hewlett-Packard ScanJet 4100C
SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="0101", MODE="660", GROUP="scanner"
[...]
LABEL="libsane_rules_end"

Does this still work?

Bye,
  Henning



More information about the sane-devel mailing list