mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-20 06:38:13 +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 | ||
| org.freedesktop.UPower.Device.xml | ||
| org.freedesktop.UPower.KbdBacklight.xml | ||
| org.freedesktop.UPower.xml | ||