udev rules access deprecated power/level attribute in sysfs

Bug #1510581 reported by Ben Hutchings
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
New
Undecided
Unassigned

Bug Description

The udev rules include the following:

data/rules/56-hpmud_sysfs.rules:ENV{libsane_matched}=="yes", RUN+="/bin/sh -c 'test -e /sys/$env{DEVPATH}/power/level && echo on > /sys/$env{DEVPATH}/power/level'"
data/rules/56-hpmud.rules:ENV{libsane_matched}=="yes", RUN+="/bin/sh -c 'test -e /sys/$env{DEVPATH}/power/level && echo on > /sys/$env{DEVPATH}/power/level'"

The power/level attribute has been deprecated since Linux 2.6.35 in favour of the power/control attribute which is not specific to USB. Any access results in a warning in the kernel log.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.