mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
neutrino: add feedback when entering or leaving standby
Leaving standby can take a few seconds until HDMI is reinitialized, the frontend is tuned etc. Add feedback on a frontpanel display to show that the box is alive.
This commit is contained in:
@@ -3184,6 +3184,7 @@ void CNeutrinoApp::standbyMode( bool bOnOff, bool fromDeepStandby )
|
|||||||
INFO("%s", bOnOff ? "ON" : "OFF" );
|
INFO("%s", bOnOff ? "ON" : "OFF" );
|
||||||
|
|
||||||
if( bOnOff ) {
|
if( bOnOff ) {
|
||||||
|
CVFD::getInstance()->ShowText("standby... ");
|
||||||
if( mode == mode_scart ) {
|
if( mode == mode_scart ) {
|
||||||
//g_Controld->setScartMode( 0 );
|
//g_Controld->setScartMode( 0 );
|
||||||
}
|
}
|
||||||
@@ -3253,6 +3254,8 @@ void CNeutrinoApp::standbyMode( bool bOnOff, bool fromDeepStandby )
|
|||||||
// Active standby off
|
// Active standby off
|
||||||
cpuFreq->SetCpuFreq(g_settings.cpufreq * 1000 * 1000);
|
cpuFreq->SetCpuFreq(g_settings.cpufreq * 1000 * 1000);
|
||||||
powerManager->SetStandby(false, false);
|
powerManager->SetStandby(false, false);
|
||||||
|
CVFD::getInstance()->setMode(CVFD::MODE_TVRADIO);
|
||||||
|
CVFD::getInstance()->ShowText("resume... ");
|
||||||
videoDecoder->Standby(false);
|
videoDecoder->Standby(false);
|
||||||
|
|
||||||
if(init_cec_setting){
|
if(init_cec_setting){
|
||||||
@@ -3275,7 +3278,6 @@ void CNeutrinoApp::standbyMode( bool bOnOff, bool fromDeepStandby )
|
|||||||
if (my_system(NEUTRINO_LEAVE_STANDBY_SCRIPT) != 0)
|
if (my_system(NEUTRINO_LEAVE_STANDBY_SCRIPT) != 0)
|
||||||
perror(NEUTRINO_LEAVE_STANDBY_SCRIPT " failed");
|
perror(NEUTRINO_LEAVE_STANDBY_SCRIPT " failed");
|
||||||
|
|
||||||
CVFD::getInstance()->setMode(CVFD::MODE_TVRADIO);
|
|
||||||
g_Zapit->setStandby(false);
|
g_Zapit->setStandby(false);
|
||||||
/* the old code did:
|
/* the old code did:
|
||||||
if(was_record) g_Zapit->startPlayBack()
|
if(was_record) g_Zapit->startPlayBack()
|
||||||
|
Reference in New Issue
Block a user