Skip to content
forked from konkor/cpufreq

Gnome 3.14+ CPU Frequency Monitor and Governor Manager

Notifications You must be signed in to change notification settings

materemias/cpufreq

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cpufreq

Gnome Shell 3.14+ CPU Frequency Monitor and Governor Manager.

https://extensions.gnome.org/extension/1082/cpufreq/

This is lightweight gnome-extension for CPU scaling monitor and power governor's management. The extension is using standard cpufrequtils (cpupower) package to collect information and manage governors. It's need root permission to able changing governors or install policy for pkexec.

Phoronix Benchmarks

Please install cpufrequtils or cpupower:

  • Debian/Ubuntu
sudo apt-get install cpufrequtils
  • Arch Linux
sudo pacman -S cpupower
  • Fedora
yum install kernel-tools

Features

  • Compatible with old cpufreq tools and modern cpupower;
  • Boost supporting;
  • Utilize userspace and pstate abilities.

Install

Dependencies

  • Gnome Shell >= 3.14+
  • cpufrequtils or cpupower

You need fix executing bit after installation to able to change governors

extensions.gnome.org

cd ~/.local/share/gnome-shell/extensions/cpufreq@konkor
chmod 0755 cpufreqctl

If you want change governors without asking root password each time You need edit user home folder in konkor.cpufreq.policy and install it. Change 'USERNAME' to user's real name.

gedit konkor.cpufreq.policy
sudo cp konkor.cpufreq.policy /usr/share/polkit-1/actions/
sudo chown root:root ~/.local/share/gnome-shell/extensions/cpufreq@konkor/cpufreqctl

From source zip archive

Download zip archive from github page. Run gnome-tweak-tool go to extensions tab, click Install Shell Extension from drive and select master.zip. Restart Gnome shell by pressing Alt-F2 and entering 'r'. Then fix the executing bit and police as described above.

wget https://github.com/konkor/cpufreq/archive/master.zip
gnome-tweak-tool

From git source

git clone https://github.com/konkor/cpufreq
cd cpufreq

Edit user home folder in konkor.cpufreq.policy

gedit konkor.cpufreq.policy

mkdir -p ~/.local/share/gnome-shell/extensions/cpufreq@konkor
cp cpufreqctl extension.js metadata.json konkor.cpufreq.policy ~/.local/share/gnome-shell/extensions/cpufreq@konkor/
chmod 0755 ~/.local/share/gnome-shell/extensions/cpufreq@konkor/cpufreqctl

sudo cp konkor.cpufreq.policy /usr/share/polkit-1/actions/
sudo chown root:root ~/.local/share/gnome-shell/extensions/cpufreq@konkor/cpufreqctl

Last rows are to able change governors without asking super user password when you changing governors from the applet.

Source and packages

How-to disable Intel pstate driver

(default for Intel Sandy Bridge and Ivy Bridge CPUs on kernel 3.9 and upper) To change back to the ACPI driver, reboot and add to the kernel line intel_pstate=disable Then execute modprobe acpi-cpufreq and you should have the ondemand governor available.

You can make the changes permanent by editing /etc/default/grub and adding

GRUB_CMDLINE_LINUX_DEFAULT="intel_pstate=disable"

Then update grub.cfg

sudo update-grub
or
sudo grub-mkconfig -o /boot/grub/grub.cfg

Follow the instructions for Arch kernel module loading and add the acpi-cpufreq module.

About

Gnome 3.14+ CPU Frequency Monitor and Governor Manager

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 87.9%
  • Shell 12.1%