Use cpupower-gui to change the CPU regulator and frequency on Linux (new release)

cpupower-gui It is a tool that can easily change the CPU speed controller and the CPU frequency limit on Linux.

In addition to changing the CPU regulator and CPU frequency limit, the application also supports:

  • Enable or disable specific CPU cores
  • Switch the CPU controller or configuration file through the command line
  • AppIndicator used to quickly switch the CPU profile (currently the GUI must be running to make the AppIndicator tray icon available)

This Python3 + Gtk3 application has recently been updated to version 0.9.0 (0.9.1 followed to fix some bugs), with new features, such as the ability to quickly switch settings using a custom CPU profile. You can switch between 2 pre-made profiles, Balanced with Performance, Can be accessed from the cpupower-gui user interface, but you cannot change them or create new configuration files from there.

Instead, to create a new configuration file, you must create a text file that contains .profile Suffix (e.g. custom.profile)in /etc/cpupower_gui.d/ If you want it to be available to all users, or in ~/.config/cpupower_gui/ Only for your users.For what this file should contain, see Sample configuration file File and read information from it Here.

Another feature in the latest cpupower-gui release is the ability to apply CPU configuration at boot time or after user login. This function has been implemented as one of two system units, a system (cpupower-gui.service) and a user (cpupower-gui-user.service), and it cannot be accessed from the GUI.To control it, you need to edit the existing /etc/cpupower_gui.conf Configuration file, or add one .conf Archived in /etc/cpupower_gui.d/ Either ~/.config/cpupower_gui/ Override the default behavior.

By default, the cpupower-gui configuration is set to use Balanced The configuration file starts.For example, if you want to apply Performance When the configuration file starts, you need to edit /etc/cpupower_gui.conf A text editor as the root file of the file-in this example, I will use the Nano command line text editor to open the file:

sudo nano /etc/cpupower_gui.conf

Change in this file profile=Balanced to profile=Performance And save the file.To save the file using the Nano text editor, press Ctrl + xAnd enter y then press Enter.

You will find another option in this configuration file: allcpus_default,Set as False default.This option controls the default state To All CPUs Switch from the application GUI.

You might also like: auto-cpufreq is a new CPU speed and power optimizer for Linux

More enhancements in cpupower-gui 0.9.0 / 0.9.1:

  • Support Intel’s P-state driver and energy performance preferences (when using the intel_pstate driver, you can select the energy profile)
  • The mark on the slider indicates the frequency step (if any)
  • Store parameter changes for each CPU, so changes can be applied immediately
  • The CPU whose parameter is changed in red
  • The CPU whose parameter is changed in red

For the future, I hope that developers can use all these new features directly from the GUI. I want to say that the user interface also needs improvement. Apart from that, this is a much-needed application, especially because it can work in any desktop environment, which is different from some other solutions (such as GNOME Shell extension).

Download cpupower-gui

The application can be installed from the official repositories of many Linux distributions, including Debian Testing and Unstable, Ubuntu 20.04 and 20.10, Kali Linux, OpenMandriva Rllling and Cooker, Rasbian Testing, etc.

In most cases, it has not been updated to the latest version. If you want to use new features, such as the function of applying the CPU profile at startup and the function of using the new profile function, make sure to install the latest 0.9.1 version. If you do not have this library in your Linux distribution library, please refer to the third-party library listed on the cpupower-gui page, which can be used for Arch Linux / Manjaro (AUR), Debian / Ubuntu And derivatives, Fedora, And more. If you are using Ubuntu 20.10, you can get the Ubuntu 20.04 binary file-this is the binary file I use now, and it can be used normally.


Related Posts