From ec8bebbcc27ebbd9fa606743199c456ed5e3874c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Wed, 15 Jul 2020 18:13:40 +0200 Subject: [PATCH] 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 --- hwdb.d/60-autosuspend.hwdb | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 ######################################### -- 2.39.2