You are not logged in.

#101 2012-05-15 15:58:05

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: 3x+ battery life

I get the same, you'll have to change the script to

mWh=$(($(cat /sys/class/power_supply/BAT0/current_now)/1000))

Offline

#102 2012-05-15 16:02:13

kinu
Member
Registered: 2009-06-13
Posts: 64

Re: 3x+ battery life

Army wrote:

I get the same, you'll have to change the script to

mWh=$(($(cat /sys/class/power_supply/BAT0/current_now)/1000))

Working! Thank you.

Offline

#103 2012-05-15 16:17:00

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

Re: 3x+ battery life

Hey, I'm not really into all this kernel stuff and whatnot but all the mentions here do look very promising (esp. since LMT indeed does not add that much battery time)

I do wonder one thing though: can any of these settings (OOTB; so as you provide the script) harm my laptop in any way? I know that certain harddisk powersaving options can so I just want to be on the save side here! wink


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

#104 2012-05-15 17:02:03

kinu
Member
Registered: 2009-06-13
Posts: 64

Re: 3x+ battery life

Hi again,

I'm trying now powerdown, and it really works better than LMT for me (about 10% more estimated battery time). But when executing it, I'm getting

[powerdown] cannot enable option /sys/devices/system/cpu/sched_smt_power_savings
[powerdown] cannot enable option /sys/devices/system/cpu/sched_mc_power_savings

I've read that this could be significant for battery life, Is it true? And, if so, anyone knows why this is not working for me?

Offline

#105 2012-05-15 17:22:56

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

Re: 3x+ battery life

kinu wrote:

Hi again,

I'm trying now powerdown, and it really works better than LMT for me (about 10% more estimated battery time). But when executing it, I'm getting

[powerdown] cannot enable option /sys/devices/system/cpu/sched_smt_power_savings
[powerdown] cannot enable option /sys/devices/system/cpu/sched_mc_power_savings

I've read that this could be significant for battery life, Is it true? And, if so, anyone knows why this is not working for me?

AFAIK that is only supported by recent CPU's, such as Intel's core i{3,5,7} series. What CPU do you have?


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

#106 2012-05-15 17:57:13

kinu
Member
Registered: 2009-06-13
Posts: 64

Re: 3x+ battery life

Unia wrote:

AFAIK that is only supported by recent CPU's, such as Intel's core i{3,5,7} series. What CPU do you have?

Yes. This is the good old

Intel(R) Core(TM)2 Duo CPU P7550 @ 2.26GHz

Thank you.

Offline

#107 2012-05-18 17:59:05

uastasi
Member
From: Salento - Italy
Registered: 2007-11-27
Posts: 247

Re: 3x+ battery life

@taylorchu could you write a tiny howto to explain where to put exactly all the 'pieces' of your tool?
Thank you in advance smile


Till the last battle, till the last bottle.
aur - twitter

Offline

#108 2012-05-18 18:34:03

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

Re: 3x+ battery life

NVM.

Whilst I did post, can anyone confirm this is safe and won't break my laptop? big_smile

Last edited by Unia (2012-05-18 18:34:48)


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

#109 2012-05-18 19:03:49

el mariachi
Member
Registered: 2007-11-30
Posts: 595

Re: 3x+ battery life

This is safe. This won't break your laptop or set your cat on fire. It may, however, not triplicate your battery life.

Offline

#110 2012-05-18 19:08:29

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

Re: 3x+ battery life

el mariachi wrote:

It may, however, not triplicate your battery life.

Well darn it! tongue Now I see some time I had planned for my exams vanishing in order to test this stuff!


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

#111 2012-05-18 19:10:04

el mariachi
Member
Registered: 2007-11-30
Posts: 595

Re: 3x+ battery life

Welcome to the club wink

Offline

#112 2012-05-20 19:29:20

taylorchu
Member
Registered: 2010-08-09
Posts: 405

Re: 3x+ battery life

some apps that use too much power on my machine
1. i3status
2. wicd, I replaced it with netcfg, and it helps.


"After you do enough distro research, you will choose Arch."

Offline

#113 2012-05-20 19:58:47

el mariachi
Member
Registered: 2007-11-30
Posts: 595

Re: 3x+ battery life

what did you use to measure power usage? powertop?

Offline

#114 2012-05-20 20:12:23

I am Gianluca
Member
From: London, UK
Registered: 2011-05-22
Posts: 195

Re: 3x+ battery life

taylorchu wrote:

some apps that use too much power on my machine
1. i3status
2. wicd, I replaced it with netcfg, and it helps.

I'm thinking about moving from NetworkManager to Wicd, mostly because of battery life.
Is the battery saving big enough to make sense moving from NetworkManager to Wicd?


Laptop: Acer Aspire S3 | Linux Mint Cinnamon 64-bit

Offline

#115 2012-05-20 22:14:42

taylorchu
Member
Registered: 2010-08-09
Posts: 405

Re: 3x+ battery life

@el mariachi
yes.powertop. I also "feel" that netcfg sets up wifi faster than wicd.

@I am Gianluca
I dont know. I did not work with networkmanager long enough.


"After you do enough distro research, you will choose Arch."

Offline

#116 2012-05-20 22:21:36

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

Re: 3x+ battery life

taylorchu wrote:

I also "feel" that netcfg sets up wifi faster than wicd.

If you want it to be even faster, use dhclient instead of dhcpcd. I find it to not only be faster, but also more 'stable': dhcpcd has lease fails at random times, whereas dhclient always work.

YMMV, though.

As for your script, it doesn't seem to increase my battery that much. I think my battery is completely fried, though. Haven't been that nice for it wink

Will do some more testing!

EDIT: Oh, I do get more spinups and clicks from my HDD. Where is this setting stored in powerdown?

