Battery drains like crazy on Linux

openSUSE appears to be using a lot more battery juice than my Windows 7 install. If I can use KDE’s power management as an indicator, the battery load drops by 1% every three minutes or so.

That’s a little too much for me. How can I reduce my battery usage?

Here are some PowerTop statistics:

http://i.imgur.com/Uek6I.png

I’ve followed some of PowerTop’s suggestions to reduce power savings, but they don’t seem to have any significant effect. I haven’t dug into PowerTop that much, so I have some trouble interpreting these statistics.

It also caused my wireless keyboard (which is normally not connected to my laptop when on battery) to go to sleep mode and I have to hold a key for five seconds before Linux sees that the keyboard has started sending input. So basically I have to wait five seconds before I can type. The problem seems to have gone away after disconnecting/reconnecting the USB dongle for the keyboard though.

I have the opposite experience with Linux more frugal than Windows; have you tried changing the power management settings in KDE?

Check your power management settings under KDE as suggested above. It would appear you are not optimized for battery operation. Normally, the battery should last much longer under linux than windows 7 as linux doesn’t do the repetitive hdd rewrites that win 7 does. You might also check that your laptop is set to use internal lcd only as if it is set to external monitor plus lcd you will encounter twice as fast battery drain or higher.

I have changed some settings such as screen brightness, but most other settings are still set to default. Do you notice anything odd here?






The only significant differences are that you have four CPUs and I have one and I don’t use suspend to disk - but I don’t know whether they would account for your different experience.

techwiz03 wrote:

>
> Check your power management settings under KDE as suggested above. It
> would appear you are not optimized for battery operation. Normally, the
> battery should last much longer under linux than windows 7 as linux
> doesn’t do the repetitive hdd rewrites that win 7 does. You might also
> check that your laptop is set to use internal lcd only as if it is set
> to external monitor plus lcd you will encounter twice as fast battery
> drain or higher.

If I may tag on a related question:

If I “Disable” the TV1 display in krandr, does this accomplish turning off
the external output device or do I need to set the BIOS option to “internal
LCD only” to actually kill the secondary display circuitry to realize the
power saving?


Will Honea

Many laptops have a hotkey designed to direct to lcd, external, or both. All you should need to do is get it into lcd mode. At least my last 5 toshiba’s last two hp’s and one of my last 2 compaq’s worked this way. It is not always the case though as one of my last compaq’s had to be done in bios and 3 acers I tried didn’t have a way to shut off external display power at all.

Is there a way to collect consumption data from these four CPUs and see if it makes a difference? Or perhaps I could enable some feature that shuts down other CPUs when their task load doesn’t justify their power usage?

AFAIK that is not possible due to how windows distribute tasks (it rotates trough the cores). AMD processors had this capability, which worked well with linux, but gave a performance hit when used with windows (the SO would wake the sleeping processors to use then, slowing the processing), so AMD dropped this.

I read the above some time ago, so things may have changed, although I don’t think so.

P.S.: On a relatively old HP pavillion I have here, the battery duration in vista (when it was installed) and oS was about the same, back when I tested it.

I have upgraded to KDE 4.5, which offers an estimate of the remaining battery power. I think this is looking okay…

http://i.imgur.com/dVWKg.png

That’s 1h39m on almost full load for a 6-cell battery, four CPUs, an activated WiFi radio and a Bluetooth radio that I never use.

On 01/10/2011 05:36 AM, pdedecker wrote:
>
> I have upgraded to KDE 4.5, which offers an estimate of the remaining
> battery power. I think this is looking okay…
>
> [image: http://i.imgur.com/dVWKg.png]
>
> That’s 1h39m on almost full load for a 6-cell battery, four CPUs, an
> activated WiFi radio and a Bluetooth radio that I never use.

Install the rfkill package and check out how to soft block that Bluetooth radio.

Does that tool kill and disable the Bluetooth manager or does it prevent the Bluetooth radio from sending out signals? The latter would be rather inefficient.

On 01/10/2011 11:36 AM, pdedecker wrote:
>
> lwfinger;2276314 Wrote:
>> Install the rfkill package and check out how to soft block that
>> Bluetooth radio.
> Does that tool kill and disable the Bluetooth manager or does it
> prevent the Bluetooth radio from sending out signals? The latter would
> be rather inefficient.

It will turn off the Bluetooth radio, which is most of the power drain.

You could also unload and blacklist the Bluetooth driver.

Perhaps I have found an explanation for Linux’ seemingly higher battery usage. I have a feeling that my laptop fan(s) are more active in openSUSE. I haven’t done any testing to back that up due to time constraints. Here is some output from my temperature sensors:

acpitz-virtual-0
Adapter: Virtual device
temp1: +47.0°C (crit = +127.0°C)
temp2: +0.0°C (crit = +128.0°C)
temp3: +0.0°C (crit = +128.0°C)
temp4: +53.0°C (crit = +127.0°C)
temp5: +0.0°C (crit = +128.0°C)
temp6: +26.7°C (crit = +128.0°C)
temp7: +73.0°C (crit = +128.0°C)
temp8: +58.0°C (crit = +128.0°C)
temp9: +64.0°C (crit = +128.0°C)
temp10: +59.0°C (crit = +128.0°C)

My laptop has been on for about 1h30m now. I shared this time between Windows and openSUSE. I’m not a serious gamer or video editing enthusiast by any means. Here’s some information from ksysguard:


Right now, only Chrome is using a noteworthy slice of system resources. Some small apps such as Workrave and Yakuake are running in the background.

GNOME is more energysaving… turning compiz off adds even more time.

just saying :slight_smile:

Do you think that my choice of window manager has a significant impact on my battery performance? Also, I already switch off compositing in KDE 4.5.