obcpufreq is a tiny program to show/set cpu frequencies via a pipemenu of openbox3.
GPLv2 because most code are ripped from cpufreq-info which is under GPLv2.
- libcpufreq - It might be bundled with cpufrequtils package (or its successor cpupowerutils).
- (optional)
cpufreq-setandsudocommand are required to modify current cpufreq settings.
Make sure you have a header file of libcpufreq, e.g. /usr/include/cpufreq.h
make
Put a shiny new executable obcpufreq into somewhere you like.
It's quite same as other pipe menus.
-
Insert the following xml line within the root menu element
<menu>...</menu>in~/.config/openbox/menu.xml. Don't forget to replace/PATH/TO/obcpufreqof theexecuteattribute with actual path of installedobcpufreq. you can changeid="" label=""part as you wish.<menu id="cpufreq-menu" label="cpu freqs" execute="/PATH/TO/obcpufreq"/> -
If you wish to change cpufreq policy by this menu it will be necessary to allow
sudocommand to invokecpufreq-setcommand without asking password. You can modifycpufreq-setcommand line inMakefile'sCPUFREQ_SETvar.