LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-06-2005, 03:42 PM   #1
mjjzf
Member
 
Registered: Feb 2004
Location: Valby, Denmark / Citizen of the Web
Distribution: Slackware 14.1
Posts: 879

Rep: Reputation: 39
CPU throttling & ACPI


I have recently had the great pleasure of acquiring a Fujitsu-Siemens laptop.
Obviously, it came pre-installed with UnmentionableOS, but once the rubble and dust cleared, a sizable chunk had been blown away for Slackware, that old King of OS'es - which is now on board, running the show.
Now, I know that the hardware system supports throttling with ACPI. Can anyone tell me how this works?
Also, there is no power management here that works. Any pointers? Kernel recompile? I have done chmod +x on rc.acpid.

Last edited by mjjzf; 09-06-2005 at 03:44 PM.
 
Old 09-06-2005, 05:02 PM   #2
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
When I installed Slackware on my HP laptop I had to recompile the kernel to enable the ACPI features. The stock kernel doesn't include them by default. It's been my experience that much of the power saving is done manually:

1) use hdparm to adjust the hard drive
2) pay attention to screen brightness and activity. use a simple (non-gl) screensaver and enable DPMS in your xorg.conf so the screen will blank after x number of minutes.
3) pay attention to resource usage. you might setup a lightweight wm to use when you're running on battery power
 
Old 09-07-2005, 03:03 AM   #3
mjjzf
Member
 
Registered: Feb 2004
Location: Valby, Denmark / Citizen of the Web
Distribution: Slackware 14.1
Posts: 879

Original Poster
Rep: Reputation: 39
I'll have a look at compiling the kernel. It is a good idea and something I intended to do anyway.
I am running Xfce, so it shouldn't be too demanding as it is. I might just change to Fluxbox, but I suspect that Xfce isn't too hard on the battery. I always adjust the background lighting to go easy on it.
Does anyone here know where the Xfce battery indicator panel thingie gets the data from?
 
Old 09-07-2005, 08:26 AM   #4
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
Right, XFCE should be easy on the resources. I could be wrong but I'm pretty sure all the battery monitor programs get the data from /proc/acpi/battery/BAT1.
 
Old 09-08-2005, 01:40 AM   #5
mjjzf
Member
 
Registered: Feb 2004
Location: Valby, Denmark / Citizen of the Web
Distribution: Slackware 14.1
Posts: 879

Original Poster
Rep: Reputation: 39
Thank you - I was used to using APM on my other, older laptop. So I am used to
cat /proc/apm
- ACPI is a bit more complex, it seems.
 
Old 09-08-2005, 06:33 AM   #6
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 31
Throttling works fine. You'll need to recompile the kernel, and I'd suggest a 2.6 series, with support for all of the governors. You can choose which governor is the default at kernel compile time, too.

Also, you'll want to install cpufreqd. That'll pay attention to the power status, and switch governors according to rules you set. I've got mine set to OnDemand when powered, keeping the laptop at 498MHz instead of the 1.2GHz that it's rated for, because it runs cooler and quieter. (doesn't even need the CPU cooling fan). When I'm watching movies or playing games, it jumps up to the 1.2GHz.

When I unplug it, I've got the CPU hard throttled at 498MHz, to maximize battery life.


Also... look into mpd for your mp3/ogg player. It runs as a daemon and you don't need to keep a GUI open while it's playing. Works great for me on random play, and doesn't use nearly as many clock cycles as drawing a GUI does. I've got launchers in XFCE which run the mpc (command-line client) commands to skip to previous, rewind, start, stop, and pause, and that's all I really need for mpd.
 
Old 09-08-2005, 07:09 AM   #7
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware 15.0
Posts: 1,272

Rep: Reputation: 65
Pat does provide the bareacpi kernel in 2.4.x. It is in the kernels directory. Just in case you don't want to build your own.
 
Old 09-10-2005, 03:18 PM   #8
mjjzf
Member
 
Registered: Feb 2004
Location: Valby, Denmark / Citizen of the Web
Distribution: Slackware 14.1
Posts: 879

Original Poster
Rep: Reputation: 39
I am having problems with configuring (running ./configure) while installing cpufreqd. I am told:
'undefined reference to rpl_malloc'
I have heard of this before, but I am not sure how to go about it.

Last edited by mjjzf; 09-10-2005 at 03:37 PM.
 
Old 09-11-2005, 12:10 PM   #9
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
version 1.2.3 of cpufreqd is available as a Slackware binary package here:

http://www.linuxpackages.net/search_...&name=cpu&ver=

Might be worth a try if you have trouble building it from source.
 
  


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
Suse 9.2 x86_64 apm & cpu throttling don't work ultra2005alpha Linux - Software 0 03-05-2005 08:03 PM
No CPU temperatures with Gkrellm. ACPI? Can I check if it's in the kernel? hotuct23 Linux - Software 3 04-27-2004 10:31 PM
MUCH too heat CPU temprature!! is it ACPI or speedstep? Jefklak Linux - Hardware 8 03-21-2004 10:37 AM
acpi cpu-throttling in a bsd shadowhunter *BSD 0 01-15-2004 10:25 AM
kernel 2.4.20 & acpi-20021212-2.4.20.diff => no /proc/acpi Tinkster Linux - Software 5 03-24-2003 01:56 PM

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

All times are GMT -5. The time now is 11:52 PM.

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