upower/libupower-glib
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
up-autocleanups.h Remove Wakeups API 2022-03-24 17:02:27 +01:00
up-client.c Fix spelling issues with codespell 2025-01-08 14:01:34 +08:00
up-client.h Fix trailing white space and end of file 2025-01-08 14:01:34 +08:00
up-device.c New property for time estimate to CriticalPowerAction (time-to-action) 2025-11-21 12:40:05 +01:00
up-device.h Fix trailing white space and end of file 2025-01-08 14:01:34 +08:00
up-history-item.c Fix trailing white space and end of file 2025-01-08 14:01:34 +08:00
up-history-item.h Fix trailing white space and end of file 2025-01-08 14:01:34 +08:00
up-stats-item.c Fix trailing white space and end of file 2025-01-08 14:01:34 +08:00
up-stats-item.h Fix trailing white space and end of file 2025-01-08 14:01:34 +08:00
up-types.c lib: Add UP_DEVICE_KIND_BLUETOOTH_GENERIC type 2021-06-17 13:47:33 +02:00
up-types.h Fix trailing white space and end of file 2025-01-08 14:01:34 +08:00
up-version.h.in lib: Use @see_also instead of "See also" 2018-09-30 19:19:02 +02:00
upower.h Fix trailing white space and end of file 2025-01-08 14:01:34 +08:00