[laptop-mode] [PATCH] do not show drive power status if CONTROL_HD_POWERMGMT is disabled

Ritesh Raj Sarraf rrs at researchut.com
Tue Sep 15 13:55:18 CEST 2009


--nextPart11093400.3ST4GVDxTM
Content-Type: Text/Plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

On Tuesday 15 Sep 2009 16:58:23 Olivier Blin wrote:
> > On Monday 14 Sep 2009 23:38:29 Olivier Blin wrote:
> >> Do not show drive power status if CONTROL_HD_POWERMGMT is disabled
> >> (some USB harddisks disconnect after using hdparm -C or -B)
> >>=20
> >> This might now be the best approach to workaround the hardware bug, but
> >> it does not look so useful to show drive power status if
> >> laptop-mode-tools is configured not to handle drive power.
>=20

Hmmm!! I do have a USB HDD but I don't boot of it.
But I've tested External USB HDD Laptop Drives and they've worked.
Your case could be a driver bug (bugzilla ?) or as you said, just faulty=20
hardware.

There was a similar case for USB recently with the 2.6.30 kernel. External =
USB=20
keyboards/mice would lose key presses and mouse events because some devices=
=20
didn't implement it.

BTW, I just looked into the config file.

#
# The drives that laptop mode controls.
# Separate them by a space, e.g. HD=3D"/dev/hda /dev/hdb". The default is a
# wildcard, which will get you all your IDE and SCSI/SATA drives.
#
HD=3D"/dev/[hs]d[abcdefgh]"


Why don't you just be explicit in defining what all drives laptop-mode-tool=
s=20
should query ?

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

--nextPart11093400.3ST4GVDxTM
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/20090915/cf80fc53/attachment.pgp>

--nextPart11093400.3ST4GVDxTM--


More information about the laptop-mode mailing list