summaryrefslogtreecommitdiff
path: root/package/xbmc/patches/patch-xbmc_powermanagement_PowerManager_cpp
blob: 0959e9c4e5a3280a946d2761b1555e67937018b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- xbmc-12.3-Frodo.orig/xbmc/powermanagement/PowerManager.cpp	2013-12-12 22:47:49.000000000 +0100
+++ xbmc-12.3-Frodo/xbmc/powermanagement/PowerManager.cpp	2014-01-29 07:59:01.000000000 +0100
@@ -46,6 +46,9 @@
 #include "linux/ConsoleDeviceKitPowerSyscall.h"
 #include "linux/SystemdUPowerSyscall.h"
 #include "linux/UPowerSyscall.h"
+#ifdef HAS_SIMPLEPM
+#include "linux/LinuxPowerSyscall.h"
+#endif
 #ifdef HAS_HAL
 #include "linux/HALPowerSyscall.h"
 #endif
@@ -83,6 +86,10 @@ void CPowerManager::Initialize()
     m_instance = new CSystemdUPowerSyscall();
   else if (CUPowerSyscall::HasUPower())
     m_instance = new CUPowerSyscall();
+#ifdef HAS_SIMPLEPM
+  else
+    m_instance = new CLinuxPowerSyscall();
+#endif
 #ifdef HAS_HAL
   else
     m_instance = new CHALPowerSyscall();