Skip to content
Browse files

PVR: Call power saving wakeup script also on suspend and hibernate (n…

…ot only shutdown)
  • Loading branch information...
1 parent 9213780 commit ef7bce41791d5211c2d8f70913bf1bbb6420a95c @mikrohard committed with Jun 12, 2012
Showing with 10 additions and 5 deletions.
  1. +5 −0 xbmc/ApplicationMessenger.cpp
  2. +5 −5 xbmc/pvr/PVRManager.h
View
5 xbmc/ApplicationMessenger.cpp
@@ -73,6 +73,9 @@
#include "storage/DetectDVDType.h"
#include "ThumbLoader.h"
+#include "pvr/PVRManager.h"
+
+using namespace PVR;
using namespace std;
CDelayedMessage::CDelayedMessage(ThreadMessage& msg, unsigned int delay) : CThread("CDelayedMessage")
@@ -261,12 +264,14 @@ void CApplicationMessenger::ProcessMessage(ThreadMessage *pMsg)
case TMSG_HIBERNATE:
{
+ g_PVRManager.SetWakeupCommand();
g_powerManager.Hibernate();
}
break;
case TMSG_SUSPEND:
{
+ g_PVRManager.SetWakeupCommand();
g_powerManager.Suspend();
}
break;
View
10 xbmc/pvr/PVRManager.h
@@ -423,6 +423,11 @@ namespace PVR
*/
void LoadCurrentChannelSettings(void);
+ /*!
+ * @brief Executes "pvrpowermanagement.setwakeupcmd"
+ */
+ bool SetWakeupCommand(void);
+
protected:
/*!
* @brief PVR update and control thread.
@@ -498,11 +503,6 @@ namespace PVR
void ShowProgressDialog(const CStdString &strText, int iProgress);
/*!
- * @brief Executes "pvrpowermanagement.setwakeupcmd"
- */
- bool SetWakeupCommand(void);
-
- /*!
* @brief Hide the progress dialog if it's visible.
*/
void HideProgressDialog(void);

0 comments on commit ef7bce4

Please sign in to comment.
Something went wrong with that request. Please try again.