Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
udev
0004-rules-Limit-USB-autosuspend-on-USB-HID-dev...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0004-rules-Limit-USB-autosuspend-on-USB-HID-devices.patch of Package udev
From e0386cf2809219bbdd30895f46f1f567b56902b6 Mon Sep 17 00:00:00 2001 From: Matthew Garrett <mjg@redhat.com> Date: Fri, 25 May 2012 10:27:25 -0400 Subject: [PATCH] rules: Limit USB autosuspend on USB HID devices Some USB ports on external hubs may be reported as "fixed". We only want to auto-enable this on ports that are internal to the machine, so check the parent state as well. --- rules/42-usb-hid-pm.rules | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) Index: udev-182/rules/42-usb-hid-pm.rules =================================================================== --- udev-182.orig/rules/42-usb-hid-pm.rules +++ udev-182/rules/42-usb-hid-pm.rules @@ -46,4 +46,10 @@ ACTION=="add", SUBSYSTEM=="usb", ATTRS{i ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="14dd", ATTR{idProduct}="0002", TEST=="power/control", ATTR{power/control}="auto" # USB HID devices that are internal to the machine should also be safe to autosuspend + +ACTION=="add", SUBSYSTEM=="usb", SUBSYSTEMS=="usb", ATTRS{removable}=="removable", GOTO="usb_hid_pm_end" +ACTION=="add", SUBSYSTEM=="usb", SUBSYSTEMS=="usb", ATTRS{removable}=="unknown", GOTO="usb_hid_pm_end" + ACTION=="add", SUBSYSTEM=="usb", ATTR{bInterfaceClass}=="03", ATTRS{removable}=="fixed", TEST=="../power/control", ATTR{../power/control}="auto" + +LABEL="usb_hid_pm_end"
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor