neutrino: reset state if stopped while in standby

If you stop neutrino while in standby, you cannot restart it anymore
because it hangs in _write_gxa in framebuffer.cpp. "Fix" this by
leaving the powermanager standby mode and resetting cpufreq in the
"stop the system" routine.
A proper fix would be to fix the crappy drivers... ;-)

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@222 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Branch: ni/coolstream
Commit: 73ce5fe04a
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2010-01-30 (Sat, 30 Jan 2010)



------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2010-01-30 13:33:32 +00:00
parent fc8f283610
commit 9304c7d059

View File

@@ -4474,7 +4474,14 @@ void stop_daemons(bool stopall)
CVFD::getInstance()->Clear();
if(stopall) {
delete moviePlayerGui;
if (cpuFreq)
cpuFreq->SetCpuFreq(g_settings.cpufreq * 1000 * 1000);
if (powerManager) {
/* if we were in standby, leave it otherwise, the next
start of neutrino will fail in "_write_gxa" in
framebuffer.cpp
=> this is needed because the drivers are crap :( */
powerManager->SetStandby(false, false);
powerManager->Close();
delete powerManager;
}