summaryrefslogtreecommitdiff
path: root/rules/rules.d/42-qemu-usb.rules
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2012-03-07 17:12:15 +0100
committerKay Sievers <kay.sievers@vrfy.org>2012-03-07 17:12:15 +0100
commitdf4554c333aec1a4bc2c3335aef6e92f2c13bfcd (patch)
tree28c3718face3939502e42b15ffe88d619e55779a /rules/rules.d/42-qemu-usb.rules
parent96ca3736288300bf013bd075e08736ec66f6a2ec (diff)
rules: move 42-qemu-usb.rules to rules/ dir
Diffstat (limited to 'rules/rules.d/42-qemu-usb.rules')
-rw-r--r--rules/rules.d/42-qemu-usb.rules13
1 files changed, 13 insertions, 0 deletions
diff --git a/rules/rules.d/42-qemu-usb.rules b/rules/rules.d/42-qemu-usb.rules
new file mode 100644
index 0000000000..a4e3864714
--- /dev/null
+++ b/rules/rules.d/42-qemu-usb.rules
@@ -0,0 +1,13 @@
+#
+# Enable autosuspend for qemu emulated usb hid devices.
+#
+# Note that there are buggy qemu versions which advertise remote
+# wakeup support but don't actually implement it correctly. This
+# is the reason why we need a match for the serial number here.
+# The serial number "42" is used to tag the implementations where
+# remote wakeup is working.
+#
+
+ACTION=="add", SUBSYSTEM=="usb", ATTR{product}=="QEMU USB Mouse", ATTR{serial}=="42", TEST=="power/control", ATTR{power/control}="auto"
+ACTION=="add", SUBSYSTEM=="usb", ATTR{product}=="QEMU USB Tablet", ATTR{serial}=="42", TEST=="power/control", ATTR{power/control}="auto"
+ACTION=="add", SUBSYSTEM=="usb", ATTR{product}=="QEMU USB Keyboard", ATTR{serial}=="42", TEST=="power/control", ATTR{power/control}="auto"