summaryrefslogtreecommitdiff
path: root/hwdb.d/60-autosuspend.hwdb
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-07-15 18:13:40 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-07-16 19:00:26 +0200
commitec8bebbcc27ebbd9fa606743199c456ed5e3874c (patch)
tree8bec2bd453886eee3f584e9452786b031f46594f /hwdb.d/60-autosuspend.hwdb
parentdf7667323d1a4a75a9a1fff1aa0aeb0d74d8a108 (diff)
downloadsystemd-ec8bebbcc27ebbd9fa606743199c456ed5e3874c.tar.gz
Add autosuspend rules for emulated QEMU devices
This effectively partially reverts "rules: remove all power management from udev" / e2452eef02a839e1928f4ffd893c93a460474ab6. The rules for emulated QEMU hardware were removed in one fell swoop with other rules which were causing problems. But the qemu rules were working properly (and were adjusted through patches over time). Nowadays we have a hwdb for this, so add hwdb entries using the new detailed modalias. https://github.com/systemd/systemd/pull/353#issuecomment-658810289
Diffstat (limited to 'hwdb.d/60-autosuspend.hwdb')
-rw-r--r--hwdb.d/60-autosuspend.hwdb10
1 files changed, 10 insertions, 0 deletions
diff --git a/hwdb.d/60-autosuspend.hwdb b/hwdb.d/60-autosuspend.hwdb
index 0de49afa6c..e742a33ea6 100644
--- a/hwdb.d/60-autosuspend.hwdb
+++ b/hwdb.d/60-autosuspend.hwdb
@@ -37,6 +37,16 @@ usb:v058Fp9540*
ID_AUTOSUSPEND=1
#########################################
+# QEMU
+#########################################
+
+# Emulated USB HID devices
+usb:v0627p0001:*QEMU USB Keyboard*
+usb:v0627p0001:*QEMU USB Mouse*
+usb:v0627p0001:*QEMU USB Tablet*
+ ID_AUTOSUSPEND=1
+
+#########################################
# Wacom
#########################################