From b0a2063d8f60e83a70710276b1edfac6a38b8dd9 Mon Sep 17 00:00:00 2001 From: Mara Huldra Date: Wed, 24 Sep 2025 22:09:57 +0200 Subject: [PATCH] wayland: Inhibit idle in DisplayServerWayland::screen_set_keep_on Without this, the screen does go into idle after a few minutes on a RPi5 with default install (wayland w/ labwc), even though `screen_keep_on` is set. DBUS is enabled but apparently, the screensaver call is not enough. (cherry picked from commit c64ff4b069478021a11dc043c4a5f9c457c48ec7) --- platform/linuxbsd/wayland/display_server_wayland.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/linuxbsd/wayland/display_server_wayland.cpp b/platform/linuxbsd/wayland/display_server_wayland.cpp index c7d12ffaf33..0a1316f1ce3 100644 --- a/platform/linuxbsd/wayland/display_server_wayland.cpp +++ b/platform/linuxbsd/wayland/display_server_wayland.cpp @@ -679,6 +679,8 @@ void DisplayServerWayland::screen_set_keep_on(bool p_enable) { return; } + wayland_thread.window_set_idle_inhibition(MAIN_WINDOW_ID, p_enable); + #ifdef DBUS_ENABLED if (screensaver) { if (p_enable) {