[laptop-mode] usbhid autosuspend
list at phuk.ath.cx
list at phuk.ath.cx
Sat Jul 25 17:46:58 CEST 2009
This is a multi-part message in MIME format.
--------------000202060504010002020908
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Bart Samwel wrote:
> Hi,
>
> On Thu, Jun 25, 2009 at 23:17, ich<ich at phuk.ath.cx> wrote:
>> Hello,
>>
>> on CONTROL_USB_AUTOSUSPEND=1, laptop_mode just enables autosuspend for all
>> USB devices. Now since linux 2.6.30, this also works on HID devices, which
>> is quite undesirable in most cases. So I guess there should be some checking
>> if a device is an input device or not.
>>
>> See also: http://bugzilla.kernel.org/show_bug.cgi?id=13624
>
> Sounds fair enough!
>
> Cheers,
> Bart
> _______________________________________________
> laptop-mode mailing list
> laptop-mode at mailman.samwel.tk
> http://mailman.samwel.tk/mailman/listinfo/laptop-mode
I assumed there's no work being done on this atm, so I wrote a small
patch that adds a driver blacklist to usb autosuspend. Tried to stick
with the sh syntax, but I only have bash, so I couldn't test if it's
truly sh compatible. It uses the readlink utility to read the "driver"
symlink, but I guess readlink should be present on any linux system. I
tested it on my system and it seems to work fine so far.
greetings...
--------------000202060504010002020908
Content-Disposition: inline;
filename="usb-autosuspend.conf.patch"
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
An embedded and charset-unspecified text was scrubbed...
Name: usb-autosuspend.conf.patch
URL: <http://mailman.samwel.tk/pipermail/laptop-mode/attachments/20090725/3bdec9e9/attachment.asc>
--------------000202060504010002020908
Content-Disposition: inline;
filename="usb-autosuspend.patch"
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
An embedded and charset-unspecified text was scrubbed...
Name: usb-autosuspend.patch
URL: <http://mailman.samwel.tk/pipermail/laptop-mode/attachments/20090725/3bdec9e9/attachment.txt>
--------------000202060504010002020908--
More information about the laptop-mode
mailing list