cosmic-applets/cosmic-applet-battery/src
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
..
backend fix(battery): default to the balanced profile with PPD backend 2025-01-24 12:32:43 +01:00
app.rs fix(battery): fix brightness slider lag 2024-12-04 16:52:49 +01:00
config.rs chore: add SPDX license identifiers 2024-05-06 21:56:50 +02:00
dgpu.rs update iced 2024-10-31 17:52:33 -04:00
lib.rs battery: Use settings_daemon for display brightness 2024-07-01 20:07:39 -07:00
localize.rs chore: add SPDX license identifiers 2024-05-06 21:56:50 +02:00
main.rs chore: add SPDX license identifiers 2024-05-06 21:56:50 +02:00