mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
lib: Test before applying power saving udev rules
add TEST=="power/control"... to test for the presence of the file before setting it. See https://bugzilla.redhat.com/show_bug.cgi?id=950205 https://bugs.freedesktop.org/show_bug.cgi?id=87414
This commit is contained in:
committed by
Bastien Nocera
parent
35e356f625
commit
79d79c3c87
@@ -74,7 +74,7 @@ static void print_driver (struct fp_driver *driver)
|
||||
if (num_printed == 0)
|
||||
printf ("# %s\n", driver->full_name);
|
||||
|
||||
printf ("SUBSYSTEM==\"usb\", ATTRS{idVendor}==\"%04x\", ATTRS{idProduct}==\"%04x\", ATTRS{dev}==\"*\", ATTR{power/control}=\"auto\"\n", driver->id_table[i].vendor, driver->id_table[i].product);
|
||||
printf ("SUBSYSTEM==\"usb\", ATTRS{idVendor}==\"%04x\", ATTRS{idProduct}==\"%04x\", ATTRS{dev}==\"*\", TEST==\"power/control\", ATTR{power/control}=\"auto\"\n", driver->id_table[i].vendor, driver->id_table[i].product);
|
||||
num_printed++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user