Add UI for hybrid suspend mode
ClosedPublic

Authored by strobach on Mar 11 2017, 3:25 PM.

Details

Summary

Add "Hybrid suspend" option to suspend actions and button handler actions.
The action is already supported by Solid.

Diff Detail

Repository
R122 Powerdevil
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
strobach created this revision.Mar 11 2017, 3:25 PM
Restricted Application added a project: Plasma. · View Herald TranscriptMar 11 2017, 3:25 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
broulik accepted this revision.Mar 11 2017, 4:34 PM

Thanks a lot!

Interestingly enough PowerDevil's suspend session action already had a case for hybrid suspend it just wasn't exposed in the UI.

The question is whether we should treat "hybrid suspend" and "suspend" as separate options or just have a global checkbox "[X] When possible use hybrid suspend". I haven't really looked into what hybrid suspend really does (ie. whether it's a replacement/supplement for suspend or hibernate or both). We probably also need options for that on application launcher and logout screens.

This revision is now accepted and ready to land.Mar 11 2017, 4:34 PM

The question is whether we should treat "hybrid suspend" and "suspend" as separate options or just have a global checkbox "[X] When possible use hybrid suspend".

I don't think so. I do, for instance, use the hybrid suspend on battery and regular suspend on AC. Besides, the more flexible the configuration is, the better ;-)

I haven't really looked into what hybrid suspend really does (ie. whether it's a replacement/supplement for suspend or hibernate or both).

It prepares the machine for S4 but enters S3 in the end. The advantage of this mechanism is that if you loose the battery power during S3 sleep, the system later normally boots and resumes as if it was woken from S4 sleep. Disadvantage is slightly longer preparation before entering the suspend mode.

This revision was automatically updated to reflect the committed changes.