upower/dbus
Manuel A. Fernandez Montecelo 6d5bb74637 New property for time estimate to CriticalPowerAction (time-to-action)
Analog to time-to-empty, but taking into account that time-to-action
happens before that, so it estimates the time until the system stops
working normally and it's instead forced to suspend/power-off/etc.,
when the battery is almost depleted.

It makes the calculations necessary based on the configured values,
whether they are time-based, or percentage-based.

This property is only valid for
/org/freedesktop/UPower/devices/DisplayDevice and not for actual
batteries, because it is a property of the system as a whole and not
physical batteries.  In most systems (e.g. laptops) they would be the
same, since there is only one battery; but depending on the system,
there can be multiple batteries and they can deplete at different
rates, so the per-battery calculation would not be useful.

Also, similar to time-to-empty, it's only valid when the system is
Discharging.

Add also relevant integration test:
- test_time_to_action
2025-11-21 12:40:05 +01:00
..
meson.build Remove Wakeups API 2022-03-24 17:02:27 +01:00
org.freedesktop.UPower.Device.xml New property for time estimate to CriticalPowerAction (time-to-action) 2025-11-21 12:40:05 +01:00
org.freedesktop.UPower.KbdBacklight.xml dbus: org.freedesktop.UPower.KbdBacklight: Description for deprecating the KbdBacklight object path 2025-09-05 11:49:38 +08:00
org.freedesktop.UPower.xml dbus: org.freedesktop.UPower: Enumerate kbd backlight LEDs 2025-09-05 17:22:08 +08:00