You are not logged in.
Pages: 1
Hi there,
Hope this is the right place to post this question....
I'm using Debian Wheezy with GNOME Shell at work and a got use to a little extension to set the cpu governor.
Is there something like that in openbox or does anybody know a good other way? to quickly modify the cpu governor?
Thankfull for any suggestions..
Offline
Well, bind icons in a dock or entries in a menu to a script that sets the frequency using the cpufrequtils, or use the terminal like I do it:
I wrote this Bash completion for cpufreq-set (from the cpufrequtils package): https://github.com/2ion/scripts/blob/ma … pletion.sh. It will auto-detect and complete the frequency scaling steps of your CPU and the available governors to I just enter 'cpufreq-set -u 16*tab*' and it will complete to 'cpufreq-set -u 1650000' meaning "set the upper frequency bound to 1.65Ghz". Same for the -g (governor flag) and others. Just read the script ;D
Note that when you use the cpufreq-* commands for setting something, they need to be run as root. I use the following entry in /etc/sudoers to allow launching them passwordless with sudo:
$myusername ALL = NOPASSWD: /usr/bin/cpufreq-set
Alternatively, you could make the binary SUID but personally, I wouldn't advise that.
Offline
...i'd like to add: you could hack yourself a quick script to toggle your most-used frequencies, and add it to tint2, so you have a "button".
conky would give feedback about the current frquency.
the most important bit is editing /etc/sudoers as mentioned above!
Offline
Use package https://packages.debian.org/cpufrequtils . You can configure it in /etc/default/cpufrequtils . I think cpufreq-set from the same package is not persistent. Use "sudo -s" to change to root or the sudoers-alternative.
Last edited by uname (2014-09-24 06:54:27)
Offline
Use package https://packages.debian.org/cpufrequtils . You can configure it in /etc/default/cpufrequtils . I think cpufreq-set from the same package is not persistent. Use "sudo -s" to change to root or the sudoers-alternative.
True that it's not persistent, but neither is the defaults file, since at boot time the settings will be re-set to the specified values, unless you use a configuration script that uses both the CLI command for setting the frequency at run time and rewrite the configuration script for setting the governor at boot time.
Last edited by twoion (2014-09-24 10:09:35)
Offline
Thanks for all the suggestions!
I think i will make a script and add it to the menu.
I googled for a while but could not find a solution to but a button into tint2, does anybody know how, just out of curiosity.
Offline
Thanks for all the suggestions!
I think i will make a script and add it to the menu.
I googled for a while but could not find a solution to but a button into tint2, does anybody know how, just out of curiosity.
Search for tint2 launcher. You may also be able to modify this method: Simple "Start" menu button for tint2
BunsenLabs Group on deviantArt
damo's gallery on deviantArt
Openbox themes
Forum Moderator
Offline
https://code.google.com/p/tint2/wiki/Configure
(it's called "Launcher", not "Button")
Offline
Pages: 1
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat