Bug 413936 - Lid close action is executed at unexpected times.
Summary: Lid close action is executed at unexpected times.
Status: REPORTED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Power management & brightness (show other bugs)
Version: 6.2.4
Platform: Manjaro Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-08 09:23 UTC by Benjamin
Modified: 2024-12-18 21:40 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin 2019-11-08 09:23:40 UTC
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
Comment 1 Benjamin 2019-11-09 06:18:02 UTC
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