mirror of
https://github.com/systemd/systemd.git
synced 2024-11-05 15:21:37 +03:00
4e54f5334e
These patches enable usb autosuspend for the qemu emulated HID devices. This reduces the cpu load for idle guests with a hid device attached because the linux kernel will suspend the usb bus then and qemu can stop running a 1000 Hz to emulate the (active) UHCI controller. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
14 lines
763 B
Plaintext
14 lines
763 B
Plaintext
#
|
|
# 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"
|
|
CTION=="add", SUBSYSTEM=="usb", ATTR{product}=="QEMU USB Keyboard", ATTR{serial}=="42", TEST=="power/control", ATTR{power/control}="auto"
|