SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2011-03-02 06:15:12

hardran3
#! Junkie
From: forest town, lake land
Registered: 2011-02-26
Posts: 360

Laptop power saving script for #! & Debian

# List of modules to unload, space seperated. Edit depending on your hardware and preferences.
modlist="uvcvideo"

Last edited by hardran3 (2011-03-22 16:21:48)

Offline

Help fund CrunchBang, donate to the project!

#2 2011-03-02 17:35:35

AndyRawr
New Member
Registered: 2011-02-17
Posts: 5

Re: Laptop power saving script for #! & Debian

How much extra battery life are you getting with this?

Offline

#3 2011-03-03 11:49:21

fox
#! Junkie
From: Peterborough, Ontario, Canada
Registered: 2009-05-10
Posts: 362

Re: Laptop power saving script for #! & Debian

Thanks for posting this, hardran3.  I, too, have been disappointed with battery life in CrunchBang; Ubuntu Netbook Edition is noticeably better.  I tried installing gnome-power-manager, which makes it a bit better, but your script looks to go much deeper.  I'll try it on my Acer 1810TZ and report back.


Mac user with Linux tendencies
#!CrunchBang Waldorf & Ubuntu 13.04 on Acer 1810TZ (OCZ Vertex 2 128gb SSD)
Various linux virtual machines on a Mac mini, an iMac and a MacBook Air

Offline

#4 2011-03-03 12:56:31

bozhkov
#! Junkie
Registered: 2009-12-29
Posts: 464

Re: Laptop power saving script for #! & Debian

If somebody tries it on a Toshiba laptop, please report back smile

Offline

#5 2011-03-04 09:49:14

Tunafish
#! Die Hard
From: the Netherlands
Registered: 2010-03-07
Posts: 1,204

Re: Laptop power saving script for #! & Debian

I'm wondering how you run the script? You have to be root to execute it.

Or does laptop-tools make it run every time the power is unplugged?

Last edited by Tunafish (2011-03-04 09:51:32)

Offline

#6 2011-03-04 16:32:31

hardran3
#! Junkie
From: forest town, lake land
Registered: 2011-02-26
Posts: 360

Re: Laptop power saving script for #! & Debian

cat /proc/sys/vm/dirty_writeback_centisecs

Last edited by hardran3 (2011-03-04 19:03:02)

Offline

#7 2011-03-04 16:44:03

monkeybritt
#! Junkie
From: Nowhere, Indiana
Registered: 2009-10-17
Posts: 288
Website

Re: Laptop power saving script for #! & Debian

if i use gnome-power-manager do I need to disable it  when using this?


failure is only a negative way to describe a learning experience.
i am constantly learning. smile

Offline

#8 2011-03-04 16:51:08

hardran3
#! Junkie
From: forest town, lake land
Registered: 2011-02-26
Posts: 360

Re: Laptop power saving script for #! & Debian

Offline

#9 2011-03-04 19:42:43

monkeybritt
#! Junkie
From: Nowhere, Indiana
Registered: 2009-10-17
Posts: 288
Website

Re: Laptop power saving script for #! & Debian

ok im using it now how can i check to make sure its executing correctly? where would i check for errors?

it does seem to have lowered cpu usage

Last edited by monkeybritt (2011-03-04 19:47:36)


failure is only a negative way to describe a learning experience.
i am constantly learning. smile

Offline

#10 2011-03-04 23:36:56

monkeybritt
#! Junkie
From: Nowhere, Indiana
Registered: 2009-10-17
Posts: 288
Website

Re: Laptop power saving script for #! & Debian

definitely should have read your answer to tunafish's question. lol

anyway seems to be working great


failure is only a negative way to describe a learning experience.
i am constantly learning. smile

Offline

#11 2011-03-05 17:54:01

fox
#! Junkie
From: Peterborough, Ontario, Canada
Registered: 2009-05-10
Posts: 362

Re: Laptop power saving script for #! & Debian

cat /proc/sys/vm/dirty_writeback_centisecs

Mac user with Linux tendencies
#!CrunchBang Waldorf & Ubuntu 13.04 on Acer 1810TZ (OCZ Vertex 2 128gb SSD)
Various linux virtual machines on a Mac mini, an iMac and a MacBook Air

Offline

#12 2011-03-05 18:30:55

hardran3
#! Junkie
From: forest town, lake land
Registered: 2011-02-26
Posts: 360

Re: Laptop power saving script for #! & Debian

cat /proc/sys/vm/dirty_writeback_centisecs

Offline

#13 2011-03-06 06:01:06

mahatman2
#! Die Hard
From: Chattanooga TN
Registered: 2009-09-13
Posts: 551

Re: Laptop power saving script for #! & Debian

Last edited by mahatman2 (2011-03-06 06:26:59)


Punch all your friends.

Offline

#14 2011-03-06 13:29:12

Tunafish
#! Die Hard
From: the Netherlands
Registered: 2010-03-07
Posts: 1,204

Re: Laptop power saving script for #! & Debian

cat /proc/sys/vm/dirty_writeback_centisecs

Offline

#15 2011-03-06 16:08:33

hardran3
#! Junkie
From: forest town, lake land
Registered: 2011-02-26
Posts: 360

Re: Laptop power saving script for #! & Debian

Offline

#16 2011-03-06 16:51:54

mahatman2
#! Die Hard
From: Chattanooga TN
Registered: 2009-09-13
Posts: 551

Re: Laptop power saving script for #! & Debian

