我有两个不同的最大电池能量结果:
upower -i $(upower -e | grep -i bar) | grep energy
energy: 18.061 Wh
energy-empty: 0 Wh
energy-full: 33.4021 Wh
energy-full-design: 50.7296 Wh
energy-rate: 7.30384 W
因此,据upower
我了解,最大能量可能约为 33.5 瓦特*小时。但从cat /sys/class/power_supply/BAT0/{charge_full,charge_full_design}
/sys/class/power_supply/BAT0/charge_full:
2186000
/sys/class/power_supply/BAT0/charge_full_design:
3320000
我得到数字2186000
,它是什么单位?焦耳?但这与上面的不一样33.5*60*60 == 120600J
。那么为什么会不同呢。还有什么是energy-rate
(7瓦)?现在是电池性能吗?
答案1
根据内核文档,这些值的单位是 µAh(微安时):
~ ~ ~ ~ ~ ~ ~ Charge/Energy/Capacity - how to not confuse ~ ~ ~ ~ ~ ~ ~
~ ~
~ Because both "charge" (µAh) and "energy" (µWh) represents "capacity" ~
~ of battery, this class distinguish these terms. Don't mix them! ~
~ ~
~ CHARGE_* attributes represents capacity in µAh only. ~
~ ENERGY_* attributes represents capacity in µWh only. ~
~ CAPACITY attribute represents capacity in *percents*, from 0 to 100. ~
~ ~
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
https://www.kernel.org/doc/Documentation/power/power_supply_class.txt
瓦特*小时和安培小时之间的关系如下所述:https://www.rc-Electronics-usa.com/battery-Electronics-101.html