You are not logged in.

#1 2012-04-20 17:53:40

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Laptop-mode draws more power than no laptop-mode

Hey all,

I finally took the plunge and installed laptop-mode-tools. I edited the main configuration file to my liking and enabled those extra powersaving features I need. The other ones I have disabled. However, when I enable laptop-mode my battery is drained faster than without! I am pretty sure this is not what it should do tongue

I'm clueless as for where to look though, because I didn't change any critical setting (AFAIK) and I didn't enable any 'extra' features: i just enabled those found in /etc/laptop-mode/conf.d that I need and disabled those that I don't need. Can you help me pin-point which feature of laptop-mode-tools draws more power out of my battery?

Here's the list of features I have enabled:

auto-hibernate.conf
dpms-standby.conf
ethernet.conf
intel-hda-powersave.conf
intel-sata-powermgmt.conf
lcd-brightness.conf  
nmi-watchdog.conf
runtime-pm.conf
sched-mc-power-savings.conf
sched-smt-power-savings.conf
terminal-blanking.conf
usb-autosuspend.conf
wireless-power.conf

Those that I have disabled:

ac97-powersave.conf
battery-level-polling.conf
bluetooth.conf
configuration-file-control.conf
cpufreq.conf
eee-superhe.conf
exec-commands.conf
hal-polling.conf
start-stop-programs.conf
video-out.conf
wireless-ipw-power.conf
wireless-iwl-poweac97-powersave.conf
battery-level-polling.conf
bluetooth.conf
configuration-file-control.conf
cpufreq.conf
eee-superhe.conf
exec-commands.conf
hal-polling.conf
start-stop-programs.conf
video-out.conf
wireless-ipw-power.conf
wireless-iwl-power.confr.conf

Thanks in advance!

PS: if you need any files, please tell me. As I said I am clueless what could cause this, so I could give you a list of all the laptop-mode files I have edited but I don't think this would help anything.

EDIT: I have disabled the cpufreq one because I use cpupower and have that setup without any laptop-mode-tools interference. I use the on-demand governor all the time. An extra question: do I need those sched-{mc,smt} features in laptop-mode, if I have configured those in cpupower as well? For now I left them in, but I was gonna figure this one out still.

Last edited by Unia (2012-04-20 17:55:51)


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#2 2012-04-22 21:10:02

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: Laptop-mode draws more power than no laptop-mode

Try powertop? (Or powertop2?)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#3 2012-04-22 21:25:22

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: Laptop-mode draws more power than no laptop-mode

cfr wrote:

Try powertop? (Or powertop2?)

To see what draws power? Yea, I have done so before. Good idea, will do tomorrow!


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#4 2012-04-24 18:39:06

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: Laptop-mode draws more power than no laptop-mode

Finally had the time to do some testing with powertop. The highest result I get are these:

Top causes for wakeups:
  35,8% (309,7)   [Rescheduling interrupts] <kernel IPI>
  28,8% (248,8)   PS/2 toetsenbord/muis/touchpad interrupt

The first I have also without laptop-mode, the second I don't have. However, it does seem to drain a little slower now. Anyway, any hints to persue to get those wakeups down?

PS: powertop also suggested this:

Suggestion: Enable the CONFIG_INOTIFY kernel configuration option.
This option allows programs to wait for changes in files and directories
instead of having to poll for these change

Does the Arch kernel have that by default or do I have to build my own kernel for this?


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#5 2012-04-24 19:31:59

roentgen
Member
Registered: 2011-03-15
Posts: 91

Re: Laptop-mode draws more power than no laptop-mode

Does the Arch kernel have that by default or do I have to build my own kernel for this?

$ cat /proc/config.gz | gunzip | grep CONFIG_INOTIFY
CONFIG_INOTIFY_USER=y

Offline

#6 2012-04-24 21:11:51

Smarthound
Member
Registered: 2012-03-29
Posts: 23

Re: Laptop-mode draws more power than no laptop-mode

roentgen wrote:

$ cat /proc/config.gz | gunzip | grep CONFIG_INOTIFY

Just a side note: One can do this instead:

zgrep CONFIG_INOTIFY /proc/config.gz

Offline

#7 2012-04-24 21:34:49

donniezazen
Member
From: Salt Lake City
Registered: 2011-06-24
Posts: 671
Website

Re: Laptop-mode draws more power than no laptop-mode

@Unia what are your observations on stock laptop-mode?

Offline

#8 2012-04-25 13:23:00

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: Laptop-mode draws more power than no laptop-mode

Thanks roentgen and Smarthound, I'm a kernel noob tongue

Donniezazen, before I try that I'm gonna keep track of how long it takes for the battery to drain with and without laptop-mode-tools. It might be a placebo, I'm not sure. Sometimes it does look to drain faster but other times it doesn't (not because of workload, I just let the laptop idle with display on)


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

Board footer

Powered by FluxBB