You are not logged in.
I get the same, you'll have to change the script to
mWh=$(($(cat /sys/class/power_supply/BAT0/current_now)/1000))
Offline
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
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!
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
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
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
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
NVM.
Whilst I did post, can anyone confirm this is safe and won't break my laptop?
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
This is safe. This won't break your laptop or set your cat on fire. It may, however, not triplicate your battery life.
Offline
It may, however, not triplicate your battery life.
Well darn it! 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
Welcome to the club
Offline
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
what did you use to measure power usage? powertop?
Offline
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
@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
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
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
"hdparm -B" set it to a higher value.
Offline
^ 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
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
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
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
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. 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
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. 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
Offline
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
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
At first I didn't really know the difference either (still don't ) 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 ) 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
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