vagnum08 / cpupower-gui

cpupower-gui is a graphical program that is used to change the scaling frequency limits of the cpu, similar to cpupower.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fails to load configuration during boot

r4jk3 opened this issue · comments

commented

Problem
I've created a profile within cpupower-gui and everything seem to be working OK in current session. After i rebooted machine i received message that cpupower-gui failed to set profile.

To Reproduce
Steps to reproduce the behaviour:

  1. Create new profile configuration, apply settings.
  2. Reboot PC
  3. During boot an error message will occur(you need to be fast to see it it will disappear quickly): Failed to start Apply cpupower-gui configt at boot.
  4. After booting into system, start cpupower-gui application again and see frequencies and profile (validate if that's the one you have set in previous session).

Expected behaviour
To boot without error message and to have my cpu frequencies saved afterwards.

Setup

  • Distro: Manjaro
  • Package version: 1.0.0-2
  • Installed via: Pamac / AUR repo

Additional context
To check failed services during boot use systemctl command.

Hi, is it possible to send me the output of systemctl when the program has failed?

Could you please post the output of systemctl status cpupower-gui.service too.

Same Problem:

cpupower-gui 1.0.0-2
Kernel:  5.10.0-1-MANJARO
Processor: AMD Ryzen 9 5950X 16-Core Processor
Operating System: Manjaro Linux
● cpupower-gui.service - Apply cpupower-gui config at boot
     Loaded: loaded (/usr/lib/systemd/system/cpupower-gui.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Sun 2020-12-27 13:41:33 MST; 4min 0s ago
       Docs: https://github.com/vagnum08/cpupower-gui
             man:cpupower-gui(1)
    Process: 29930 ExecStart=/usr/bin/cpupower-gui config (code=exited, status=255/EXCEPTION)
   Main PID: 29930 (code=exited, status=255/EXCEPTION)

Dec 27 13:41:33 linux-workstation systemd[1]: Starting Apply cpupower-gui config at boot...
Dec 27 13:41:33 linux-workstation cpupower-gui[29930]: Applying configuration...
Dec 27 13:41:33 linux-workstation systemd[1]: cpupower-gui.service: Main process exited, code=exited, status=255/EXCEPTION

I will have a proper look in the next few days.

It's working for me on Manjaro 5.10.7-3! Basically I did the setup via command-line and don't use "custom" configs... I tried the default "Balanced" and "Performance" profiles - both are working. My Kernel is 5.10.

But things I do consider:

  1. I want have tray-icon in addition - so I can switch to "performance" if necessary (plasma + xfce), without a annoying window popup
  2. I miss a right-click entry in the tray to open the window
  3. If I tab out the window, this is annoying too, because it's not registered as an window app and u have to search or open the app again.
  4. The GUI states "default profile to apply on boot" (performance) in the preferences - this is actually wrong - its not loaded anytime: not after installation and startup, changing the setting in the GUI or after enabling the systemd-service - its always the main config (didn't tried custom configs and profiles)
  5. In KDE two Buttons are empty (no logo): "refresh" and "all cpus"
  6. A option and cmd config opportunity that applies to all cpus would be awesome (Frequency settings.
  7. "Governor policy" and "Energy preference" are only set able in the GUI under Power settings? (and do not display "wrong combos" in addition, and after selecting display a "warning")
  8. Add options in addition to "apply" -> "Save for all users" and "Save" (local user)
  9. Add some user-friendly infos if u hover over the options (and maybe some links in the "about window"

I think it's fit a bit in here and thanks for the hard-work so far. Best regards

P.S. maybe Microcode is an thing to add to dependencies? (https://wiki.archlinux.org/index.php/Microcode)

The apply on boot configuration option of the GUI is only working during login instead of boot (and only on a few desktop environments, e.g. Gnome).
The manual configuration however should work at boot as long as the cpupower-gui.service is enabled.

I am working on fine tuning the configuration during boot and the GUI.

Thanks @elgorro for the suggestions.

  1. The tray icon should work if you have libappindicator installed.
  2. There is an option to switch to performance or balanced profile from the tray icon.

For 5, that is depended on the icon theme.
For 7, you can set the governor policy and energy preference through the command line. There is an example in the README file (hint cpupower-gui ene --pref default).

For 8,9 I will look into them.

I made a "Schedutil" profile that applies the schedutil governor to every core. I set it as the profile to be applied at startup. The systemctl status output doesn't indicate any problems or crashes, the service seemingly does its job at terminates, except for some reason it thinks that "its job" is to set every core's governor to something called "Powersave" instead of "schedutil". When I launch cpupower-gui after boot, it shows that every core is using the "Conservative" governor. I can't find a way to make it apply the schedutil governor at startup.

$ systemctl status cpupower-gui.service 
○ cpupower-gui.service - Apply cpupower-gui config at boot
     Loaded: loaded (/usr/lib/systemd/system/cpupower-gui.service; enabled; vendor preset: disabled)
     Active: inactive (dead) since Sun 2021-08-15 17:57:46 CEST; 1min 5s ago
       Docs: https://github.com/vagnum08/cpupower-gui
             man:cpupower-gui(1)
    Process: 829 ExecStart=/usr/bin/cpupower-gui config (code=exited, status=0/SUCCESS)
   Main PID: 829 (code=exited, status=0/SUCCESS)
        CPU: 218ms

sie 15 17:57:46 tytan cpupower-gui[829]:     Minimum Frequency: 1400.0 MHz, Maximum Frequency: 3500.0 MHz
sie 15 17:57:46 tytan cpupower-gui[829]:     Governor: Powersave, Online: True
sie 15 17:57:46 tytan cpupower-gui[829]: Setting CPU: 6
sie 15 17:57:46 tytan cpupower-gui[829]:     Minimum Frequency: 1400.0 MHz, Maximum Frequency: 3500.0 MHz
sie 15 17:57:46 tytan cpupower-gui[829]:     Governor: Powersave, Online: True
sie 15 17:57:46 tytan cpupower-gui[829]: Setting CPU: 7
sie 15 17:57:46 tytan cpupower-gui[829]:     Minimum Frequency: 1400.0 MHz, Maximum Frequency: 3500.0 MHz
sie 15 17:57:46 tytan cpupower-gui[829]:     Governor: Powersave, Online: True
sie 15 17:57:46 tytan systemd[1]: cpupower-gui.service: Deactivated successfully.
sie 15 17:57:46 tytan systemd[1]: Finished Apply cpupower-gui config at boot.

I made a "Schedutil" profile that applies the schedutil governor to every core. I set it as the profile to be applied at startup. The systemctl status output doesn't indicate any problems or crashes, the service seemingly does its job at terminates, except for some reason it thinks that "its job" is to set every core's governor to something called "Powersave" instead of "schedutil". When I launch cpupower-gui after boot, it shows that every core is using the "Conservative" governor. I can't find a way to make it apply the schedutil governor at startup.

It's really strange. What's the cpupower-gui version you're using now?
The merged commit #54 has provide 'schedutil' as default 'Balanced' profile if 'schedutil' governor is available and not need to via config to apply the change you want.
But the system service only apply root config on startup, if you want to apply user config from gui, you should enable the user service as follows:

systemctl --user enable cpupower-gui-user.service
commented

The apply on boot configuration option of the GUI is only working during login instead of boot (and only on a few desktop environments, e.g. Gnome). The manual configuration however should work at boot as long as the cpupower-gui.service is enabled.

because running it as root returns error code 255, I just had to disable this service and the user one works okay