So, I use AIO device and that means this device always plugged in, and I can use performance mode but every time I reboot it auto-set to balance mode. How can I use performance mode permanently?
Asked
Active
Viewed 6,093 times
12
-
Do you mind running a startup command that sets the mode to Performance once user logs in? But it should be from system startup itself. – PRATAP May 25 '21 at 14:57
-
1@UnKNOWn I just dunno what the command I need – Igor Foxly May 26 '21 at 04:43
2 Answers
8
Actually there is an easy way which does not require any compilation or script writing.
Simply put the command powerprofilesctl set performance into your Startup Applications or into a file that will be run during startup.
John
- 163
- 1
- 7
-
-
-
-
-
`powerprofilesctl get` in the terminal or go to `Settings/ Power/ Power Mode` – John Jul 26 '22 at 01:55
2
This link https://gitlab.freedesktop.org/hadess/power-profiles-daemon is providing all the details required for command line.
Installation Steps
git clone https://gitlab.freedesktop.org/hadess/power-profiles-daemon.git
cd power-profiles-daemon
meson _build -Dprefix=/usr
ninja -v -C _build install
to know which profile is active run below command
gdbus introspect --system --dest net.hadess.PowerProfiles --object-path /net/hadess/PowerProfiles
some of the result
interface net.hadess.PowerProfiles {
methods:
signals:
properties:
readwrite s ActiveProfile = 'balanced';
to set the Performance mode run the below command
gdbus call --system --dest net.hadess.PowerProfiles --object-path /net/hadess/PowerProfiles --method org.freedesktop.DBus.Properties.Set 'net.hadess.PowerProfiles' 'ActiveProfile' "<'performance'>"
Available Profiles
- power-saver
- balanced
- performance
Try this command and reboot and see for the persistence. If the profile is changing back to what you dont want, then put the above command in startup command list.
PRATAP
- 21,989
- 8
- 59
- 121
-
1Also, there is another way: I copied your command to set performance mode and wrote easy python code, then I just set it to autoloading by systemD. Works just fine! https://www.fosslinux.com/42796/how-to-auto-execute-linux-startup-scripts-and-commands.htm – Igor Foxly May 26 '21 at 06:56
-
-
the instruction to compile it need stuff installed: cmake, gudev and who knows what else... – Thomas Covenant Sep 11 '21 at 00:56
