From 0a2e736ba52a473fdd43c93b989493a481f12158 Mon Sep 17 00:00:00 2001 From: pelgraine <140762863+pelgraine@users.noreply.github.com> Date: Sat, 25 Jul 2026 16:53:53 +1000 Subject: [PATCH] Max backlight bugfix - light was occasionally still remaining on when the autolockscreen timer activated. Now turning off as it should --- examples/companion_radio/ui-new/UITask.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/companion_radio/ui-new/UITask.cpp b/examples/companion_radio/ui-new/UITask.cpp index 0362c14d..909f44f9 100644 --- a/examples/companion_radio/ui-new/UITask.cpp +++ b/examples/companion_radio/ui-new/UITask.cpp @@ -2656,6 +2656,10 @@ void UITask::lockScreen() { } #if defined(LilyGo_T5S3_EPaper_Pro) board.setBacklight(false); // Save power (T5S3 backlight) +#elif defined(LilyGo_TDeck_Pro_Max) + // MAX: IO41 frontlight stays lit otherwise, burning power behind the + // lock screen. Plain Pro V1.1 has no working frontlight to switch off. + if (board.isBacklightOn()) board.backlightOff(); #endif _next_refresh = 0; // Draw lock screen immediately _auto_off = millis() + 60000; // 60s before display off while locked