hdparm, changing the hard-disk spindown (sleep time)
Richard Hughes
hughsient at gmail.com
Tue Aug 23 11:06:49 PDT 2005
This is a very rough and ready patch.
To finally drive a nail in the coffin for the bodge that is PowerManager
dbus daemon, this is a quick patch to add a:
org.freedesktop.Hal.Device.SystemPowerManagement.SetSpindown (seconds)
method to all hard disks. This lets us abstract the detail of hdparm
(and its weird ID mapping) and lets any application use the spindown
sleep method.
I understand that SetLowPowerMode may do this sort of thing there, but
it made sense to use HAL to call a HAL method, if you see what I mean.
Plus it gives other programs the fine-grained spindown control.
What do ppl think? Is there an easy (cross-distro) way of calling
hdparm?
Richard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-system-power-hdparm
Type: application/x-shellscript
Size: 1862 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20050823/9e209a6f/hal-system-power-hdparm-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-diff-2005-08-23-18-58-39.patch
Type: text/x-patch
Size: 1321 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20050823/9e209a6f/hal-diff-2005-08-23-18-58-39-0001.bin
More information about the hal
mailing list