Friday, March 14, 2008

powertop & disable cdrom polling

I installed a nice tools called powertop to have a clue
what was consuming the most battery waking up the cpu in sleep times as i am not really doing heavy work on it.

powertop gives hints:

Suggestion: Enable the CONFIG_NO_HZ kernel configuration option.
This option is required to get any kind of longer sleep times in the CPU.

Suggestion: Disable 'hal' from polling your cdrom with:
hal-disable-polling --device /dev/cdrom 'hal' is the component that auto-opens a
window if you plug in a CD but disables SATA power saving from kicking in.

so I disabled polling the dvd rom doing the following:

root@debian:~/apps# hal-get-property --udi /org/freedesktop/Hal/devices/storage_model_PIONEER_DVD_RW_DVR_K17RS --key storage.automount_enabled_hint

root@debian:~/apps# hal-set-property --udi /org/freedesktop/Hal/devices/storage_model_PIONEER_DVD_RW_DVR_K17RS --key storage.automount_enabled_hint --bool false

I have yet to see if it gets any better, or maybe the differences a not big so that I would even notice it...

then i restarted dbus

No comments: