diff options
author | Kate Hsuan <hpa@redhat.com> | 2023-12-18 14:52:25 +0800 |
---|---|---|
committer | Kate Hsuan <hpa@redhat.com> | 2024-01-15 07:36:53 +0000 |
commit | b21cec4c112a1bc14d1cbb83bff16dde763d0300 (patch) | |
tree | b29d5b8e198df3789dfa717c9d656293870bf9b9 | |
parent | bd1e4698f480c6b94afa0536fc02e211ae5a87fb (diff) |
dbus: org.freedesktop.UPower: EnergyRate is a positive value
The EnergyRate is a positive value since most of the laptops are ACPI
based system and report the power status through power_now sysfs
attribute. Moreover, the ACPI specification mention that the battery
power status is a positive value, measured in watt.
https://learn.microsoft.com/en-us/windows-hardware/design/component-guidelines/acpi-battery-and-power-subsystem-firmware-implementation
Fix: https://gitlab.freedesktop.org/upower/upower/-/issues/252
Signed-off-by: Kate Hsuan <hpa@redhat.com>
-rw-r--r-- | dbus/org.freedesktop.UPower.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dbus/org.freedesktop.UPower.xml b/dbus/org.freedesktop.UPower.xml index 1397478..246a3ef 100644 --- a/dbus/org.freedesktop.UPower.xml +++ b/dbus/org.freedesktop.UPower.xml @@ -82,7 +82,7 @@ method return sender=:1.386 -> dest=:1.451 reply_serial=2 <doc:term>EnergyFull</doc:term><doc:definition>Amount of energy (measured in Wh) in the power source when it's considered full.</doc:definition> </doc:item> <doc:item> - <doc:term>EnergyRate</doc:term><doc:definition>Amount of energy being drained from the source, measured in W. If positive, the source is being discharged, if negative it's being charged.</doc:definition> + <doc:term>EnergyRate</doc:term><doc:definition>Discharging/charging rate of the source, measured in Watt.</doc:definition> </doc:item> <doc:item> <doc:term>TimeToEmpty</doc:term><doc:definition>Number of seconds until the power source is considered empty.</doc:definition> |