]> git.proxmox.com Git - systemd.git/blame - rules/42-usb-hid-pm.rules
Imported Upstream version 220
[systemd.git] / rules / 42-usb-hid-pm.rules
CommitLineData
663996b3
MS
1# do not edit this file, it will be overwritten on update
2#
3# Enable autosuspend for qemu emulated usb hid devices
4
60f067b4
JS
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
663996b3 10# remote wakeup is working.
60f067b4
JS
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"
663996b3 14
663996b3
MS
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
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.
27ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="14dd", ATTR{idProduct}=="0002", TEST=="power/control", ATTR{power/control}="auto"
28
29# USB HID devices that are internal to the machine should also be safe to autosuspend
30
e3bff60a
MP
31ACTION=="add", SUBSYSTEM=="usb", SUBSYSTEMS=="usb", ATTR{../removable}=="removable", GOTO="usb_hid_pm_end"
32ACTION=="add", SUBSYSTEM=="usb", SUBSYSTEMS=="usb", ATTR{../removable}=="unknown", GOTO="usb_hid_pm_end"
663996b3 33
e3bff60a 34ACTION=="add", SUBSYSTEM=="usb", ATTR{bInterfaceClass}=="03", ATTR{../removable}=="fixed", TEST=="../power/control", ATTR{../power/control}="auto"
663996b3
MS
35
36LABEL="usb_hid_pm_end"