12

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?

This what I talk about

Igor Foxly
  • 419
  • 1
  • 6
  • 17

2 Answers2

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
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

  1. power-saver
  2. balanced
  3. 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
  • 1
    Also, 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
  • would be nice to have that python script published. – Thomas Covenant Sep 11 '21 at 00:52
  • the instruction to compile it need stuff installed: cmake, gudev and who knows what else... – Thomas Covenant Sep 11 '21 at 00:56