BredOS ships by default the tool govctl
with the package bredos-govctl
.
It is enabled by default and will set the performance according to available battery power.
sudo pacman -S bredos-govctl
The tool will continuously set the governor to the specified settings, overrides or other tools will not function.
sudo pacman -R bredos-govctl
GovCtl will by default ensure maximum performance across all attached devices, if there is no onboard battery, or the system is plugged in.
If the system holds sufficient charge, but it's not plugged in, it'll maintain most of the performance, limiting GPU speed and cpu boost.
If the system does not have a sufficient charge (20% is the default threshold for this determination), it will minimize power consumption, at the expense of performance and response time.
This for example will make RK3588 boards only run at 300mHz.
If you do not like the defaults, they can all be changed.
govctl
, root access is not required.govctl
---------------------------------------
Currently applied governor: performance
---------------------------------------
usage: govctl [-h] [-g {powersave,conservative,performance}]
[-b {powersave,conservative,performance}] [-e] [-d]
[-p POWERSAVE_PERCENT]
Governor configuration tool
options:
-h, --help show this help message and exit
-g, --set-governor {powersave,conservative,performance}
Set desired governor
-b, --set-battery-governor {powersave,conservative,performance}
Set desired governor while running on battery power
-e, --enable-battery-detection
Enable battery state detection
-d, --disable-battery-detection
Disable battery state detection
-p, --powersave-percent POWERSAVE_PERCENT
Percentage at which powersave triggers
As the help menu states, using option -p
will allow you to reconfigure the point at which the governor powersave
will be applied at. By default this is 20%, and can be set to be 1% to 80%.
sudo govctl -p 30
This would set it to trigger at 30%.
By default, when plugged in or no batteries are present, the system will maintain maximum performance.
-g
sets the governor used when plugged in. If you want it to be conservative
while your system is running off of power run:sudo govctl -g conservative
-b
sets the governor used when NOT plugged in. If you want it to be performance
while your system is running off of battery run:sudo govctl -b performance
sudo govctl -d
This will ensure that the "plugged in" governor is applied at all times.
sudo govctl -e