From 511c127832667f5db218cf803ad88355f873d399 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Wed, 20 Jan 2021 20:48:58 +0100 Subject: udev: import rule file from vyatta-cfg-system --- src/etc/udev/rules.d/42-qemu-usb.rules | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/etc/udev/rules.d/42-qemu-usb.rules (limited to 'src/etc/udev/rules.d/42-qemu-usb.rules') diff --git a/src/etc/udev/rules.d/42-qemu-usb.rules b/src/etc/udev/rules.d/42-qemu-usb.rules new file mode 100644 index 000000000..a79543df7 --- /dev/null +++ b/src/etc/udev/rules.d/42-qemu-usb.rules @@ -0,0 +1,14 @@ +# +# 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. +# +# Gerd Hoffmann + +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" -- cgit v1.2.3