^ huh, that's really weird. maybe it's because i'm using testing repos? But when I reinstalled pm-utils it made me remove laptop-mode-tools (even though in synaptic there were no conflicts on the package details) and when I originally installed laptop-mode it made me remove something (don't remember what, but it must have been pm-utils)... oh well. Like you said, it works! So I don't question lol


Punch all your friends.

Offline

#17 2011-03-08 10:50:47

jelloir
#! CrunchBanger
From: Outside the garden wall
Registered: 2009-08-21
Posts: 212

Re: Laptop power saving script for #! & Debian

Last edited by jelloir (2011-03-08 10:56:39)

Offline

#18 2011-03-08 17:05:22

mahatman2
#! Die Hard
From: Chattanooga TN
Registered: 2009-09-13
Posts: 551

Re: Laptop power saving script for #! & Debian

@jelloir...that makes sense but it just doesn't show up...in fact laptop-mode-tools only conflicts with noflushd.

BUT::: I just checked pm-tools and that DOES conflict with laptop-mode-tools. So that must have been causing the problem and you're probably right as to why. Thanks for clearing that up!


Punch all your friends.

Offline

#19 2011-03-17 23:53:17

armhead
New Member
Registered: 2011-03-12
Posts: 1

Re: Laptop power saving script for #! & Debian

Script worked well on my EEE 1001pxd.  I ended up lowering  backlight brightness. I found your setting a bit to bright for my screen.

Went from around 5h30m to 6h40 min.

My watt usage went from the low 9's to the mid 8's

Thanks!

Offline

#20 2011-03-19 22:51:52

crunchy
#! Junkie
From: Juneau, AK, USA
Registered: 2010-08-19
Posts: 461

Re: Laptop power saving script for #! & Debian

wow, this is great! I just did it and have been running my laptop with the screen brightness at 100% downloading lots of files and on the internet for 10 minutes and my battery is still at 100%!! it used to be that by now it would be at 95!

I love all of your hacks to make things better. I just added the liquorix kernel as well and now a couple of things work better than they did ever before. and faster I'm a slow typer so it's been about 20 minutes now and I'm still at 100!!

my battery, honestly has a longer battery life than in my windows 7 now.

thank you soooo much!! smile smile smile smile smile smile smile smile smile smile smile smile

Offline

#21 2011-03-19 22:55:03

hardran3
#! Junkie
From: forest town, lake land
Registered: 2011-02-26
Posts: 360

Re: Laptop power saving script for #! & Debian

Offline

#22 2011-03-20 22:43:46

Nascentes
New Member
From: Utah
Registered: 2011-03-20
Posts: 8

Re: Laptop power saving script for #! & Debian

Installed on my EEE PC 1000HE and it's working great.

Definitely a must-have tweak. Thanks a bunch!

Offline

#23 2011-04-03 12:32:22

silince
#! CrunchBanger
Registered: 2010-07-22
Posts: 166

Re: Laptop power saving script for #! & Debian

I'm not getting *loads* of power saving - any advice what I'm doing wrong and how to fix?

silinz@stinkpad:~$ cat /var/log/pm-powersave.log
/usr/lib/pm-utils/power.d/anacron true:success.
/etc/pm/power.d/powersave true:/etc/pm/power.d/powersave: 66: cannot create /sys/bus/pci/devices/*/power/control: Directory nonexistent
/etc/pm/power.d/powersave: 66: cannot create /sys/bus/spi/devices/*/power/control: Directory nonexistent
/etc/pm/power.d/powersave: 66: cannot create /sys/bus/i2c/devices/*/power/control: Directory nonexistent
success.
/usr/lib/pm-utils/power.d/sched-powersave true:**sched policy powersave ON
success.
/usr/lib/pm-utils/power.d/anacron false:success.
/etc/pm/power.d/powersave false:/etc/pm/power.d/powersave: 66: cannot create /sys/bus/pci/devices/*/power/control: Directory nonexistent
/etc/pm/power.d/powersave: 66: cannot create /sys/bus/spi/devices/*/power/control: Directory nonexistent
/etc/pm/power.d/powersave: 66: cannot create /sys/bus/i2c/devices/*/power/control: Directory nonexistent
success.
/usr/lib/pm-utils/power.d/sched-powersave false:**sched policy powersave OFF
success.

Debian Wheezy on VeryPC Low Energy Desktop | Elementary on Lenovo Thinkpad SL510 | #! on Lenovo Ideapad S205 | Raspbmc on Pi | Linux Mint 17 XFCE on Lenovo W530.

Offline

#24 2011-04-03 17:38:53

hardran3
#! Junkie
From: forest town, lake land
Registered: 2011-02-26
Posts: 360

Re: Laptop power saving script for #! & Debian

# Bus list for runtime pm. Probably shouldn't touch this.
buslist="pci spi i2c"

Last edited by hardran3 (2011-04-03 18:07:14)

Offline

Be excellent to each other!

#25 2011-04-04 08:19:25

silince
#! CrunchBanger
Registered: 2010-07-22
Posts: 166

Re: Laptop power saving script for #! & Debian

Many thanks I shall give this a go.  I'm only getting just under 2 hours (with wireless on) at the mo.  Which isn't too good for a Thinkpad!


Debian Wheezy on VeryPC Low Energy Desktop | Elementary on Lenovo Thinkpad SL510 | #! on Lenovo Ideapad S205 | Raspbmc on Pi | Linux Mint 17 XFCE on Lenovo W530.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: bleh

Debian Logo