LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-02-2008, 01:49 PM   #1
Romanus81
Member
 
Registered: Feb 2008
Posts: 201

Rep: Reputation: 31
How can I underclock my Laptop for greater battery life?


I have an 1.6GHz Intel Atom CPU in my MSI Wind and I would like to be able to underclock it, so that while I'm just doing some coding or typing a paper for school, I can make my battery last a bit longer.
Does slackware have tools built in to over/underclock my CPU, or do I need to be enable something in my kernel?
Thanks for any help anyone can give me on this topic.
 
Old 12-02-2008, 02:42 PM   #2
Ilgar
Senior Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware64 15.0, Slackwarearm 14.2
Posts: 1,157

Rep: Reputation: 237Reputation: 237Reputation: 237
Here are a couple of threads from this forum where you can find information on cpufreqd:

http://www.linuxquestions.org/questi...laptop-675183/

http://www.linuxquestions.org/questi...ttling-617741/

You can also directly use the /sys interface. For example on my computer I have created a rather simple script file /usr/local/bin/cpuspeed with content

Code:
echo $1 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
and at startup (in /etc/rc.d/rc.local) I call

/usr/local/bin/cpuspeed ondemand

to switch to ondemand. If I need anything else I can do

Code:
# cpuspeed performance
# cpuspeed powersave
to switch to another governor. Ondemand is the one which reduces the clock speed when the cpu is idle (and increases when there is demand).
 
Old 12-02-2008, 02:50 PM   #3
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
You might also want to look at powernowd - it keeps your cpu at the lowest speed until needed to step up.
 
Old 12-02-2008, 03:15 PM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,223

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
I think this is the most recent thread about it:
http://www.linuxquestions.org/questi...edstep-684852/
 
Old 12-02-2008, 11:58 PM   #5
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
The power management guys say to use the ondemand frequency governor - period - don't bother with all the userspace control mechanisms.
 
Old 12-03-2008, 01:58 AM   #6
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
From rc.local:

Code:
/bin/echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
 
Old 01-10-2009, 03:08 PM   #7
statguy
Member
 
Registered: Sep 2004
Location: Ontario, Canada
Distribution: Slackware 14.2, current
Posts: 416

Rep: Reputation: 36
I just found this thread, very useful.

I have now set my laptop to use ondemand as per the suggestion. My question is will this give the best battery life or should I also use a powersave governor and switch to that while on battery?
 
Old 01-10-2009, 05:10 PM   #8
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by Ilgar View Post
Code:
echo $1 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
and at startup (in /etc/rc.d/rc.local) I call

/usr/local/bin/cpuspeed ondemand

to switch to ondemand. If I need anything else I can do

Code:
# cpuspeed performance
# cpuspeed powersave
to switch to another governor. Ondemand is the one which reduces the clock speed when the cpu is idle (and increases when there is demand).
This will work for single-core cpus only.
I recommend to read this: http://slackwiki.org/CPU_Frequency_Scaling
 
Old 01-10-2009, 05:19 PM   #9
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,176

Rep: Reputation: 233Reputation: 233Reputation: 233
Fixed.

Last edited by guanx; 01-10-2009 at 05:21 PM.
 
  


Reply



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
Laptop battery life PatrickMay16 General 2 07-23-2007 06:36 PM
laptop battery life jb2006 Slackware 6 03-31-2006 08:54 PM
Windows: 4-5 hour battery life, Gentoo : ~2:30 battery life numerous Linux - Laptop and Netbook 3 01-17-2005 08:39 PM
windows, good battery life -> fedora, bad battery life daedalusq1115 Linux - Laptop and Netbook 1 01-17-2005 06:40 AM
Detecting battery life on my laptop ShakeNBake Linux - Software 1 10-15-2003 11:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:05 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
Open Source Consulting | Domain Registration