Power devil user interface is confusing. I am using Kubuntu 21.04 systemctl / systemd underlying system (backend) Go to Energy saving/On battery. 0) Hybrid sleep is never working. 1) The checkbox "While asleep, hibernate after a period of inactivity." with indentation under Suspend session makes sense only when sleep is selected in the list for Suspend session. It is ignored for other choices. Consider adding a new item to the list "sleep+hibernate" instead. 2) This checkbox in 1) also affects functionality under "Button events handling" again when "sleep" is selected in the list. It is not clear from UI it should. Consider repeating checkbox under "Button events handling" or adding a new item to the list "Sleep+hibernate" 3) it is not clear after how long period of inactivity hibernate should follow. Either display read-only (non-editable) value from `cat /etc/systemd/sleep.conf | grep HibernateDelaySec` with some information/help to point user to the configuration file. or add input field to specify the time and update the config file. Linux/KDE Plasma: kubuntu 21.04 KDE Plasma Version: 5.21.4 KDE Frameworks Version: 5.80.0-0ubuntu1 Qt Version: 5.15.2+dfsg-5 ADDITIONAL INFORMATION
Created attachment 137893 [details] powerdevil confusing/broken UI
If the UI is not self-contained and relies on other configuration elsewhere, please educate user (with Info message in dialog) where to look. Educate user he should look at config /etc/systemd/logind.conf For example for the point 2) "Button events handling" I have marian@HPSpectre:~$ cat /etc/systemd/logind.conf | grep HandleLidSwitch HandleLidSwitch=suspend-then-hibernate #HandleLidSwitchExternalPower=suspend #HandleLidSwitchDocked=ignore
Worse, even though AFAIK the "hibernate after a period of inactivity" affects suspend on lid close, it doesn't seem like you can enable the checkbox unless automatic suspend is enabled (if you check it and then leave the return, it's unchecked again). Thus, you can't used suspend-then-hibernate on lid close unless you also have automatic suspend enabled.
This is fixed by Jakob Petsovits with https://invent.kde.org/plasma/powerdevil/-/commit/8babe3530c32feb60e982eccd92fe2341091858d in Plasma 6, which re-does the entire UI and doesn't suffer from this issue anymore.