cosmic-applets/cosmic-applet-battery/src/backend
Pavol Žáčik 726c8288da fix(battery): default to the balanced profile with PPD backend
TuneD provides a compatibility daemon (tuned-ppd) which replaces
power-profiles-daemon in Fedora 41 [1]. However, the new daemon
can report an "unknown" profile in case the user manipulates with
underlying TuneD profiles directly; see [2].

Before this change, the "unknown" profile makes the battery applet
panic. With this change, the applet reports the balanced profile.
This is in line with the behavior of cosmic-settings [3].

[1] https://pagure.io/fesco/issue/3222
[2] https://github.com/redhat-performance/tuned/pull/669
[3] 6f05e9e/cosmic-settings/src/pages/power/backend/mod.rs (L65)
2025-01-24 12:32:43 +01:00
..
mod.rs fix(battery): default to the balanced profile with PPD backend 2025-01-24 12:32:43 +01:00
power_daemon.rs zbus update 2024-05-18 01:38:41 +02:00
power_profiles.rs zbus update 2024-05-18 01:38:41 +02:00