LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 03-30-2004, 03:05 PM   #1
spyderusa11
Member
 
Registered: Jun 2003
Location: Florida
Distribution: Fedora Core 1
Posts: 71

Rep: Reputation: 15
/proc/cpufreq and throttling


I'm running Fedora Core 1 with the basic FC1 kernel (2.4.22-1.2174.nptl). My computer has a P4-M so it uses Speedstep (in Windows). I was reading up on throttling in Linux and from what I found you can either use ACPI (which isn't built into this kernel) or cpufreq. I have a cpufreq file in /proc but its contents are as follows:

minimum CPU frequency - maximum CPU frequency - policy

That's it... there's no values or anything. I tried using cpudyn but it didn't work because that file didn't have the right information or something. I'm not supposed to manually edit this file, am I? Anybody have any suggestions?

Thanks,
Mike
 
Old 03-30-2004, 03:27 PM   #2
JayCnrs
Member
 
Registered: Mar 2003
Location: Winnipeg
Distribution: Suse 9.3 Pro
Posts: 404

Rep: Reputation: 30
Actually ACPI is built into the kernel:
become root
cd /boot/grub/grub.conf
then edit this line: kernel /vmlinuz-2.4.22-1.2174.nptl ro root=LABEL=/ hdc=ide-scsi acpi=on
now when you reboot acpi will be enabled.


Then to throttle the cpu you would have to go to /proc/acpi/processor/CPU0
Then issue the command cat throttling see what it says.

You can change the throttling by eg: echo 2 > throttling and this will throttle your cpu.

You might also want to have a read here: http://www.linux.org/docs/ldp/howto/...usingacpi.html

HTH
 
Old 03-30-2004, 06:00 PM   #3
spyderusa11
Member
 
Registered: Jun 2003
Location: Florida
Distribution: Fedora Core 1
Posts: 71

Original Poster
Rep: Reputation: 15
cool, thanks. so i enabled acpi and now i have all these things in /proci/acpi... so now you were saying i could enable throttling by running "echo 2 > throttling" but i havent done that just yet... in /proc/acpi/processor/CPU0 i have a file called performance and it says theres 2 performance states, P0 and P1... P0 being 1700 MHz and P1 being 1200 MHz... i don't anything about echo so how would i go about using that to change from P0 to P1?

Thanks,
Mike
 
Old 03-30-2004, 08:00 PM   #4
JayCnrs
Member
 
Registered: Mar 2003
Location: Winnipeg
Distribution: Suse 9.3 Pro
Posts: 404

Rep: Reputation: 30
I'm not familiar with the performance since my laptop doesn't inculde it but you would use the same command as throttling

echo 1 > performance

That should do it, I did finally remember the site I came by before take a look here:

http://acpi.sourceforge.net/documentation/index.html

Enjoy !
 
Old 03-31-2004, 01:49 AM   #5
fblanadet
LQ Newbie
 
Registered: Mar 2004
Distribution: SuSE 8.2, 9.0
Posts: 1

Rep: Reputation: 0
cpudyn

Try this link, I hope it will help you:

http://bulma.net/body.phtml?nIdNoticia=1946

Fred.
 
Old 03-31-2004, 04:09 PM   #6
spyderusa11
Member
 
Registered: Jun 2003
Location: Florida
Distribution: Fedora Core 1
Posts: 71

Original Poster
Rep: Reputation: 15
Thanks for all the help. I went to some of those sites and messed around with a few things, but for the most part I found out KLaptop can be used to change the processor frequency so I'm just using that. But I have been having fun turning on the fans manually... :-P

Mike
 
Old 04-01-2004, 02:38 PM   #7
spyderusa11
Member
 
Registered: Jun 2003
Location: Florida
Distribution: Fedora Core 1
Posts: 71

Original Poster
Rep: Reputation: 15
Ok, well I don't know what I did, but now I can't get my computer to run at full speed when on battery. It's grayed out in KLaptop and when i do "echo 0 > performance" in /proc/acpi/processors/CPU0 it doesn't do anything. Any ideas?

Mike
 
Old 04-01-2004, 04:36 PM   #8
JayCnrs
Member
 
Registered: Mar 2003
Location: Winnipeg
Distribution: Suse 9.3 Pro
Posts: 404

Rep: Reputation: 30
Did you try plugging the laptop back in? If so then were you able to get 100%, if so your bios may automatically throttle the laptop back when running on battery.
 
Old 04-01-2004, 06:36 PM   #9
spyderusa11
Member
 
Registered: Jun 2003
Location: Florida
Distribution: Fedora Core 1
Posts: 71

Original Poster
Rep: Reputation: 15
This thing is all screwy. I shut it down (unplugged) to go to class and turned it back on (unplugged) when I got home. Now it's allowing me to change between 1.7 and 1.2 GHz... weird.

Mike
 
  


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
Correlation between /proc/devices and /proc/modules ColinLadyka Linux - General 1 02-13-2006 05:25 PM
Bandwidth Throttling... dolvmin Linux - Networking 3 09-21-2004 08:56 AM
Proc throttling on Athlon XP-M / Mandrake 10 Entropius Linux - Laptop and Netbook 3 08-24-2004 11:59 PM
2.6 Kernel on Dell 5150, cpufreq throttling issues Neo8234 Linux - Software 2 02-09-2004 06:43 PM
Bandwidth Throttling bg_27 *BSD 3 07-22-2003 08:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

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