Good Day
On some older Linux distros the standard 55-hpmud.rules file will not
work (ie: Suse 10.0). The reason for this is the usbfs uses
/proc/bus/usb/ instead of /dev/bus/usb/. Since udev is designed to
support /dev not /proc device files, normal udev rules will not work.
Thus the /proc/bus/usb/ device file privileges are not set correctly.
In order to support /proc/bus/usb/ based systems a custom rules file can
be used. See the attached rules file. This rules file is product-id
based. Once the product-id is verified the correct /proc/bus/usb/
privileges will be set.
The example only has one rule line for the Laserjet 3050 product-id
0x3217 (ie: SYSFS{idProduct}=="3217"). In order to support other HP
devices, new rules lines must be added.
New devices can be added by duplicating the LJ 3050 rules line and
changing the product-id. Use lsusb to determine the actual product-id
for other devices.
jh
# Use this rules file when usbfs uses /proc/bus/usb/ instead of /dev/bus/usb/
(ie: Suse 10.0).
# The idProduct below must match the actual USB product-id. Use lsusb to get
the actual product-id from device enumeration.
SUBSYSTEM!="usb_device", GOTO="hpmud_rules_end"
ACTION!="add", GOTO="hpmud_rules_end"
SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="3217", PROGRAM="/bin/sh -c 'X=%k
X=$${X#usbdev} B=$${X%%%%.*} D=$${X#*.}; printf /proc/bus/usb/%%03i/%%03i $$B
$$D'", RUN+="/bin/chown lp: %c; /bin/chmod 666 %c"
LABEL="hpmud_rules_end"
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
HPLIP-Help mailing list
HPLIP-Help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hplip-help