diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-01-20 20:48:58 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-01-20 20:48:58 +0100 |
commit | 511c127832667f5db218cf803ad88355f873d399 (patch) | |
tree | 8a322e8bd9b9260c7ffdc4f80320058017f43c32 /src/etc/udev/rules.d/42-qemu-usb.rules | |
parent | 44b7157addd4427e1bee20e9918ccc6a22814eec (diff) | |
download | vyos-1x-511c127832667f5db218cf803ad88355f873d399.tar.gz vyos-1x-511c127832667f5db218cf803ad88355f873d399.zip |
udev: import rule file from vyatta-cfg-system
Diffstat (limited to 'src/etc/udev/rules.d/42-qemu-usb.rules')
-rw-r--r-- | src/etc/udev/rules.d/42-qemu-usb.rules | 14 |
1 files changed, 14 insertions, 0 deletions
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 <kraxel@xxxxxxxxxx> + +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" |