[sane-devel] udev rule for HP ScanJet II SCSI

Klaus Dahlke klaus.dahlke at gmx.de
Thu Nov 9 20:46:37 CET 2006


On Sun, 05 Nov 2006 13:21:23 +0100
Daniel Golle <daniel.golle at gmail.com> wrote:

> ACTION!="add", GOTO="libsane_rules_end"
>
> # Hewlett-Packard ScanJet IIc
> BUS=="scsi", SYSFS{type}=="3", SYSFS{vendor}="HP      ",
> SYSFS{model}="C1750A          ", MODE="660", GROUP="scanner"
>
> BUS=="scsi", SYSFS{type}=="6", MODE="660", GROUP="scanner"
> SUBSYSTEM!="usb_device", GOTO="libsane_rules_end"
>
> # Hewlett-Packard ScanJet 4100C
> SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="0101", MODE="660",
> GROUP="scanner"
> .US=="scsi
> .
Hi Daniel,
please see below my udev-rule for an Umax scanner in 11-udev.rules:
BUS=="scsi", SYSFS{model}=="Astra 2200      ", NAME="scanner", GROUP="scanner"

That's good enough. As an alternative, you may use may also use the SYMLINK feature:
BUS=="scsi", SYSFS{model}="C1750A          ", NAME="%k", SYMLINK="hpscanjet", GROUP="scanner", MODE="660"

so you can access the Scanjet always via /dev/hpscanjet.

Cheers,
Klaus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20061109/aec812c4/attachment.pgp


More information about the sane-devel mailing list