[Pkg-phototools-devel] [Pkg-kde-extras] udev rules HP Photosmart (was: Digikam stopped detecting my HP Photosmart camera...)

Mark Purcell msp at debian.org
Fri Jul 11 22:02:46 UTC 2008


On Fri, 11 Jul 2008, Marco d'Itri wrote:
> On Jul 10, Mark Purcell <msp at debian.org> wrote:
> > 1. Looking through the udev bug reports, it would appear that for a
> > printer/ multi function device from HP that MODE="0664" would be better
> > and would allow use with the upstream OWNER="root", GROUP="lp".
>
> These are the default permissions of USB devices.
> The upstream rules are silly and should not set OWNER="root" which is a
> no-op.
> Your rules are broken too, because if you remove the read bit for others
> lsusb will not show the devices and people will be annoyed. Just do not
> use MODE, the default of 664 is correct.

OK.  I will not set MODE and let the defaults work correctly.

> BTW, modifying /etc/sane.d/dll.conf from an udev rule does not work well
> because when the rule is run at boot time the scanner will not have been
> plugged in yet. Please don't do this.

Agreed. In the Debian package we ship a /etc/sane.d/dll.d/hplip instead.

I've attached what I think would be a more sensible rules for hplip and will 
install before (n-1) libgphoto.rules.

Mark
-------------- next part --------------
# Udev rules file for HP printer products.

ACTION!="add", GOTO="hpmud_rules_end"
SUBSYSTEM=="ppdev", OWNER="lp", GROUP="scanner"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GOTO="pid_test"
SUBSYSTEM!="usb_device", GOTO="hpmud_rules_end"

LABEL="pid_test"

# Check for AiO products (0x03f0xx11).
SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="??11", OWNER="lp", GROUP="scanner"
# Check for Photosmart products (0x03f0xx02).
SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="??02", OWNER="lp", GROUP="scanner"
# Check for Business Inkjet products (0x03f0xx12).
SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="??12", OWNER="lp", GROUP="scanner"
# Check for Deskjet products (0x03f0xx04).
SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="??04", OWNER="lp", GROUP="scanner"
# Check for LaserJet products (0x03f0xx17).
SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="??17", OWNER="lp", GROUP="scanner"

LABEL="hpmud_rules_end"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.alioth.debian.org/pipermail/pkg-phototools-devel/attachments/20080712/934874da/attachment.pgp 


More information about the Pkg-phototools-devel mailing list