SUMMARY Action on lid close (e.g. suspend) is in some cases executed at unexpected times. I noticed 2 different scenarios, they are not the same but I think they are related. a. STEPS TO REPRODUCE 1. in energy options: set to do nothing on lid close and apply 2. close lid and open again (nothing happens, as expected) 3. set to suspend on lid close 4. when I click apply, the computer suspends immediately This should not happen, as the lid close action was set to do nothing while the lid was closed. b. STEPS TO REPRODUCE 1. set use only external display when it is connected in display settings, set to suspend on lid close, but not when external display is connected in energy settings 2. start computer with lid closed and external display connected 3. open and close lid 4. switch off external display (either waiting for the delay in energy options or using 'xset dpms force off') 5. computer suspends as soon as the display is switched off (this does not happen if I do not open and close the lid in step 2) Independent of whether the lid was opened or not, I would expect to always see the same behaviour. Preferrably to leave the computer running, as the display is still physically connected. Is it possible to limit the lid close action to only trigger when the lid was closed not more than a few seconds ago? SOFTWARE/OS VERSIONS Linux/KDE Plasma: Manjaro (available in About System) KDE Plasma Version: 5.17.2 KDE Frameworks Version: 5.63.0 Qt Version: 5.13.1 ADDITIONAL INFORMATION Hardware: Surface Pro 3
I just noticed that my lid is incorrectly reported as open after boot (in /proc/acpi/button/lid/LID0/state) if I don't open and then close it. So case b. might not be related