LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
LinkBack Search this Thread
Old 04-17-2012, 04:56 PM   #1
Bill Gates 666
Member
 
Registered: Dec 2003
Location: Cambridge
Distribution: Arch
Posts: 66

Rep: Reputation: 22
Question KDE Power Profile scripts : Command Line=YES System Settings=FAIL


Hi

I was just messing about with my Linux-Mint KDE (Kubuntu 11.10) install. I've got KDE 4.8.2 installed from the backports. Running on my dual core 2.67Ghz Core 2 Duo laptop (which has CPU frequency steps of 800Mhz, 1600Mhz, 2130Mhz and 2670Mhz).

Anyway I've tried to add some simple scripts to my power profiles (basically these change the upper frequency limit for CPU scaling, for each core, with the on-demand governor):
Code:
/usr/local/sbin/ $  ls -Ahl
-rwxr-xr-x 1 root root 85 2012-04-17 21:52 cpufreq_highperformance.sh
-rwxr-xr-x 1 root root 82 2012-04-17 21:51 cpufreq_lowperformance.sh
-rwxr-xr-x 1 root root 82 2012-04-17 21:52 cpufreq_mediumperformance.sh
/usr/local/sbin/ $  cat cpufreq_lowperformance.sh
sudo /usr/bin/cpufreq-set -c 0 -u 1.6Ghz
sudo /usr/bin/cpufreq-set -c 1 -u 1.6Ghz
...
Following the ARCH wiki I've carefully added my user to a custom sudor's file to ensure that I can run /usr/bin/cpufreq-set with sudo - without needing a password.

On the command line I can type:
Code:
/usr/local/sbin/cpufreq_lowperformance.sh
which works - no sudo password required.

However adding this command to the script run box in KDE / System Settings / Power Management / Energy Saving Settings / On AC Power & On Battery Power does nothing very much at all. The cpufreq-info command shows the same upper CPU frequency (for each core) as before. The rest of the profile settings are loaded and I can see the tray notification for the change from AC power to battery...

Any thoughts?
Mr Gates
 
  


Reply

Tags
bash scripting, cpufreqd, kde, powermanagement


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing GNOME Power Manager Settings from the command line KonfuseKitty Linux - General 2 06-21-2011 07:19 AM
[QUESTION] Changing gnome-terminal profile from command line kamil_blue Linux - Desktop 1 12-31-2009 12:43 AM
USB tar backups fail in cron, not from command line StikShift Linux - General 5 03-10-2008 05:54 PM
detecting a power fail and best file system for this. knobby67 Programming 3 02-06-2007 02:23 PM
Change kde theme & wallpaper from command line or start scripts? JHuizingh Linux - Software 2 12-11-2003 06:44 PM


All times are GMT -5. The time now is 04:51 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration