asusctl profile switching not working well with tuned-ppd

Issue description

When switching profiles with asusctl profile next, it works pretty well with power-profiles-daemon (as in the relevant power profile is selected based on the asusctl profile), but not with tuned-ppd (behaviour is unpredicatable).

Steps to reproduce

  • Simply using tuned-ppd instead of power-profiles-daemon

What is the current bug behavior?

The power profile may switch to the correct one, sometimes it might switch to the wrong one (e.g. Performance when fan profile is set to Balanced), sometimes it just plain doesn't switch at all.

What is the expected correct behavior?

The correct power profile should be selected based on the fan profile, so Performance when power profile is set to performance, etc.

Relevant logs and/or screenshots

Will include a couple screencasts below to properly demonstrate the issue. Please note that I made a script that changes the fan profile and shows an OSD, so pay attention to the OSDs in the center of the screen:

power-profiles-daemon (Correct behaviour):

tuned-ppd (Unexpected behaviour):

System details

  • Distro: Fedora 43 KDE
  • Kernel: 6.18.6-cachyos1.fc43.x86_64
  • Desktop: KDE Plasma
  • Xorg or Wayland: Wayland