Re: [ibm-acpi-devel] CONFIG_IBM_BAY

Henrique de Moraes Holschuh
2007-03-19T23:24:23Z

On Mon, 19 Mar 2007, Theodore Tso wrote:
> One more thing I would add from a power management perspective. It
> should be able to powerdown the bay cleanly on suspend-to-ram, without
> necessarily disconnecting libata or unmounting the filesystem.

The disconnect-or-not needs to be user-configurable, as the user may well
swap devices in the bay while the system is sleeping, AND this is supposed
to be a valid thing to do from a usercase PoV (earlier ThinkPad laptops only
had warm-swap bays, for example). So must be the powerdown, I suppose, just
in case.

> It should also be possible for the user to be able to powerdown the
> bay (after first unmounting the filesystem and telling libata to let
> go of the device) if the user wishes to power down the bay for battery
> life reasons --- *without* requiring the user to eject the lever or
> remove the bay as a prerequisite to powering down the bay.

Currently the drivers do allow you to do just that, at least for the bay. I
don't know about docks.

> (The T60 burns enough power as it is, without any additional help from
> the bay. :-)

Agreed :) I want to add configurable powerdown-if-it-is-not-a-battery to
ibm-acpi, as it is acceptable to Linux. Either Windows or some dumb
harddisk must dislike this for some stupid reason, as the DSDT doesn't do it
by itself and it could easily do it.

In fact, I suppose password-protected HDs might be a nuisance to power off
during S3, as they will be locked up when the system resumes...

--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh