From a267bb3a1d74f2f3f4751056afe170a0c72b26dd Mon Sep 17 00:00:00 2001 From: Cameron Fleming Date: Sat, 4 Jan 2025 22:22:29 +0000 Subject: [PATCH] fix: only attempt to wake the display if it's off --- display.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/display.go b/display.go index ebf6533..578f3b0 100644 --- a/display.go +++ b/display.go @@ -151,6 +151,10 @@ func displayTimeoutTick() { // wakeDisplay sets the display brightness back to config.DisplayMaxBrightness and stores the time the display // last woke, ready for displayTimeoutTick to put the display back in the dim/off states. func wakeDisplay() { + if backlightState == 0 { + return + } + if config.DisplayMaxBrightness == 0 { config.DisplayMaxBrightness = 100 }