GithubHelp home page GithubHelp logo

materemias / cpufreq Goto Github PK

View Code? Open in Web Editor NEW

This project forked from konkor/cpufreq

0.0 1.0 0.0 75 KB

Gnome 3.14+ CPU Frequency Monitor and Governor Manager

Shell 12.08% JavaScript 87.92%

cpufreq's Introduction

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.

cpufreq's People

Contributors

konkor avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.