Bug 841368 - udev rules to set usb autosuspend for qemu devices
udev rules to set usb autosuspend for qemu devices
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: udev (Show other bugs)
17
All Linux
unspecified Severity medium
: ---
: ---
Assigned To: udev-maint
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-18 15:11 EDT by Orion Poplawski
Modified: 2012-07-19 15:29 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-07-19 15:29:58 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Orion Poplawski 2012-07-18 15:11:15 EDT
Description of problem:

See bug 663064 for the RHEL6 equivalent.

Add:

# cat /lib/udev/rules.d/42-qemu-usb.rules
ACTION=="add", SUBSYSTEM=="usb", ATTR{product}=="QEMU USB Mouse",    ATTR{serial}=="42", TEST=="power/level", ATTR{power/level}="auto"
ACTION=="add", SUBSYSTEM=="usb", ATTR{product}=="QEMU USB Tablet",   ATTR{serial}=="42", TEST=="power/level", ATTR{power/level}="auto"
ACTION=="add", SUBSYSTEM=="usb", ATTR{product}=="QEMU USB Keyboard", ATTR{serial}=="42", TEST=="power/level", ATTR{power/level}="auto"

This reduces cpu usage noticeably on the qemu/kvm host (8%->1% in my case)

Version-Release number of selected component (if applicable):
udev-182-3.fc17.x86_64
Comment 1 Cole Robinson 2012-07-19 15:29:58 EDT
This turned out to be a guest config issue:

http://lists.fedoraproject.org/pipermail/virt/2012-July/003382.html

Note You need to log in before you can comment on or make changes to this bug.