Page 1 of 1
Laptop battery life - Openbox edition 14.1
Posted: 20. Aug 2014, 12:14
by chakuari
Hello.
I read some articles on the web regarding how improving the laptop battery life using Linux, but still can't get a clue about how to do that. It jus't can't be possible to run Salix for just 1 hour or so and Windoze for more than 2 hours on the same laptop...

How can I find what consumes more battery and find a remedy?
Thank you!
Chakuari
Re: Laptop battery life - Openbox edition 14.1
Posted: 20. Aug 2014, 17:47
by gapan
Most usual things to do are:
- Make sure the screen brightness is turned down when using battery
- Use a CPU governor that scales down the frequency when you're not using the CPU much
You can install powertop to check what goes on. There are other things, like power saving the audio card or spinning down the hard drives, but the 2 I mentioned should be the most usual culprits.
Re: Laptop battery life - Openbox edition 14.1
Posted: 21. Aug 2014, 07:29
by chakuari
Ok, I installed powertop, thank you. Now I must understand what's better.
Under "Tunables", almost everything is set to Bad.

cpufreq governor shows as Good, set to "ondemand". Now I also enabled audio codec power management. But then? There are so many options to set...

Regarding the screen brightness, I'll try and search in the forum also.
Re: Laptop battery life - Openbox edition 14.1
Posted: 21. Aug 2014, 08:02
by chakuari
Ok, for the screen brightness I'll use the function keys for the moment. That would help. What about spinning down the hard drives? How can I do that?
I was also wondering if there is a way to set the behaviour when the battery power is critical (let's say 5%, for example), so that Salix shuts down by itself when the remaining time is very very low. Are there packages that can do this? At the moment the discharge rate showed by powertop is about 25-28W. Too high...
Re: Laptop battery life - Openbox edition 14.1
Posted: 21. Aug 2014, 08:16
by gapan
Look into hdparm for the hard drives.
For shutting down on low battery, on xfce, mate and kde, you can set the respective power managers to do it for you, but for other environments, there is no ready solution. If you use gkrellm, it's very easy to set low and alarm limits and command to execute when these are reached. Writing you own script that checks the battery level shouldn't be too hard either. You could run that script from a cronjob every X minutes.
Re: Laptop battery life - Openbox edition 14.1
Posted: 21. Aug 2014, 08:45
by chakuari
Is it possible to use batti for this, as it's already installed? I men, obtaining a value on remaining battery charge and then use a script for shutting down the pc and doing other things?
Re: Laptop battery life - Openbox edition 14.1
Posted: 21. Aug 2014, 12:44
by chakuari
A little update. I found a key to disable the wireless connection, but still the consumption is high. Midori is a battery hog, even with a connection to localhost for testing local websites. Uhm...
Re: Laptop battery life - Openbox edition 14.1
Posted: 21. Aug 2014, 15:18
by djemos
since you made an installation there are also opera, firefox, qupzilla, google chrome to use.
Sometimes i also find midori late to load some pages even firefox is better.
Re: Laptop battery life - Openbox edition 14.1
Posted: 22. Aug 2014, 08:05
by gapan
chakuari wrote:Is it possible to use batti for this, as it's already installed? I men, obtaining a value on remaining battery charge and then use a script for shutting down the pc and doing other things?
I don't think so. But you can usually get the battery charge level by looking in /proc/acpi/battery/...