From 3b02200ee23cb2daa878dffbcb5be0a87fddcbfd Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Sun, 27 May 2018 23:29:39 +0200 Subject: [PATCH] disable CEC standby after flash (armbox) Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/ff875e538a63d06be77ca19099a6955c6eb23491 Author: Jacek Jendrzej Date: 2018-05-27 (Sun, 27 May 2018) --- src/gui/update.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/gui/update.cpp b/src/gui/update.cpp index c05ccb53d..485cc8a26 100644 --- a/src/gui/update.cpp +++ b/src/gui/update.cpp @@ -78,6 +78,11 @@ #include +#if HAVE_ARM_HARDWARE +#include +extern cVideo * videoDecoder; +#endif + //NI softupdate #include @@ -721,8 +726,13 @@ int CFlashUpdate::exec(CMenuTarget* parent, const std::string &actionKey) Neutrino is clearing framebuffer, so ofgwrite's gui is cleared too. */ - if (restart == CMsgBox::mbrYes) + if (restart == CMsgBox::mbrYes){ + if(g_settings.hdmi_cec_standby){ + videoDecoder->SetCECAutoStandby(false); + } + CNeutrinoApp::getInstance()->exec(NULL, "reboot"); + } #endif return menu_return::RETURN_EXIT_ALL; }