Ivailo Monev
feae165d4f
kutils: warn when power management is not supported
...
if it is not supported then one (or more) CPU governors required by
KPowerManager are not enabled or the host is not Linux
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-18 20:07:52 +02:00
Ivailo Monev
0cdb519ddc
kutils: poll for state changes even if org.freedesktop.login1 interface is used
...
the state is tracked anyway and now the code path for both is the same
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-02 06:14:30 +02:00
Ivailo Monev
bdccbb1709
generic: implement hybrid suspend/sleep method
...
marking as extension because it was not implemented before and the FDO
spec is dead (i.e. not a spec anymore), may or may not work with other
power managers implementing the interface (org.freedesktop.PowerManagement)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-30 02:14:44 +02:00
Ivailo Monev
117eceef9b
kutils: remove now unused isLidClosed() power manager interface method
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-28 09:05:04 +03:00
Ivailo Monev
e3966570be
kutils: remove now unused BatteryRemainingTimeChanged() power manager interface signal
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-27 15:01:12 +03:00
Ivailo Monev
80c30dc690
kutils: poll on timer to emit power manager signals when ConsoleKit is used
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-20 11:59:56 +03:00
Ivailo Monev
3b388d2932
kutils: implement KPowerManager profiles and signals
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-20 11:51:03 +03:00
Ivailo Monev
2c6316c778
kutils: implement config option to disable automatic power management
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-20 05:54:13 +03:00
Ivailo Monev
15c9d77ea2
kutils: fallback to ConsoleKit for inhibition
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-20 03:42:20 +03:00
Ivailo Monev
0115a90c98
kutils: fallback to ConsoleKit for hibernation and sleep
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-20 02:46:00 +03:00
Ivailo Monev
98a4564326
generic: reimplement power manager
...
this was once on the TODO:
618622f767...fe9d951f17
the org.freedesktop.PowerManagement interface will be there for
compatibility only now since it is obsolete:
https://www.freedesktop.org/wiki/Specifications/power-management-spec/
side note:
powerdevil inhibition was broken
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-20 02:20:33 +03:00