Bug 481214 - Power/battery widget in tray doesn't show power profile/brightness properly
Summary: Power/battery widget in tray doesn't show power profile/brightness properly
Status: CLOSED FIXED
Alias: None
Product: Powerdevil
Classification: Plasma
Component: general (show other bugs)
Version: 5.27.10
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 481212 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-02-11 12:37 UTC by Adrian
Modified: 2024-03-18 18:15 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.0
Sentry Crash Report:


Attachments
widget translate (from up to bottom): screen brightness, keyboard brightness, power-profle mode (on widget: power saver is set), battery infos... (490.26 KB, image/png)
2024-02-11 12:37 UTC, Adrian
Details
widget translate (from up to bottom): screen brightness, keyboard brightness, power-profle mode (on widget: power saver is set), battery infos... (378.81 KB, image/png)
2024-02-11 12:40 UTC, Adrian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian 2024-02-11 12:37:03 UTC
Created attachment 165746 [details]
widget translate (from up to bottom): screen brightness, keyboard brightness, power-profle mode (on widget: power saver is set), battery infos...

STEPS TO REPRODUCE
1. n/a

OBSERVED RESULT
Battery status widget show properly battery info (like status of charging, time remaining, percentage, etc...), but after click on settings bar, its don't 'update' its status properly. I mean the settings is changed (example: power profile from power-saver to balanced or screen brightness from 30% to 80%, etc...) but circle on bar is still on the same place. When i changed brightness by keyboard, it works fine (pop-up window shows percentage fine) and when i change power-profile by powerproflesctl, its shows and makes changes ok. Problem is only with widget, with showing current status of settings. 
The same result is when i create new user account and when i clean my own ~/.cache directory. Currently running Wayland, but on X11 is the same issue.

EXPECTED RESULT
Properly showing info (of power-settings, brightness, etc) after click on battery widget.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  Kubuntu 23.10 / 6.5.0-17-generic (64-bit)
(available in About System)
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION
Wayland
Runs on Lenovo T14s (gen1), i5-10210U
Comment 1 Adrian 2024-02-11 12:40:12 UTC
Created attachment 165747 [details]
widget translate (from up to bottom): screen brightness, keyboard brightness, power-profle mode (on widget: power saver is set), battery infos...

Adding better screenshot
Comment 2 Adrian 2024-02-11 12:42:56 UTC
*** Bug 481212 has been marked as a duplicate of this bug. ***
Comment 3 Nate Graham 2024-02-14 20:10:06 UTC
This is all working for me in Plasma 6 where the code of this widget has changed a dun due to being split into two widgets and the backend being partially rewritten. So for now let's call it fixed in Plasma 6. But do feel free to re-open this bug report if you upgrade to Plasma 6 and find that it's not fixed for you yet. Thanks!
Comment 4 Daniel Gibson 2024-03-14 00:03:36 UTC
At this point it will probably surprise no one that the brightness feature of this applet is also still broken in 5.27.10 (and the changelog doesn't look like 5.27.11 changes anything), kinda similar to bugs https://bugs.kde.org/show_bug.cgi?id=471010 and https://bugs.kde.org/show_bug.cgi?id=475255

It's nice that this apparently works in Plasma6, but as the next KUbuntu (24.04, an LTS release even) will unfortunately ship 5.27, that doesn't really help many of your users.

My observations:
- Changing the screen brightness with the slider works, and (unlike the Power Profile slider) the slider even stays at the selected position
- Changing the screen brightness through hotkeys shows the correct brightness percentage on that popup in the middle of the screen, but resets the brightness slider to the initial value after a few seconds (perhaps the value from logging in, definitely not the one last set through that slider! 100% in my case)
- Like in the other two bugs linked above, the DBus messages look correct
Comment 5 Nate Graham 2024-03-14 14:30:28 UTC
Please don't re-open bug reports closed by developers.

I understand it's frustrating to be told that an issue is fixed in a new version of the software that you don't have, but sometimes that's just the way life is.

Unfortunately we lack the resources to maintain the older version as well as the newer one in this case, since the code has changed completely. If there's anyone out there who wants to take on the work of this, they are 100% welcome to, but absent that, I wouldn't expect a fix to materialize for 5.27.
Comment 6 Daniel Gibson 2024-03-15 14:03:23 UTC
I'm sorry, I thought 5.27 was a LTS release.
Comment 7 Nate Graham 2024-03-18 18:15:23 UTC
It is, but LTS doesn't mean every issue is guaranteed to be  fixed, and it certainly doesn't mean that large UI changes or code refactorings that happen to fix issues will be backported.