chiark / gitweb /
a4e3864714be4ea3d8fed58f382946e4a8479054
[elogind.git] / extras / qemu / 42-qemu-usb.rules
1 #
2 # Enable autosuspend for qemu emulated usb hid devices.
3 #
4 # Note that there are buggy qemu versions which advertise remote
5 # wakeup support but don't actually implement it correctly.  This
6 # is the reason why we need a match for the serial number here.
7 # The serial number "42" is used to tag the implementations where
8 # remote wakeup is working.
9 #
10
11 ACTION=="add", SUBSYSTEM=="usb", ATTR{product}=="QEMU USB Mouse", ATTR{serial}=="42", TEST=="power/control", ATTR{power/control}="auto"
12 ACTION=="add", SUBSYSTEM=="usb", ATTR{product}=="QEMU USB Tablet", ATTR{serial}=="42", TEST=="power/control", ATTR{power/control}="auto"
13 ACTION=="add", SUBSYSTEM=="usb", ATTR{product}=="QEMU USB Keyboard", ATTR{serial}=="42", TEST=="power/control", ATTR{power/control}="auto"