set cpufreq similar to wakeupFromStandby/standbyToStandby

This commit is contained in:
Jacek Jendrzej
2014-12-08 10:16:47 +01:00
parent 24fabb8daf
commit 1e8d4bb7c2

View File

@@ -3514,8 +3514,9 @@ void CNeutrinoApp::standbyMode( bool bOnOff, bool fromDeepStandby )
puts("[neutrino.cpp] executing " NEUTRINO_ENTER_STANDBY_SCRIPT ".");
if (my_system(NEUTRINO_ENTER_STANDBY_SCRIPT) != 0)
perror(NEUTRINO_ENTER_STANDBY_SCRIPT " failed");
if(!CRecordManager::getInstance()->RecordingStatus())
bool alive = recordingstatus || CEpgScan::getInstance()->Running() ||
CStreamManager::getInstance()->StreamStatus();
if(!alive)
cpuFreq->SetCpuFreq(g_settings.standby_cpufreq * 1000 * 1000);
//fan speed