Skip to content

Commit

Permalink
Add autosuspend rules for emulated QEMU devices
Browse files Browse the repository at this point in the history
This effectively partially reverts "rules: remove all power management from
udev" / e2452ee. 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.

systemd#353 (comment)
  • Loading branch information
keszybz committed Jul 16, 2020
1 parent df76673 commit ec8bebb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions hwdb.d/60-autosuspend.hwdb
Original file line number Diff line number Diff line change
Expand Up @@ -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
#########################################
Expand Down

0 comments on commit ec8bebb

Please sign in to comment.