rules: Enable USB autosuspend on more USB HID devices
PATCH 1/1 rules: Enable USB autosuspend on more USB HID devices
Many servers will be connected to KVMs or include iLO support, and this is often presented as a set of USB input devices. Enabling autosuspend on these allows the USB hardware to be powered down, avoiding unnecessary wakeups and power consumption. The input devices will be self powered, so there's no risk of losing input events as there would be for real input devices. The same is true of USB input devices that are built into the system.
--- Makefile.am | 2 +- rules/42-qemu-usb.rules | 13 ------------ rules/42-usb-hid-pm.rules | 49 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 50 insertions(+), 14 deletions(-) delete mode 100644 rules/42-qemu-usb.rules create mode 100644 rules/42-usb-hid-pm.rules
Makefile.am +1 -1
@@ -150,7 +150,7 @@ INSTALL_DATA_HOOKS += udev-confdirs udevrulesdir = $(libexecdir)/udev/rules.d dist_udevrules_DATA = \ - rules/42-qemu-usb.rules \ + rules/42-usb-hid-pm.rules \ rules/50-udev-default.rules \ rules/60-persistent-storage-tape.rules \ rules/60-persistent-serial.rules \
rules/42-qemu-usb.rules deleted +0 -13
@@ -1,13 +0,0 @@ -# -# Enable autosuspend for qemu emulated usb hid devices. -# -# Note that there are buggy qemu versions which advertise remote -# wakeup support but don't actually implement it correctly. This -# is the reason why we need a match for the serial number here. -# The serial number "42" is used to tag the implementations where -# remote wakeup is working. -# - -ACTION="add", SUBSYSTEM="usb", ATTR{product}="QEMU USB Mouse", ATTR{serial}="42", TEST="power/control", ATTR{power/control}="auto" -ACTION="add", SUBSYSTEM="usb", ATTR{product}="QEMU USB Tablet", ATTR{serial}="42", TEST="power/control", ATTR{power/control}="auto" -ACTION="add", SUBSYSTEM="usb", ATTR{product}="QEMU USB Keyboard", ATTR{serial}="42", TEST="power/control", ATTR{power/control}="auto"
rules/42-usb-hid-pm.rules new file +49 -0
49 lines not on this page · raw message
Signature · 1 line
1.7.7.6
Kay Sievers
AppliedQuoted 7 lines · Matthew Garrett
Many servers will be connected to KVMs or include iLO support, and this is often presented as a set of USB input devices. Enabling autosuspend on these allows the USB hardware to be powered down, avoiding unnecessary wakeups and power consumption. The input devices will be self powered, so there's no risk of losing input events as there would be for real input devices. The same is true of USB input devices that are built into the system.
Applied.
Thanks,
Kay