[laptop-mode] usbhid autosuspend

Ritesh Raj Sarraf rrs at researchut.com
Sat Jul 25 20:33:59 CEST 2009


--nextPart1300964.Cue870OtVx
Content-Type: Text/Plain;
  charset="iso-8859-15"
Content-Transfer-Encoding: quoted-printable

On Saturday 25 Jul 2009 21:16:58 list at phuk.ath.cx wrote:
> 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.


In the latest release (1.50) of laptop-mode-tools, usb-autosuspend can be=20
enabled in a LM/NOLM condition. So, this way, the power saving features for=
=20
the USB controller, is only enabled when switching to battery.

The problem really lies in the drivers that expose that they can suspend bu=
t=20
go haywire when triggered. Unfortunately the kernel devs feel them to be=20
broken hardware.

Thus I'm not very sure if we want a blacklist. There can be multiple usb=20
devices, served by the same driver, but with different behavior.

In 1.50, with LM/NOLM options, the problem can be minimized a lot.=20
So I would prefer getting the drivers fixed instead.

PS: With bash too, you can test scripts in sh mode. Just run the scripts wi=
th=20
"sh" as the program name. Example: "sh foo.sh"

Ritesh
=2D-=20
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."

--nextPart1300964.Cue870OtVx
Content-Description: This is a digitally signed message part.
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: This is a digitally signed message part.
URL: <http://mailman.samwel.tk/pipermail/laptop-mode/attachments/20090726/ca058621/attachment.pgp>

--nextPart1300964.Cue870OtVx--


More information about the laptop-mode mailing list