[sane-devel] [PATCH v2] hp.desc: Mark HP ScanJet 6100C as SCSI device type 3
Paul Menzel
paulepanter at users.sourceforge.net
Wed Feb 13 17:07:45 UTC 2013
Date: Wed, 13 Feb 2013 17:26:24 +0100
According to the blog post of jhansonxi [1] the HP ScanJet 6100C
advertises itself as a processor device by using the value 3 for the
SCSI Peripheral Device Type [2].
$ more /devices/pci0000:00/0000:00:1e.0/0000:01:01.0/host4/target4:0:5/4:0:5:0
KERNELS=="4:0:5:0"
SUBSYSTEMS=="scsi"
DRIVERS==""
ATTRS{device_blocked}=="0"
ATTRS{type}=="3"
ATTRS{scsi_level}=="3"
ATTRS{vendor}=="HP "
ATTRS{model}=="C2520A "
[…]
Since it is not using the normal value 6 for scanner device [2], this
has to be documented in the description file in the form
:scsi "vendor" "model" processor
so that the program `sane-desc` can create the correct udev rules file.
Please note that this commit is for completeness as with Julien Blache’s
commit [3]
commit 9b229f06b9fdca1098d7fb5181731b030fbdfccc
Author: Julien BLACHE <jb at jblache.org>
Date: Sun Oct 31 10:20:53 2010 +0100
Add SCSI IDs for ScanJet 4c
the model attribute C2520A is already present in the generated udev
rules file.
[1] http://jhansonxi.blogspot.de/2009/08/writing-udev-rules-to-get-scsi-scanner.html
[2] http://en.wikipedia.org/wiki/SCSI_Peripheral_Device_Type
[3] http://anonscm.debian.org/gitweb/?p=sane/sane-backends.git;a=commitdiff;h=9b229f06b9fdca1098d7fb5181731b030fbdfccc
---
Please apply with `git am path/to/saved/mbox`.
v2: Spell Juli*e*n correctly.
doc/descriptions/hp.desc | 1 +
1 file changed, 1 insertion(+)
diff --git a/doc/descriptions/hp.desc b/doc/descriptions/hp.desc
index 8a662c5..d73d286 100644
--- a/doc/descriptions/hp.desc
+++ b/doc/descriptions/hp.desc
@@ -83,6 +83,7 @@
:model "ScanJet 6100C"
:interface "SCSI"
:status :complete
+:scsi "HP" "C2520A" "processor"
:model "ScanJet 6200C"
:interface "SCSI USB"
--
1.7.10.4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20130213/3854f2f0/attachment.pgp>
More information about the sane-devel
mailing list