Bug 471931

Summary: org.kde.plasma.battery widget does not work properly on task bar
Product: [Plasma] plasmashell Reporter: qtm4ig
Component: System TrayAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: minor CC: materka, openmindead, rasasi78
Priority: NOR    
Version: 5.27.6   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description qtm4ig 2023-07-04 06:03:07 UTC
On my laptop with kde org.kde.plasma.battery (battery and brightness) widget or tray icon on task bar does not work properly after system boot.
When I try to change power profile or backlight of screen by this widget new value of profile/brightness will be rollbacked to old in this widget but in realy new value of profile/brightness will be saved (I see that new values were applyaed from cli for exaple powerprofilesctl) so kde org.kde.plasma.battery widget does not show realy values, but only last.

If run separate org.kde.plasma.battery with plasmawindowed separate org.kde.plasma.battery works normally and shows real power profile or backlight. If restart user plasma-plasmashell.service kde org.kde.plasma.battery (battery and brightness) widget or tray icon on task bar starts work normally

Operating System: Arch Linux
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.10
Kernel Version: 6.1.37-1-lts (64-bit)
Graphics Platform: Wayland
Processors: 12 × 12th Gen Intel® Core™ i7-1255U
Memory: 15.3 GiB of RAM
Graphics Processor: Mesa Intel® Graphics
Manufacturer: Micro-Star International Co., Ltd.
Product Name: Modern 15 B12M
System Version: REV:1.0
Comment 1 Vladimir Yerilov 2023-08-13 05:26:14 UTC
Can confirm the weird behavior when switching power profiles with widget, and restarting plasma-plasmashell.service works for me too.
Comment 2 Raúl 2023-08-18 11:03:59 UTC
This looks like a dupe of https://bugs.kde.org/show_bug.cgi?id=464996.
By the way, I can confirm that restarting the plasma-plasmashell.service worked for me:

`systemctl restart --user plasma-plasmashell.service`
Comment 3 Raúl 2023-08-18 11:04:41 UTC

*** This bug has been marked as a duplicate of bug 464996 ***