Bug 396433

Summary: add "when you open the laptop lid" in button events handling in energy saving module
Product: [Applications] systemsettings Reporter: pier andre <pier_andreit>
Component: kcm_powerdevilAssignee: Plasma Bugs List <plasma-bugs-null>
Status: REPORTED ---    
Severity: wishlist CC: kde, natalie_clarius, nate
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description pier andre 2018-07-12 10:04:07 UTC
It would be very comfortable to have one more option in energy saving module, beside the existent "when laptop lid is closed" have a "when you open the laptop lid" option with at least two choices "do nothing" and "resume laptop".
I suppose easy to do as I did in my laptop following this: https://wiki.archlinux.org/index.php/laptop#Modify_wake_events

and it could be useful in at least this two cases:
-I leave sometimes the laptop closed, my son open it and leave opened, so the laptop resume and it remains on for hours running out the battery,
-I usually put some paper sheet used to remember to do something between the lid and the keyboard, when I want to read this paper sheet, I have to open the lid, the laptop resume and I have to login and to suspend again.
And also it would complete the cases considered in energy saving module.
Comment 1 Kai Uwe Broulik 2018-07-12 10:06:03 UTC
I don't see how we can influence this, it's the firmware of the laptop waking it back up, isn't it?
Comment 2 Kai Uwe Broulik 2018-07-12 10:16:26 UTC
I guess one could somehow mess around with /proc/acpi/wakeup
Comment 3 pier andre 2018-07-12 13:00:49 UTC
I don't know about the firmware of closing and opening the laptop lid, but, following the instruction in the site:
creating this file:
/etc/tmpfiles.d/disable-lid-wakeup.conf
with into this:
w /proc/acpi/wakeup - - - - LID

has been so simple that I though it was simple as well to introduce an "open lid" option beside the "close lid" one.
Ciao an manythanks :-)