Steps to reproduce : - plug an external monitor to a laptop - set the power options to not sleep when the lid is closed and an external monitor is plugged - restart the session - there should be a message in the battery applet "Your notebook is configured not to suspend when closing the lid while an external monitor is connected" - set the power options to sleep when the lid is closed even when an external monitor is connected Actual results : - the message is still there Expected results : - the message should be updated when the option is changed
There are two problems with this message. 1. Suppression message change only when loading or change outputs. 2. Suppression message does not know the desired action for lid. But always warns about suspend. Possible needed changes. 1. Need to update "Triggers Lid Action". void HandleButtonEventsConfig::save() if ( m_triggerLidActionWhenExternalMonitorPresent != m_OLDtriggerLidActionWhenExternalMonitorPresent) Q_EMIT triggersLidActionChanged(HandleButtonEvents::triggersLidAction()); 2. Include lidAction in DBus. Display action in message, and display message only if needed. or 2. Change the message, and add m_lidAction != 0 in HandleButtonEvents::triggersLidAction().
Change 1 is too specific, but is just wrong, even as pseudocode.
Can still reproduce in Plasma 6 even with the new Powerdevil KCM and the split Power and Battery applet.
*** Bug 455246 has been marked as a duplicate of this bug. ***