How To Install power-profiles-daemon on Ubuntu 22.04
Introduction
In this tutorial we learn how to install power-profiles-daemon
on Ubuntu 22.04.
What is power-profiles-daemon
power-profiles-daemon is:
power-profiles-daemon offers to modify system behaviour based upon user-selected power profiles. There are 3 different power profiles, a “balanced” default mode, a “power-saver” mode, as well as a “performance” mode. The first 2 of those are available on every system. The “performance” mode is only available on select systems and is implemented by different “drivers” based on the system or systems it targets.
In addition to those 2 or 3 modes (depending on the system), “actions” can be hooked up to change the behaviour of a particular device. For example, this can be used to disable the fast-charging for some USB devices when in power-saver mode.
Note that power-profiles-daemon does not save the currently active profile across system restarts and will always start with the “balanced” profile selected.
There are three methods to install power-profiles-daemon
on Ubuntu 22.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install power-profiles-daemon Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install power-profiles-daemon
using apt-get
by running the following command:
sudo apt-get -y install power-profiles-daemon
Install power-profiles-daemon Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install power-profiles-daemon
using apt
by running the following command:
sudo apt -y install power-profiles-daemon
Install power-profiles-daemon Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install power-profiles-daemon
using aptitude
by running the following command:
sudo aptitude -y install power-profiles-daemon
How To Uninstall power-profiles-daemon on Ubuntu 22.04
To uninstall only the power-profiles-daemon
package we can use the following command:
sudo apt-get remove power-profiles-daemon
Uninstall power-profiles-daemon And Its Dependencies
To uninstall power-profiles-daemon
and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove power-profiles-daemon
Remove power-profiles-daemon Configurations and Data
To remove power-profiles-daemon
configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge power-profiles-daemon
Remove power-profiles-daemon configuration, data, and all of its dependencies
We can use the following command to remove power-profiles-daemon
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge power-profiles-daemon
References
Summary
In this tutorial we learn how to install power-profiles-daemon
package on Ubuntu 22.04 using different package management tools: apt
, apt-get
and aptitude
.