diff options
author | Pete Johanson <peter@peterjohanson.com> | 2020-12-01 00:52:32 -0500 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2020-12-14 15:31:10 -0500 |
commit | f7c16dfe69eb551fa0eb50b8ebcf6f00e23c2bad (patch) | |
tree | 4deae4fc19973e64cc7d3bb0322e384d42608432 /app/Kconfig | |
parent | 8a529163fcabf7e63aa79e2116b96763039cfdca (diff) |
refactor(power): Extract activity/idle detection.
* Refactor power to extract more general purpose
activity detection/events.
* Use activity state to implement PM callback.
Diffstat (limited to 'app/Kconfig')
-rw-r--r-- | app/Kconfig | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/Kconfig b/app/Kconfig index fc7f289..ec043bf 100644 --- a/app/Kconfig +++ b/app/Kconfig @@ -228,6 +228,10 @@ endmenu menu "Power Management" +config ZMK_IDLE_TIMEOUT + int "Milliseconds of inactivity before entering idle state (OLED shutoff, etc)" + default 30000 + config ZMK_SLEEP bool "Enable deep sleep support" imply USB @@ -242,7 +246,7 @@ choice SYS_PM_POLICY endchoice config ZMK_IDLE_SLEEP_TIMEOUT - int "Milliseconds to wait to sleep when going idle" + int "Milliseconds of inactivity before entering deep sleep" default 900000 #ZMK_SLEEP |