mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-20 13:38:23 +02:00
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 |
||
|---|---|---|
| .. | ||
| meson.build | ||
| up-autocleanups.h | ||
| up-client.c | ||
| up-client.h | ||
| up-device.c | ||
| up-device.h | ||
| up-history-item.c | ||
| up-history-item.h | ||
| up-stats-item.c | ||
| up-stats-item.h | ||
| up-types.c | ||
| up-types.h | ||
| up-version.h.in | ||
| upower.h | ||