Bug 499233

Summary: Selecting 'Balanced' on 'Power and Battery' widget selects 'powersave' governor
Product: [Plasma] plasmashell Reporter: thisemailisathrowaway
Component: Power and Battery widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: kde, natalie_clarius, nate
Priority: NOR    
Version First Reported In: git-stable-Plasma/6.2   
Target Milestone: 1.0   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description thisemailisathrowaway 2025-01-28 06:24:29 UTC
SUMMARY
When selecting the `Balanced` power profile from the `Power and Battery` widget, it sets the governor to `powersave` instead.

STEPS TO REPRODUCE
1. Go to the 'Power and Battery' widget
2. Select 'Balanced' from the three options ('Power Save', 'Balanced', and 'Performance'
3. `cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor` or `cpupower frequency-info`

OBSERVED RESULT
The `cat` outputs `powersave`. For the option `Power Save`, it outputs `powersave`, and for `Performance`, it outputs `performance` (the latter two are correct).

EXPECTED RESULT
I think `Balanced` is supposed to return `ondemand`, but it definitely isn't supposed to return `powersave`.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Linux 6.12.11-1; KDE Plasma 6.2.5

ADDITIONAL INFORMATION
Desktop; CPU is a Ryzen 7 5800X.
Comment 1 Nate Graham 2025-01-28 16:22:50 UTC
This is an issue with the under-the-hood implementation, which is unfortunately outside of KDE's control.

If the implementation you're using is tuned (which I know Fedora uses by default now, dunno about Manjaro), then it's a known bug which will be fixed with https://github.com/redhat-performance/tuned/pull/732.

If the implementation you're using is power-profiles-daemon, then the issue is in the device firmware shipped by your hardware vendor.
Comment 2 thisemailisathrowaway 2025-01-30 13:27:51 UTC
> If the implementation you're using is power-profiles-daemon, then the issue
> is in the device firmware shipped by your hardware vendor.

Hi, Nate. I appreciate the timely and thorough response. I checked, and I'm indeed on `power-profiles-daemon`. It just struck me as weird because my `energy_performance_available_preferences` are `default`, `performance`, `balance_performance`, `balance_power`, and `power`, so evidently my CPU is exposing two balanced modes.