mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
neutrino: enable 'standby after inactivity' for Tripledragon
This commit is contained in:
@@ -193,6 +193,9 @@ int CMiscMenue::showMiscSettingsMenu()
|
|||||||
#if !HAVE_TRIPLEDRAGON
|
#if !HAVE_TRIPLEDRAGON
|
||||||
//cec settings
|
//cec settings
|
||||||
misc_menue->addItem(new CMenuForwarder(LOCALE_VIDEOMENU_HDMI_CEC, true, NULL, new CCECSetup() , NULL, CRCInput::RC_1));
|
misc_menue->addItem(new CMenuForwarder(LOCALE_VIDEOMENU_HDMI_CEC, true, NULL, new CCECSetup() , NULL, CRCInput::RC_1));
|
||||||
|
#else
|
||||||
|
// if (cs_get_revision() == 1)
|
||||||
|
misc_menue->addItem(new CMenuForwarder(LOCALE_MISCSETTINGS_SLEEPTIMER, true, g_settings.shutdown_min, new CSleepTimerWidget, "permanent", CRCInput::RC_1));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//channellist
|
//channellist
|
||||||
@@ -248,7 +251,6 @@ void CMiscMenue::showMiscSettingsMenuGeneral(CMenuWidget *ms_general)
|
|||||||
void CMiscMenue::showMiscSettingsMenuEnergy(CMenuWidget *ms_energy)
|
void CMiscMenue::showMiscSettingsMenuEnergy(CMenuWidget *ms_energy)
|
||||||
{
|
{
|
||||||
ms_energy->addIntroItems(LOCALE_MISCSETTINGS_ENERGY);
|
ms_energy->addIntroItems(LOCALE_MISCSETTINGS_ENERGY);
|
||||||
|
|
||||||
CMenuOptionChooser *m1 = new CMenuOptionChooser(LOCALE_MISCSETTINGS_SHUTDOWN_REAL_RCDELAY, &g_settings.shutdown_real_rcdelay, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, !g_settings.shutdown_real);
|
CMenuOptionChooser *m1 = new CMenuOptionChooser(LOCALE_MISCSETTINGS_SHUTDOWN_REAL_RCDELAY, &g_settings.shutdown_real_rcdelay, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, !g_settings.shutdown_real);
|
||||||
|
|
||||||
CStringInput * miscSettings_shutdown_count = new CStringInput(LOCALE_MISCSETTINGS_SHUTDOWN_COUNT, g_settings.shutdown_count, 3, LOCALE_MISCSETTINGS_SHUTDOWN_COUNT_HINT1, LOCALE_MISCSETTINGS_SHUTDOWN_COUNT_HINT2, "0123456789 ");
|
CStringInput * miscSettings_shutdown_count = new CStringInput(LOCALE_MISCSETTINGS_SHUTDOWN_COUNT, g_settings.shutdown_count, 3, LOCALE_MISCSETTINGS_SHUTDOWN_COUNT_HINT1, LOCALE_MISCSETTINGS_SHUTDOWN_COUNT_HINT2, "0123456789 ");
|
||||||
|
@@ -403,7 +403,7 @@ int CNeutrinoApp::loadSetup(const char * fname)
|
|||||||
strcpy(g_settings.shutdown_count, configfile.getString("shutdown_count","0").c_str());
|
strcpy(g_settings.shutdown_count, configfile.getString("shutdown_count","0").c_str());
|
||||||
|
|
||||||
strcpy(g_settings.shutdown_min, "000");
|
strcpy(g_settings.shutdown_min, "000");
|
||||||
if(cs_get_revision() > 7)
|
if (cs_get_revision() > 7 || cs_get_revision() == 1)
|
||||||
strcpy(g_settings.shutdown_min, configfile.getString("shutdown_min","180").c_str());
|
strcpy(g_settings.shutdown_min, configfile.getString("shutdown_min","180").c_str());
|
||||||
|
|
||||||
g_settings.infobar_sat_display = configfile.getBool("infobar_sat_display" , true );
|
g_settings.infobar_sat_display = configfile.getBool("infobar_sat_display" , true );
|
||||||
@@ -2744,6 +2744,12 @@ _repeat:
|
|||||||
return messages_return::handled;
|
return messages_return::handled;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
if (cs_get_revision() == 1)
|
||||||
|
{
|
||||||
|
/* TD has no FP for real shutdown -> do standby instead */
|
||||||
|
standbyMode(true);
|
||||||
|
return messages_return::handled;
|
||||||
|
}
|
||||||
printf("NeutrinoMessages::SLEEPTIMER: shutdown\n");
|
printf("NeutrinoMessages::SLEEPTIMER: shutdown\n");
|
||||||
ExitRun(true, (cs_get_revision() > 7));
|
ExitRun(true, (cs_get_revision() > 7));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user