diff --git a/Services/IPCService.qml b/Services/IPCService.qml index e2e9064c0..e3defb207 100644 --- a/Services/IPCService.qml +++ b/Services/IPCService.qml @@ -222,8 +222,7 @@ Item { } } IpcHandler { - target: "PowerProfile" - + target: "powerProfile" function cycle() { PowerProfileService.cycleProfile() } diff --git a/Services/PowerProfileService.qml b/Services/PowerProfileService.qml index 8aa7ac641..55b659320 100644 --- a/Services/PowerProfileService.qml +++ b/Services/PowerProfileService.qml @@ -49,6 +49,10 @@ Singleton { } } + function init() { + Logger.d("PowerProfileService", "Service started") + } + function setProfile(p) { if (!available) return diff --git a/shell.qml b/shell.qml index ffa34b54c..1bc657011 100644 --- a/shell.qml +++ b/shell.qml @@ -91,7 +91,8 @@ ShellRoot { HooksService.init() BluetoothService.init() BatteryService.init() - IdleInhibitorService.init() + IdleInhibitorService.init() + PowerProfileService.init() } Background {}