Turn off monitor, wait and THEN suspend/hibernate
Detailed description of the feature. Put as much information as you can.
Proposed Mockups:
To be able to configure monitor going off in a configurable amount of time (30 minutes ideal default, not 15m currently)
Then to wait 5-second delay (also configurable) to give end-user a chance to wake the monitor up before going to sleep.
If not then wait an additional configurable time to go into suspend mode (and not the fixed amount of selections of time settings that is currently used). Suspend mode option gets dimmed if either (or both) of the first two options is not Never
.
If not then wait an additional configurable time to go into hibernate mode (and not the fixed amount of selections of time settings that is currently used). Hibernate mode option gets dimmed if either (or both) of the first two options is not Never
.
Design Tasks
For the GNOME Settings, Power:
-
Add slider for "Monitor Sleep" ranging 1 minute to Never, in logarithmic scale. -
Add slider for "CPU Sleep" ranging 0 seconds to Never, in logarithmic scale. -
Add slider for "Suspend mode" ranging 1 minute to Never, in logarithmic scale. -
Add slider for "Hibernate mode" ranging 1 minute to Never, in logarithmic scale.
Development Tasks
-
development tasks -
Devise a logarithmic slider scale that takes in a name, a start, and an end value. -
Map "Monitor Sleep" slider GUI to the Monitor wakeup in Wayland API -
Map "CPU Sleep" slider GUI to the CPU wakeup OS API -
Map ":Suspend Mode" slider GUI to the Suspend OS API -
Map "Hibernate Mode" slider GUI to the Hiberate OS API
QA Tasks
-
Identify or create a tool that indicates which mode the CPU is in -
test no mode, five minute duration. -
test "Monitor Sleep" only for 1 minute, should not sleep/suspend/hibernate -
test CPU Sleep only for 1 minute, should not suspend/hibernate -
test Suspend Mode only for 1 minute, should not hibernate -
test Hibernate Mode only for 1 minute, should not sleep