LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 05-12-2006, 04:35 AM   #1
-=Graz=-
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Fedora, Slackware, RHEL, AIX, HP-UX
Posts: 358

Rep: Reputation: 31
anyone know how to setup 'ondemand' governor with cpufreq ?


I know how to do this in slackware but not quite sure about Ubuntu =)
i can enable ondemand with /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
my question is:
which startup script can i add a line that 'echo' > 'ondemand' into scaling_governor during boot-up?
Or which is the last script to run in ubuntu before logging in?
am using the standard 5.10 breezy.

OR: If know-one knows can someone recommend a GUI application for Gnome which will allow me to set the governor

Last edited by -=Graz=-; 05-12-2006 at 06:18 AM.
 
Old 05-12-2006, 07:14 PM   #2
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
You have to create the rc.local script.
create /etc/init.d/local, and put only this inside :

#!/bin/sh

Then, type this:
chmod 755 /etc/init.d/local
update-rc.d local start 98 2 3 4 5 .
mkdir /etc/rc.d/
ln -s /etc/init.d/local /etc/rc.d/rc.local
 
Old 05-13-2006, 01:53 AM   #3
-=Graz=-
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Fedora, Slackware, RHEL, AIX, HP-UX
Posts: 358

Original Poster
Rep: Reputation: 31
Hey nice one! =)
Thanks for the info.... i will give this a whirl now, makes sense.

I figured out there is a neat little gnome applet that monitors the cpu speed so i a giving this a go.. Strange thing is the value in /proc/cpuinfo does not seem to change in this build (even after activating 'ondemand' and putting a full load on the CPU.
Another strange thing is that even though 'userspace' is the default governor the cpu monitor in gnome indicates that the speed is increasing/decreasing (much the same as the conservative governor would)... there must be a userspace program controlling this.

Its all good - seems to work quite well actually
 
Old 05-15-2006, 06:21 PM   #4
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
Take a look inside this folder:
/usr/src/linux/Documentation/cpu-freq
You maybe have to install kernel-sources package.
 
  


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
LXer: McGraw-Hill Construction, Oracle's Siebel CRM OnDemand Join Together to Provide a Single Platform to Prospect, Manage and Close More Business LXer Syndicated Linux News 0 04-01-2006 01:24 AM
ondemand powersettings at boot laggerzero Slackware 2 08-29-2005 09:20 PM
lol... what a governor... halo14 General 5 01-16-2005 10:24 PM
Linus Torvalds enters race for California Governor bosewicht Linux - General 2 09-02-2003 12:13 PM
Linus Torvalds enters race for California Governor fancypiper General 10 09-02-2003 12:11 PM

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

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