neutrino: add deep-standby support on SPARK

Origin commit data
------------------
Branch: ni/coolstream
Commit: ec83c10c6b
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-04-22 (Sun, 22 Apr 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2012-04-22 11:45:11 +02:00
parent 7170a10c92
commit 0bb2590bbc
3 changed files with 32 additions and 5 deletions

View File

@@ -82,6 +82,13 @@ void CTimerManager::Init(void)
wakeup = ((wk.source == WAKEUP_SOURCE_TIMER) /* || (wk.source == WAKEUP_SOURCE_PWLOST)*/);
close(fd);
}
#endif
/* not platform specific - this is created by the init process */
if (access("/tmp/.timer_wakeup", F_OK) == 0) {
wakeup = true;
unlink("/tmp/.timer_wakeup");
}
printf("[timerd] wakeup from standby: %s\n", wakeup ? "yes" : "no");
if(wakeup){
creat("/tmp/.wakeup", 0);
@@ -92,7 +99,6 @@ void CTimerManager::Init(void)
if (system(neutrino_leave_deepstandby_script) != 0)
perror( neutrino_leave_deepstandby_script );
}
#endif
loadRecordingSafety();
//thread starten