]> git.ipfire.org Git - thirdparty/systemd.git/blame - rules/42-usb-hid-pm.rules
build-sys: add missing file to CLEANFILES
[thirdparty/systemd.git] / rules / 42-usb-hid-pm.rules
CommitLineData
7b683869 1# do not edit this file, it will be overwritten on update
3bfc7a97 2#
7b683869
KS
3# Enable autosuspend for qemu emulated usb hid devices
4
cd31d188
GH
5# Note that there are buggy qemu versions (0.13 & older) which
6# advertise remote wakeup support but don't actually implement
7# it correctly. This is the reason why we need a match for the
8# serial number here. Old, broken versions have serial "1".
9# It has been changed to "42" after fixing the bug to indicate
3bfc7a97 10# remote wakeup is working.
cd31d188
GH
11ACTION=="add", SUBSYSTEM=="usb", ATTR{product}=="QEMU USB Mouse", ATTR{serial}!="1", TEST=="power/control", ATTR{power/control}="auto"
12ACTION=="add", SUBSYSTEM=="usb", ATTR{product}=="QEMU USB Tablet", ATTR{serial}!="1", TEST=="power/control", ATTR{power/control}="auto"
13ACTION=="add", SUBSYSTEM=="usb", ATTR{product}=="QEMU USB Keyboard", ATTR{serial}!="1", TEST=="power/control", ATTR{power/control}="auto"
3bfc7a97 14
3bfc7a97
MG
15# Dell DRAC 4
16ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="413c", ATTR{idProduct}=="2500", TEST=="power/control", ATTR{power/control}="auto"
17
18# Dell DRAC 5
19ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="413c", ATTR{idProduct}=="0000", TEST=="power/control", ATTR{power/control}="auto"
20
3bfc7a97
MG
21# IBM remote access
22ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="04b3", ATTR{idProduct}=="4001", TEST=="power/control", ATTR{power/control}="auto"
23ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="04b3", ATTR{idProduct}=="4002", TEST=="power/control", ATTR{power/control}="auto"
24ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="04b3", ATTR{idProduct}=="4012", TEST=="power/control", ATTR{power/control}="auto"
25
26# Raritan Computer, Inc KVM.
8432ecab 27ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="14dd", ATTR{idProduct}=="0002", TEST=="power/control", ATTR{power/control}="auto"
3bfc7a97
MG
28
29# USB HID devices that are internal to the machine should also be safe to autosuspend
e0386cf2
MG
30
31ACTION=="add", SUBSYSTEM=="usb", SUBSYSTEMS=="usb", ATTRS{removable}=="removable", GOTO="usb_hid_pm_end"
6af27427 32ACTION=="add", SUBSYSTEM=="usb", SUBSYSTEMS=="usb", ATTRS{removable}=="unknown", GOTO="usb_hid_pm_end"
e0386cf2 33
3bfc7a97 34ACTION=="add", SUBSYSTEM=="usb", ATTR{bInterfaceClass}=="03", ATTRS{removable}=="fixed", TEST=="../power/control", ATTR{../power/control}="auto"
e0386cf2 35
8432ecab 36LABEL="usb_hid_pm_end"