From 9304c7d059c360357b0a26360e1d4854b264ce53 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sat, 30 Jan 2010 13:33:32 +0000 Subject: [PATCH] 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: https://github.com/neutrino-images/ni-neutrino/commit/73ce5fe04ac7c034c9d22e674277241230accf7f Author: Stefan Seyfried Date: 2010-01-30 (Sat, 30 Jan 2010) ------------------ This commit was generated by Migit --- src/neutrino.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/neutrino.cpp b/src/neutrino.cpp index 97281ad8f..4882e2304 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -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; }