From 80f6b06c7c041d986aa4eebb212622dc21001d4b Mon Sep 17 00:00:00 2001 From: vanhofen Date: Mon, 31 May 2021 01:47:18 +0200 Subject: [PATCH] multiboxse: fix display Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/52c21efc84e1ebb2c90d70329be0d1fda98ddaea Author: vanhofen Date: 2021-05-31 (Mon, 31 May 2021) Origin message was: ------------------ - multiboxse: fix display --- src/driver/simple_display.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/driver/simple_display.cpp b/src/driver/simple_display.cpp index d4de29b7b..3e3f686e6 100644 --- a/src/driver/simple_display.cpp +++ b/src/driver/simple_display.cpp @@ -53,7 +53,11 @@ static bool timer_icon = false; #endif #if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE +#if BOXMODEL_MULTIBOXSE +#define DISPLAY_DEV "/dev/null" +#else #define DISPLAY_DEV "/dev/dbox/oled0" +#endif #include static bool usb_icon = false; static bool timer_icon = false; @@ -468,6 +472,8 @@ void CLCD::setMode(const MODES m, const char * const title) mode = m; setlcdparameter(); + if ((g_info.hw_caps->display_type == HW_DISPLAY_NONE) && file_exists("/proc/stb/power/powerled")) + proc_put("/proc/stb/power/powerled", "on"); proc_put("/proc/stb/lcd/show_symbols", true); switch (m) { case MODE_TVRADIO: @@ -488,6 +494,8 @@ void CLCD::setMode(const MODES m, const char * const title) case MODE_SHUTDOWN: showclock = false; Clear(); + if ((g_info.hw_caps->display_type == HW_DISPLAY_NONE) && file_exists("/proc/stb/power/powerled")) + proc_put("/proc/stb/power/powerled", "off"); proc_put("/proc/stb/lcd/show_symbols", false); break; case MODE_STANDBY: @@ -497,6 +505,8 @@ void CLCD::setMode(const MODES m, const char * const title) setled(0, 1); showclock = true; showTime(true); + if ((g_info.hw_caps->display_type == HW_DISPLAY_NONE) && file_exists("/proc/stb/power/powerled")) + proc_put("/proc/stb/power/powerled", "off"); proc_put("/proc/stb/lcd/show_symbols", false); timeout_cnt = 0; break;