Bug 841368

Summary: udev rules to set usb autosuspend for qemu devices
Product: [Fedora] Fedora Reporter: Orion Poplawski <orion>
Component: udevAssignee: udev-maint
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 17CC: crobinso, jonathan, udev-maint, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
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: ---

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