From: Zbigniew Jędrzejewski-Szmek Date: Wed, 15 Jul 2020 16:13:40 +0000 (+0200) Subject: Add autosuspend rules for emulated QEMU devices X-Git-Tag: v246-rc2~51^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ec8bebbcc27ebbd9fa606743199c456ed5e3874c;p=thirdparty%2Fsystemd.git 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 --- diff --git a/hwdb.d/60-autosuspend.hwdb b/hwdb.d/60-autosuspend.hwdb index 0de49afa6cd..e742a33ea69 100644 --- a/hwdb.d/60-autosuspend.hwdb +++ b/hwdb.d/60-autosuspend.hwdb @@ -36,6 +36,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 #########################################