LinuxQuestions.org
Visit Jeremy's Blog.
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 02-25-2009, 09:53 AM   #1
Mig21
Member
 
Registered: Jan 2005
Posts: 263

Rep: Reputation: 45
Power saving on a laptop


Hi

I'm sure guides exist for doing this, but I though I'd ask here in case someone knows of a guide that applies easily to Slackware 12.2

I would like my laptop to switch the CPU into some low-energy-usage mode when it's not being used (say when the screensaver comes on). What are the commands I need to run?

And is there a hook for the screensaver to run this script of mine when the screen is turned off?

Thanks in advance
 
Old 02-25-2009, 11:58 AM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,928
Blog Entries: 45

Rep: Reputation: 3160Reputation: 3160Reputation: 3160Reputation: 3160Reputation: 3160Reputation: 3160Reputation: 3160Reputation: 3160Reputation: 3160Reputation: 3160Reputation: 3160
Hi,

You should look at 'How to suspend and hibernate a laptop under Linux'.

This link and others are available from 'Slackware-Links'. More than just SlackwareŽ links!
 
Old 02-25-2009, 12:03 PM   #3
Mig21
Member
 
Registered: Jan 2005
Posts: 263

Original Poster
Rep: Reputation: 45
Hi onebuck

Thanks for the link, but I already set up suspend and don't much care for hibernate.

What I'd like to do is turn down my CPU clock speed while the system is running, so it uses less power and makes less heat.
 
Old 02-25-2009, 12:46 PM   #4
C-Sniper
Member
 
Registered: Dec 2006
Distribution: Slackware
Posts: 507

Rep: Reputation: 33
Check out cpufreqd and cpufrequtilites, Also make sure you have power saving enabled in your kernel and that it is set to change on the fly. (ondemand/conservative/ or userspace)
 
Old 02-27-2009, 11:31 AM   #5
Mig21
Member
 
Registered: Jan 2005
Posts: 263

Original Poster
Rep: Reputation: 45
Hm, cpufreqd won't compile even though cpufrequtilites installed, and I tried one other simpler utility that compiled but wouldn't run because something was missing in /sys

I guess the stock slackware kernel is missing something. And I hate recompiling kernels cause I always find one way or another to screw up

Maybe I'll have some time one day to try it, for now I'll assume that Slackware isn't capable of this feature out of the box and live with that.
 
Old 02-27-2009, 12:48 PM   #6
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,560

Rep: Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354
Use the ondemand cpufreq governor - you can set it from rc.local or some such.
 
Old 02-27-2009, 03:37 PM   #7
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
Maybe I'll have some time one day to try it, for now I'll assume that Slackware isn't capable of this feature out of the box and live with that.
No, not out of the box. .

Not full-blown tutorials, but perhaps the following will help:

Enabling CPU Frequency Governors
Green Computing

Reducing frequency is a good start. Reducing core voltage is better. Electrically, energy consumption is proportional to frequency but exponentially related to voltage.

First thing to do is verify the BIOS is configured correctly. Caveat: Not all CPUs support such features.

Regarding CPU governors, loading only the ondemand governor usually is the best method. All of the governors can be loaded concurrently, but only one can be used at any one time. So just load ondemand. To do that only requires editing rc.modules.

After loading the ondemand module, edit rc.local to automatically configure the /sys/devices/system/cpu/*/cpufreq/scaling_governor parameter.

Some of the recommendations provided by powertop (not part of the stock Slackware) requires recompiling the kernel.

The lm_sensors package is included in the stock Slackware but must be configured manually. The Conky utility is not included in the stock Slackware but is a great way to verify various energy saving features are functioning. The stock Slackware provides gkrellm.

Suspending and hibernating is challenging. There are a few threads here at LQ discussing the topic. Some people experience no issues, others never get suspend and hibernate to function properly.
 
Old 02-27-2009, 04:07 PM   #8
Maligree
Member
 
Registered: Mar 2008
Distribution: Gentoo, CentOS, Fedora, Arch
Posts: 231
Blog Entries: 1

Rep: Reputation: 42
Maybe play around with hdparm and the -S flag?
 
  


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
Power-saving power extension cables? (UK) neocookie General 3 03-28-2007 02:53 PM
Laptop power saving/management Oholiab Slackware 5 06-14-2005 06:51 AM
Power saving? elvee Linux - Hardware 5 09-18-2004 05:44 PM
Power saving? kleptophobiac Linux - Laptop and Netbook 2 07-18-2004 09:38 PM
power-saving linux laptop... roofy Linux - Laptop and Netbook 2 09-28-2003 09:42 AM

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

All times are GMT -5. The time now is 11:32 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