diff --git a/Services/IPCService.qml b/Services/IPCService.qml index e2e9064c..e3defb20 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 8aa7ac64..55b65932 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 ffa34b54..1bc65701 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 {}