From f7c16dfe69eb551fa0eb50b8ebcf6f00e23c2bad Mon Sep 17 00:00:00 2001 From: Pete Johanson Date: Tue, 1 Dec 2020 00:52:32 -0500 Subject: refactor(power): Extract activity/idle detection. * Refactor power to extract more general purpose activity detection/events. * Use activity state to implement PM callback. --- app/Kconfig | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'app/Kconfig') 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 -- cgit v1.2.3