mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
-fix: I'm your fan, have fun ;)
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1216 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -215,7 +215,7 @@ void CMiscMenue::showMiscSettingsMenu()
|
|||||||
//CPU
|
//CPU
|
||||||
CMenuWidget *misc_menue_cpu = new CMenuWidget("CPU", NEUTRINO_ICON_SETTINGS, width);
|
CMenuWidget *misc_menue_cpu = new CMenuWidget("CPU", NEUTRINO_ICON_SETTINGS, width);
|
||||||
showMiscSettingsMenuCPUFreq(misc_menue_cpu);
|
showMiscSettingsMenuCPUFreq(misc_menue_cpu);
|
||||||
misc_menue->addItem( new CMenuForwarderNonLocalized("CPU", true, NULL, misc_menue_cpu, NULL));
|
misc_menue->addItem( new CMenuForwarderNonLocalized("CPU", true, NULL, misc_menue_cpu, NULL, CRCInput::RC_4));
|
||||||
#endif /*CPU_FREQ*/
|
#endif /*CPU_FREQ*/
|
||||||
|
|
||||||
misc_menue->exec(NULL, "");
|
misc_menue->exec(NULL, "");
|
||||||
@@ -233,14 +233,14 @@ void CMiscMenue::showMiscSettingsMenuGeneral(CMenuWidget *ms_general)
|
|||||||
ms_general->addItem(new CMenuOptionChooser(LOCALE_EXTRA_START_TOSTANDBY, &g_settings.power_standby, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
ms_general->addItem(new CMenuOptionChooser(LOCALE_EXTRA_START_TOSTANDBY, &g_settings.power_standby, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
||||||
ms_general->addItem(new CMenuOptionChooser(LOCALE_EXTRA_CACHE_TXT, (int *)&g_settings.cacheTXT, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
ms_general->addItem(new CMenuOptionChooser(LOCALE_EXTRA_CACHE_TXT, (int *)&g_settings.cacheTXT, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
||||||
|
|
||||||
|
|
||||||
//fan speed
|
//fan speed
|
||||||
|
if (g_info.delivery_system == DVB_S && (cs_get_revision() < 8))
|
||||||
|
{
|
||||||
CFanControlNotifier *fanNotifier = new CFanControlNotifier();
|
CFanControlNotifier *fanNotifier = new CFanControlNotifier();
|
||||||
|
|
||||||
//don't show fan speed settings on cable box and NEO
|
//don't show fan speed settings on cable box and NEO
|
||||||
if (g_info.delivery_system == DVB_S && (cs_get_revision() < 8)) {
|
|
||||||
ms_general->addItem(new CMenuOptionNumberChooser(LOCALE_FAN_SPEED, &g_settings.fan_speed, true, 1, 14, fanNotifier, 0, 0, LOCALE_OPTIONS_OFF) );
|
ms_general->addItem(new CMenuOptionNumberChooser(LOCALE_FAN_SPEED, &g_settings.fan_speed, true, 1, 14, fanNotifier, 0, 0, LOCALE_OPTIONS_OFF) );
|
||||||
fanNotifier->changeNotify(NONEXISTANT_LOCALE, (void*) &g_settings.fan_speed);
|
fanNotifier->changeNotify(NONEXISTANT_LOCALE, (void*) &g_settings.fan_speed);
|
||||||
|
delete fanNotifier;
|
||||||
}
|
}
|
||||||
|
|
||||||
//rotor
|
//rotor
|
||||||
|
@@ -254,7 +254,6 @@ static char **global_argv;
|
|||||||
|
|
||||||
//static CTimingSettingsNotifier timingsettingsnotifier;
|
//static CTimingSettingsNotifier timingsettingsnotifier;
|
||||||
CFontSizeNotifier fontsizenotifier;
|
CFontSizeNotifier fontsizenotifier;
|
||||||
CFanControlNotifier * funNotifier;
|
|
||||||
|
|
||||||
extern const char * locale_real_names[]; /* #include <system/locals_intern.h> */
|
extern const char * locale_real_names[]; /* #include <system/locals_intern.h> */
|
||||||
// USERMENU
|
// USERMENU
|
||||||
@@ -3567,9 +3566,12 @@ void CNeutrinoApp::ExitRun(const bool /*write_si*/, int retcode)
|
|||||||
|
|
||||||
cpuFreq->SetCpuFreq(g_settings.standby_cpufreq * 1000 * 1000);
|
cpuFreq->SetCpuFreq(g_settings.standby_cpufreq * 1000 * 1000);
|
||||||
powerManager->SetStandby(true, true);
|
powerManager->SetStandby(true, true);
|
||||||
|
if (g_info.delivery_system == DVB_S && (cs_get_revision() < 8)) {
|
||||||
int fspeed = 0;
|
int fspeed = 0;
|
||||||
|
CFanControlNotifier * funNotifier= new CFanControlNotifier();
|
||||||
funNotifier->changeNotify(NONEXISTANT_LOCALE, (void *) &fspeed);
|
funNotifier->changeNotify(NONEXISTANT_LOCALE, (void *) &fspeed);
|
||||||
|
delete funNotifier;
|
||||||
|
}
|
||||||
if (powerManager) {
|
if (powerManager) {
|
||||||
powerManager->Close();
|
powerManager->Close();
|
||||||
delete powerManager;
|
delete powerManager;
|
||||||
@@ -3599,9 +3601,13 @@ void CNeutrinoApp::ExitRun(const bool /*write_si*/, int retcode)
|
|||||||
} else {
|
} else {
|
||||||
if (g_RCInput != NULL)
|
if (g_RCInput != NULL)
|
||||||
delete g_RCInput;
|
delete g_RCInput;
|
||||||
|
//fan speed
|
||||||
|
if (g_info.delivery_system == DVB_S && (cs_get_revision() < 8)) {
|
||||||
int fspeed = 0;
|
int fspeed = 0;
|
||||||
|
CFanControlNotifier * funNotifier= new CFanControlNotifier();
|
||||||
funNotifier->changeNotify(NONEXISTANT_LOCALE, (void *) &fspeed);
|
funNotifier->changeNotify(NONEXISTANT_LOCALE, (void *) &fspeed);
|
||||||
|
delete funNotifier;
|
||||||
|
}
|
||||||
//CVFD::getInstance()->ShowText((char *) g_Locale->getText(LOCALE_MAINMENU_REBOOT));
|
//CVFD::getInstance()->ShowText((char *) g_Locale->getText(LOCALE_MAINMENU_REBOOT));
|
||||||
|
|
||||||
delete frameBuffer;
|
delete frameBuffer;
|
||||||
@@ -3887,6 +3893,7 @@ void CNeutrinoApp::standbyMode( bool bOnOff )
|
|||||||
static bool wasshift = false;
|
static bool wasshift = false;
|
||||||
//printf("********* CNeutrinoApp::standbyMode, was_record %d bOnOff %d\n", was_record, bOnOff);
|
//printf("********* CNeutrinoApp::standbyMode, was_record %d bOnOff %d\n", was_record, bOnOff);
|
||||||
//printf( ( bOnOff ) ? "mode: standby on\n" : "mode: standby off\n" );
|
//printf( ( bOnOff ) ? "mode: standby on\n" : "mode: standby off\n" );
|
||||||
|
|
||||||
if( bOnOff ) {
|
if( bOnOff ) {
|
||||||
|
|
||||||
if(autoshift) {
|
if(autoshift) {
|
||||||
@@ -3927,9 +3934,13 @@ void CNeutrinoApp::standbyMode( bool bOnOff )
|
|||||||
|
|
||||||
lastMode = mode;
|
lastMode = mode;
|
||||||
mode = mode_standby;
|
mode = mode_standby;
|
||||||
|
//fan speed
|
||||||
|
if (g_info.delivery_system == DVB_S && (cs_get_revision() < 8)) {
|
||||||
int fspeed = 1;
|
int fspeed = 1;
|
||||||
|
CFanControlNotifier * funNotifier= new CFanControlNotifier();
|
||||||
funNotifier->changeNotify(NONEXISTANT_LOCALE, (void *) &fspeed);
|
funNotifier->changeNotify(NONEXISTANT_LOCALE, (void *) &fspeed);
|
||||||
|
delete funNotifier;
|
||||||
|
}
|
||||||
frameBuffer->setActive(false);
|
frameBuffer->setActive(false);
|
||||||
// Active standby on
|
// Active standby on
|
||||||
powerManager->SetStandby(true, false);
|
powerManager->SetStandby(true, false);
|
||||||
@@ -3946,8 +3957,12 @@ void CNeutrinoApp::standbyMode( bool bOnOff )
|
|||||||
g_CamHandler->exec(NULL, "ca_ci_reset1");
|
g_CamHandler->exec(NULL, "ca_ci_reset1");
|
||||||
}
|
}
|
||||||
frameBuffer->setActive(true);
|
frameBuffer->setActive(true);
|
||||||
|
//fan speed
|
||||||
|
if (g_info.delivery_system == DVB_S && (cs_get_revision() < 8)) {
|
||||||
|
CFanControlNotifier * funNotifier= new CFanControlNotifier();
|
||||||
funNotifier->changeNotify(NONEXISTANT_LOCALE, (void*) &g_settings.fan_speed);
|
funNotifier->changeNotify(NONEXISTANT_LOCALE, (void*) &g_settings.fan_speed);
|
||||||
|
delete funNotifier;
|
||||||
|
}
|
||||||
|
|
||||||
puts("[neutrino.cpp] executing " NEUTRINO_LEAVE_STANDBY_SCRIPT ".");
|
puts("[neutrino.cpp] executing " NEUTRINO_LEAVE_STANDBY_SCRIPT ".");
|
||||||
if (system(NEUTRINO_LEAVE_STANDBY_SCRIPT) != 0)
|
if (system(NEUTRINO_LEAVE_STANDBY_SCRIPT) != 0)
|
||||||
@@ -3979,6 +3994,7 @@ void CNeutrinoApp::standbyMode( bool bOnOff )
|
|||||||
wasshift = false;
|
wasshift = false;
|
||||||
StartSubtitles();
|
StartSubtitles();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CNeutrinoApp::radioMode( bool rezap)
|
void CNeutrinoApp::radioMode( bool rezap)
|
||||||
|
Reference in New Issue
Block a user