
In this article, we will walk you through the process of force-enabling Performance Mode in Ubuntu 22.04. This can be useful when you want to optimize your system for tasks that require more processing power.
To force-enable Performance Mode in Ubuntu 22.04, you can use the cpupower-gui
tool to change the CPU governor to "Performance". This will allow the CPU to run at maximum frequency, optimizing your system for tasks that require more processing power.
Understanding Performance Mode
Before we dive into the steps, it’s important to understand what Performance Mode is. In Ubuntu, the CPU can operate in several modes, including Powersave, On-demand, and Performance. These modes, also known as governors, control how the CPU behaves. The Performance governor allows the CPU to run at maximum frequency, thereby improving the performance of your system.
Installing cpupower-gui
To manage the CPU governors, we will use a tool called cpupower-gui
. This program provides a graphical interface for changing the CPU governor and other settings.
To install cpupower-gui
, open a terminal and run the following command:
sudo apt install cpupower-gui
The sudo
command allows you to run commands with administrative privileges, while apt install
is used to install packages.
Enabling Performance Mode
Once cpupower-gui
is installed, you can launch it by pressing the super key (or Windows key) and typing “cpupower”, or by running the command cpupower-gui
in the terminal.
In the cpupower-gui
interface, you will see a dropdown menu for the scaling governor. Select “Performance” and click on the “Apply” button. This will set the scaling governor to Performance for all CPUs.
Verifying the Changes
To confirm that the changes have been applied, you can check the current scaling governor by running the following command:
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
The cat
command is used to display the contents of files, and in this case, it is used to display the current governor for each CPU. If the changes were successful, the command should return “performance” for all CPUs.
Dealing with Errors
In some cases, you may encounter an error message stating “Performance mode temporarily disabled due to high operating temperature.” This could be due to high CPU temperatures or a false reading.
To force-enable Performance mode despite the error, you can manually set the scaling governor by running the following command:
echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
The echo
command is used to output the text “performance”, and the tee
command is used to write this output to the file specified by /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
.
Setting Performance Mode at Startup
If you want to enable Performance mode automatically at startup, you can create a startup script with the above command. For more details on how to do this, you can refer to this Ask Ubuntu post.
Conclusion
In this article, we have covered how to force-enable Performance mode in Ubuntu 22.04. By following these steps, you can optimize your system for tasks that require more processing power. However, remember to monitor your CPU temperatures to prevent overheating.
Ubuntu 22.04 is the codename for the upcoming release of the Ubuntu operating system, scheduled to be released in April 2022. It is part of the Ubuntu 22.04 LTS (Long Term Support) series, which means it will receive updates and support for a longer period of time compared to non-LTS releases.
Performance Mode allows the CPU to run at its maximum frequency, which means it can perform tasks faster and handle more demanding workloads. This can result in improved performance and responsiveness, especially for tasks that require more processing power, such as gaming, video editing, and compiling software.
Yes, you can enable Performance Mode on any version of Ubuntu that supports the cpupower-gui
tool. However, the steps and commands may vary slightly depending on the specific version and the availability of the cpupower-gui
package in the official repositories.
You can check your CPU temperatures in Ubuntu using various tools, such as lm-sensors
or psensor
. These tools provide real-time monitoring of hardware sensors, including CPU temperatures. You can install them using the package manager (apt
or apt-get
) and then launch them to view the temperature readings.
Forcing Performance Mode despite high operating temperatures can potentially lead to overheating and damage to your CPU. It is generally recommended to monitor your CPU temperatures and ensure they are within safe limits before enabling Performance Mode. If you consistently experience high temperatures, it may be necessary to address any cooling or ventilation issues before enabling Performance Mode.