On a system with multiple system trays, if the "Power Management" system tray applet is used to manually disable screen locking, it can't be re-enabled from any system tray other than the one that enabled it. STEPS TO REPRODUCE 1. Create a 2nd default panel with a 2nd system tray (such as on a multi-monitor machine). 2. Expand the 1st system tray. 3. Click the "Power Management" applet. 4. Tick the "Manually block sleep and screen locking" checkbox. 5. Expand the 2nd system tray. 6. Click the "Power Management" applet. 7. Look at the checkbox. OBSERVED RESULT The box in the 2nd applet is not checked. EXPECTED RESULT The box in the 2nd applet should be checked. Screen lock inhibition is session-wide. It should not be necessary to try every screen's panel's systray applet to find the one that is inhibiting the lock. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Fedora 36 KDE Plasma Version: 5.24.5 KDE Frameworks Version: 5.93.0 Qt Version: 5.15.3
*** Bug 473519 has been marked as a duplicate of this bug. ***
*** Bug 470913 has been marked as a duplicate of this bug. ***
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/3294
Git commit de5a5dbf63c5d1fb91c1cf3a3f45553b9cca417b by Natalie Clarius. Committed on 18/09/2023 at 17:04. Pushed by nclarius into branch 'master'. {applets, dataengines}/battery: sync manual inhibition state With the "manually block" switch, up until now instances of the power applet would each request their own inhibition from the fd.o service, so state and toggleability were not synced. To fix this, - handle the cookies for the inhibition requests in the data engine, so each applet would access the same inhibition to undo, - add a listener to changes and a data key for the inhibition status, so applets could show the current state appropriately, - uncouple the switch state from the toggle action, so one instance could request the (un)inhibition while all get their state updated. M +2 -0 applets/batterymonitor/package/contents/ui/PopupDialog.qml M +7 -1 applets/batterymonitor/package/contents/ui/PowerManagementItem.qml M +4 -20 applets/batterymonitor/package/contents/ui/main.qml M +37 -3 dataengines/powermanagement/powermanagementengine.cpp M +1 -0 dataengines/powermanagement/powermanagementengine.h M +4 -6 dataengines/powermanagement/powermanagementjob.cpp M +2 -0 dataengines/powermanagement/powermanagementjob.h M +0 -6 dataengines/powermanagement/powermanagementservice.operations https://invent.kde.org/plasma/plasma-workspace/-/commit/de5a5dbf63c5d1fb91c1cf3a3f45553b9cca417b