From 7363c037d5961dca9ebc6fb6bd163d4221da33cc Mon Sep 17 00:00:00 2001 From: vanhofen Date: Wed, 3 Jan 2024 00:32:57 +0100 Subject: [PATCH] neutrino: ensure a blank screen in standby mode for e4hdu Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/631736cf84e25793240caefb78ed36d80831c829 Author: vanhofen Date: 2024-01-03 (Wed, 03 Jan 2024) Origin message was: ------------------ - neutrino: ensure a blank screen in standby mode for e4hdu --- src/neutrino.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/neutrino.cpp b/src/neutrino.cpp index 05dacd60f..5e5b930a5 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -5042,6 +5042,11 @@ void CNeutrinoApp::standbyMode(bool bOnOff, bool fromDeepStandby) if (FILE *f = fopen("/tmp/.standby", "w")) fclose(f); +#if BOXMODEL_E4HDULTRA + // ensure a blank screen in standby mode + videoDecoder->SetControl(VIDEO_CONTROL_ZAPPING_MODE, 2); // force mutetilllock +#endif + #ifdef ENABLE_GRAPHLCD cGLCD::StandbyMode(true); #endif @@ -5131,6 +5136,12 @@ void CNeutrinoApp::standbyMode(bool bOnOff, bool fromDeepStandby) CVFD::getInstance()->ShowText("Resume ..."); if (cpuFreq) cpuFreq->SetCpuFreq(g_settings.cpufreq * 1000 * 1000); + +#if BOXMODEL_E4HDULTRA + // reset to users choice + videoDecoder->SetControl(VIDEO_CONTROL_ZAPPING_MODE, g_settings.zappingmode); +#endif + videoDecoder->Standby(false); CEpgScan::getInstance()->Stop(); CSectionsdClient::CurrentNextInfo dummy;