Please disable USB autosuspend for Avocent SC Secure KVM
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
systemd (Ubuntu) | ||||||
Trusty |
Confirmed
|
Medium
|
Unassigned | |||
Utopic |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
My mouse becomes temporarily become unresponsive to drags and clicks, until I right-click or give keyboard input, when it's been idle for a few seconds. The same thing affects the keyboard. In some cases the mouse cursor jumps back to the center of the screen.
The mouse and keyboard are connected to a number of different computers via an 8-port Avocent SC Secure KVM. When the mouse and/or keyboard are directly attached to one of the PCs, there is no problem. I've tested with different keyboards and mice as well, and they're similarly messed up.
Only the computers running Ubuntu 14.04 are affected. Two of the computers are identical hardware, differing only in Ubuntu versions - the 14.04 one is affected but the one with 13.04 is not. I also have a machine with 12.04 on it connected to the KVM which is fine.
I first noticed the problem when I upgraded to 13.10.
In powertop I notice that autosuspend is enabled for the Avocent. If I switch that off, then the problem disappears completely. I can also prevent it by issuing:
echo 'on' > '/sys/bus/
where 3-10 is the Avocent (the number is different on each of my systems).
I notice in 42-usb-hid-pm.rules there is a rule for Avocent devices:
# Catch-all for Avocent HID devices. Keyed off interface in order to only
# trigger on HID class devices.
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}
However my KVM device doesn't appear to have a bInterfaceClass defined.
In any case, the following udev rule corrects the problem for me:
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}
summary: |
- Disable USB autosuspend for Avocent SC Secure KVM + Please disable USB autosuspend for Avocent SC Secure KVM |
tags: | added: patch |
Changed in udev (Ubuntu Trusty): | |
milestone: | none → trusty-updates |
Changed in udev (Ubuntu Utopic): | |
status: | Confirmed → Won't Fix |
Changed in udev (Ubuntu): | |
importance: | Undecided → Medium |
Changed in udev (Ubuntu Trusty): | |
importance: | Undecided → Medium |
Changed in udev (Ubuntu Utopic): | |
importance: | Undecided → Medium |
tags: | added: trusty |
summary: |
- Please disable USB autosuspend for Avocent SC Secure KVM + [PATCH] Please disable USB autosuspend for Avocent SC Secure KVM |
Changed in systemd (Ubuntu Trusty): | |
status: | Triaged → In Progress |
Changed in systemd (Ubuntu Trusty): | |
status: | In Progress → Confirmed |
no longer affects: | systemd (Ubuntu) |
summary: |
- [PATCH] Please disable USB autosuspend for Avocent SC Secure KVM + Please disable USB autosuspend for Avocent SC Secure KVM |
P: /devices/ pci0000: 00/0000: 00:1a.0/ usb1/1- 1/1-1.4 /dev/bus/ usb/001/ 003 /devices/ pci0000: 00/0000: 00:1a.0/ usb1/1- 1/1-1.4 SC_Secure_ KVM ENC=SC\ x20Secure\ x20KVM\ x20\x20\ x20\x20\ x20\x20\ x20 AVOCENT_ SC_Secure_ KVM INTERFACES= :030101: 030102: ENC=AVOCENT\ x20\x20\ x20\x20\ x20\x20 FROM_DATABASE= Avocent Corp. D=48336
N: bus/usb/001/003
E: BUSNUM=001
E: DEVNAME=
E: DEVNUM=003
E: DEVPATH=
E: DEVTYPE=usb_device
E: DRIVER=usb
E: ID_BUS=usb
E: ID_MODEL=
E: ID_MODEL_
E: ID_MODEL_ID=0013
E: ID_REVISION=0001
E: ID_SERIAL=
E: ID_USB_
E: ID_VENDOR=AVOCENT
E: ID_VENDOR_
E: ID_VENDOR_
E: ID_VENDOR_ID=0624
E: MAJOR=189
E: MINOR=2
E: PRODUCT=624/13/1
E: SUBSYSTEM=usb
E: TYPE=0/0/0
E: USEC_INITIALIZE