Bug 436151 - Energy saving in powerdevil has confusing and broken user interface for suspend-then-hibernate
Summary: Energy saving in powerdevil has confusing and broken user interface for suspe...
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_powerdevil (show other bugs)
Version: 5.21.4
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2021-04-25 04:07 UTC by Marian Klein
Modified: 2023-11-01 16:03 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.0


Attachments
powerdevil (263.89 KB, image/png)
2021-04-25 04:08 UTC, Marian Klein
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Klein 2021-04-25 04:07:14 UTC
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
Comment 1 Marian Klein 2021-04-25 04:08:28 UTC
Created attachment 137893 [details]
powerdevil

confusing/broken UI
Comment 2 Marian Klein 2021-04-25 04:13:28 UTC
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
Comment 3 Linus Kardell 2021-06-19 18:42:26 UTC
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.
Comment 4 Nate Graham 2023-11-01 16:03:17 UTC
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.