mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 17:51:22 +03:00
ec8bebbcc2
This effectively partially reverts "rules: remove all power management from
udev" / e2452eef02
. 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
55 lines
1.3 KiB
Plaintext
55 lines
1.3 KiB
Plaintext
# This file is part of systemd.
|
|
#
|
|
# The lookup keys are $MODALIAS strings, see udev's hwdb builtin.
|
|
#
|
|
# Match string formats:
|
|
# <subsystem>:<modalias>
|
|
#
|
|
# pci:v<vendor>d<device>
|
|
# usb:v<vendor>p<product>
|
|
#
|
|
# To add local entries, create a new file
|
|
# /etc/udev/hwdb.d/61-autosuspend-local.hwdb
|
|
# and add your rules there. To load the new rules execute (as root):
|
|
# systemd-hwdb update
|
|
# udevadm trigger /dev/…
|
|
#
|
|
# If your changes are generally applicable, preferably send them as a pull
|
|
# request to
|
|
# https://github.com/systemd/systemd
|
|
# or create a bug report on https://github.com/systemd/systemd/issues and
|
|
# include your new rules, a description of the device, and the output of
|
|
# udevadm info
|
|
# the device.
|
|
#
|
|
# Allowed properties are:
|
|
# ID_AUTOSUSPEND=1
|
|
|
|
#
|
|
# Sort by brand, model
|
|
|
|
#########################################
|
|
# Alcor
|
|
#########################################
|
|
|
|
# AU9540 Smartcard Reader
|
|
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
|
|
#########################################
|
|
|
|
usb:v056Ap51A0*
|
|
ID_AUTOSUSPEND=1
|