Last edited by Unia (2012-05-20 22:22:10)


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

#117 2012-05-21 07:30:10

el mariachi
Member
Registered: 2007-11-30
Posts: 595

Re: 3x+ battery life

"hdparm -B" set it to a higher value.

Offline

#118 2012-05-24 10:17:56

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

Re: 3x+ battery life

^ Thanks, I found the setting and made it 254 as I always used.

It seems like my battery lasts way longer on Openbox than it does on DWM. Gotta look into 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

#119 2012-05-30 12:13:48

I am Gianluca
Member
From: London, UK
Registered: 2011-05-22
Posts: 195

Re: 3x+ battery life

There is an ArchWiki page about this package?
I've player with power saving tools for a while, so I'm interested on it. I'm interested on learn the differences between 'powerdown' and 'laptop mode' with the right tweaks.
Thank you.


Laptop: Acer Aspire S3 | Linux Mint Cinnamon 64-bit

Offline

#120 2012-05-30 15:16:32

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

Re: 3x+ battery life

I am Gianluca wrote:

There is an ArchWiki page about this package?
I've player with power saving tools for a while, so I'm interested on it. I'm interested on learn the differences between 'powerdown' and 'laptop mode' with the right tweaks.
Thank you.

I would like to learn on this topic too, so any good links would be very nice. Though, Gianluca, you can also look into the laptop-mode config files and in the powerdown script to see what they do. For powerdown, you'll have to have Google at your side (or at least, I had to), but for laptop-mode everything is in the config files wink


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

#121 2012-05-30 16:32:00

Zucca
Member
From: KUUSANKOSKI, Finland
Registered: 2009-02-26
Posts: 135

Re: 3x+ battery life

Great tools. But these desperately need a config file and rc script maybe.

Oh. And If I were to get 3x battery time then my laptop would stay on with battery more than 20 hours. big_smile I guess that it highly unlikely. Still, I believe that more than 10 hours is reality.

Last edited by Zucca (2012-05-30 16:35:05)


K.i.s.s. <3

Offline

#122 2012-05-30 18:18:05

uastasi
Member
From: Salento - Italy
Registered: 2007-11-27
Posts: 247

Re: 3x+ battery life

Zucca wrote:

Great tools. But these desperately need a config file and rc script maybe.

Oh. And If I were to get 3x battery time then my laptop would stay on with battery more than 20 hours. big_smile I guess that it highly unlikely. Still, I believe that more than 10 hours is reality.

A good starting point would be creating an executable custom script into /etc/pm/power.d that triggers powerdown and powerup:

#!/bin/bash
case "$1" in
     true)
	# Battery
	powerdown &
     ;;
     false)
	#AC
	powerup &
     ;;
esac
exit 0

Feel free to contribute and improve wink


Till the last battle, till the last bottle.
aur - twitter

Offline

#123 2012-05-30 18:40:14

I am Gianluca
Member
From: London, UK
Registered: 2011-05-22
Posts: 195

Re: 3x+ battery life

Unia wrote:
I am Gianluca wrote:

There is an ArchWiki page about this package?
I've player with power saving tools for a while, so I'm interested on it. I'm interested on learn the differences between 'powerdown' and 'laptop mode' with the right tweaks.
Thank you.

I would like to learn on this topic too, so any good links would be very nice. Though, Gianluca, you can also look into the laptop-mode config files and in the powerdown script to see what they do. For powerdown, you'll have to have Google at your side (or at least, I had to), but for laptop-mode everything is in the config files wink

Hi Unia,
I know a little about laptop-mode because I use it. It helps last my battery 4h more rather than without (from 4h to 8h on daily use).
I didn't install powerdown because I don't understand the difference between it and laptop-mode. From what I can imagine they are tweaking the same things, maybe with more or less aggressive parameters.
An ArchWiki page could be helpful, because the battery life is a major problem for everyone who is running a laptop.

Last edited by I am Gianluca (2012-05-30 19:07:06)


Laptop: Acer Aspire S3 | Linux Mint Cinnamon 64-bit

Offline

#124 2012-05-30 19:26:44

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

Re: 3x+ battery life

At first I didn't really know the difference either (still don't tongue) but laptop-mode tools wasn't satisfying enough. My battery is pretty much fried so it lasts roughly 30 minutes without any powersaving, maybe 50 if I'm doing intensive stuff.

With laptop-mode tools, the difference was almost insignificant - so I tried powerdown. Now I can work roughly one and a half hours on one battery! Plus that powerdown is a lot simpler than laptop-mode tools. I am currently editing it for my own setup and it's just two files basically: powerdown and powerup.

You should try it and see which gives you better battery lifes. The defaults for powerdown are safe (or so have I been told tongue) so it won't harm anything!


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

#125 2012-05-30 19:40:23

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

Re: 3x+ battery life

The real difference between this package and lmt is that :
1) lmt is a daemon + lots of config files, powerdown and powerup are 2 scripts.
2) You won't know what works and what doesn't with laptop-mode-tools, while with this script you can see any error in the log.
3) this package is easily extensible.
4)laptop-mode-tools is slowly developed.
5) you know what powerdown does. You won't know what laptop-mode-tools does (or, at least, with powerdown, you can check easily the code and understand it. Lmt is a series of script performed by the daemon.
6) lmt requires acpid. With this script you can use pm-utils and its powersaving features (plus upowerd, even if i'm having troubles with upowerd + DE + pm-utils, and i have to rely acpid anyway).
BTW i do not use this script but i created my own powersaving script, using the one from crunchbang forum and this, plus other things i needed.
So the key-feature is that it is highly extensible and easily adjustable (at least, for me).

Last edited by nierro (2012-05-30 19:42:38)

Offline

Board footer

Powered by FluxBB