LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-20-2010, 04:23 PM   #1
anotherlinuxnewb
LQ Newbie
 
Registered: Apr 2010
Posts: 12

Rep: Reputation: 0
Optimizing Laptop Battery Life on Linux


So I've come across several tips to optimize battery life on Linux. Anyone else have any ideas?

http://www.friedbeef.com/top-15-ways...-battery-life/
http://www.lesswatts.org/projects/powertop/
http://lifehacker.com/398622/ramlog-...ard-drive-life
http://www.batteryuniversity.com/
http://ubuntuforums.org/showthread.php?t=786402

In addition to undervolting, I would like to underclock. Is there a way to control CPU speed outside of the BIOS via some software control in Linux... or some sort of boot manager? I would like to boot to linux using underclocked speeds and have Windows running full blast.

Last point: Is there a way to run Linux completely in RAM? I have read that saves on power consumption from the hard drive.

Last edited by anotherlinuxnewb; 04-20-2010 at 04:33 PM.
 
Old 04-20-2010, 04:35 PM   #2
portamenteff
Member
 
Registered: Feb 2006
Location: Colorado
Distribution: sabayon
Posts: 179
Blog Entries: 1

Rep: Reputation: 36
I've run a live cd in RAM. I believe I was using Slax (slackware derivative) and at the bootup, ran the command
Code:
copy2ram
That may work on other distros, not sure though.
Also, the distro DreamLinux has a button in the gui called 'quiet and cool' that slows the system down, using less power. It is also a live cd, but this function will work in a HardDrive install.
 
Old 04-20-2010, 04:42 PM   #3
anotherlinuxnewb
LQ Newbie
 
Registered: Apr 2010
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by portamenteff View Post
I've run a live cd in RAM. I believe I was using Slax (slackware derivative) and at the bootup, ran the command
Code:
copy2ram
That may work on other distros, not sure though.
Also, the distro DreamLinux has a button in the gui called 'quiet and cool' that slows the system down, using less power. It is also a live cd, but this function will work in a HardDrive install.
Ahh interesting... I looked it up and apparently the Quiet and Cool feature is only available on AMD chips, so I'm out of luck there. :/
 
Old 04-20-2010, 08:47 PM   #4
Web31337
Member
 
Registered: Sep 2009
Location: Russia
Distribution: Gentoo, LFS
Posts: 399
Blog Entries: 71

Rep: Reputation: 65
You can use kernel "cpufreq" features and many more things.
One good tutorial: http://www.gentoo.org/doc/en/power-management-guide.xml
Quote:
Originally Posted by anotherlinuxnewb
Is there a way to run Linux completely in RAM?
I guess you can run it from USB flash drive. I personally don't use swapping, but not for powersaving, I am not even sure it really helps to save battery time, it just speeds up things.
 
Old 04-20-2010, 09:54 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,665

Rep: Reputation: 2258Reputation: 2258Reputation: 2258Reputation: 2258Reputation: 2258Reputation: 2258Reputation: 2258Reputation: 2258Reputation: 2258Reputation: 2258Reputation: 2258
From other site on amd.
"Kernel 2.6
If you're running a 2.6 kernel (check uname -a), you need to have cpu frequency scaling enabled. Check this by doing:

grep CPUFREQ /usr/src/linux-2.6.x/.config
It should return CONFIG_X86_ACPI_CPUFREQ=y or CONFIG_X86_ACPI_CPUFREQ=m.
To be able to control the cpu frequency from userspace, you should also choose USERSPACE as the cpu frequency governor:

grep USERSPACE /usr/src/linux-2.6.x/.config
# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
CONFIG_CPU_FREQ_GOV_USERSPACE=y
Then you can use the cpufreq interface in /sys/ to change the speed:

cd /sys/devices/system/cpu/cpu0/cpufreq/
There you will find some files. You can control the cpu frequency by echoing a value in kHz to the file scaling_setspeed:

echo 600000 > scaling_setspeed
This will set your cpu to 600MHz.

You can also install a userspace daemon to dynamically change the cpu speed according to your power/acpi status and performance needs: cpufrqd, speedfreqd. "


Not sure if you can in linux but acpi is a far reaching spec that can if enabled in hardware control very finely each part of a system. It can turn off power to a part like modem or pcmcia or even bridge to bridge.

The best solution may be to lower backlight. It may be one of the biggest users or power. There usually is a hot key that may or may not be known. I know ibm's used to be something like alt-b or some key combo like that.

Last edited by jefro; 04-20-2010 at 10:02 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Optimizing Battery Life of the Eeepc devinmcelheran Linux - Laptop and Netbook 1 06-11-2009 02:25 PM
Optimizing battery life Pikidalto Linux - Laptop and Netbook 2 05-10-2008 01:54 PM
best long battery life laptop for linux grubber33 Linux - Laptop and Netbook 1 10-01-2007 02:21 PM
LXer: Intel and PowerTOP extend Linux laptop battery life LXer Syndicated Linux News 0 05-17-2007 12:16 PM
windows, good battery life -> fedora, bad battery life daedalusq1115 Linux - Laptop and Netbook 1 01-17-2005 07:40 AM


All times are GMT -5. The time now is 12:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration