]>
Commit | Line | Data |
---|---|---|
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 |
11 | ACTION=="add", SUBSYSTEM=="usb", ATTR{product}=="QEMU USB Mouse", ATTR{serial}!="1", TEST=="power/control", ATTR{power/control}="auto" |
12 | ACTION=="add", SUBSYSTEM=="usb", ATTR{product}=="QEMU USB Tablet", ATTR{serial}!="1", TEST=="power/control", ATTR{power/control}="auto" | |
13 | ACTION=="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 |
16 | ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="413c", ATTR{idProduct}=="2500", TEST=="power/control", ATTR{power/control}="auto" | |
17 | ||
18 | # Dell DRAC 5 | |
19 | ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="413c", ATTR{idProduct}=="0000", TEST=="power/control", ATTR{power/control}="auto" | |
20 | ||
21 | # IBM remote access | |
22 | ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="04b3", ATTR{idProduct}=="4001", TEST=="power/control", ATTR{power/control}="auto" | |
23 | ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="04b3", ATTR{idProduct}=="4002", TEST=="power/control", ATTR{power/control}="auto" | |
24 | ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="04b3", ATTR{idProduct}=="4012", TEST=="power/control", ATTR{power/control}="auto" | |
25 | ||
26 | # Raritan Computer, Inc KVM. | |
27 | ACTION=="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 |
31 | ACTION=="add", SUBSYSTEM=="usb", SUBSYSTEMS=="usb", ATTR{../removable}=="removable", GOTO="usb_hid_pm_end" |
32 | ACTION=="add", SUBSYSTEM=="usb", SUBSYSTEMS=="usb", ATTR{../removable}=="unknown", GOTO="usb_hid_pm_end" | |
663996b3 | 33 | |
e3bff60a | 34 | ACTION=="add", SUBSYSTEM=="usb", ATTR{bInterfaceClass}=="03", ATTR{../removable}=="fixed", TEST=="../power/control", ATTR{../power/control}="auto" |
663996b3 MS |
35 | |
36 | LABEL="usb_hid_pm_end" |