Hardware
energy-full 與charge_full 之間的單位有什麼區別?
我有 2 種不同的最大電池能量結果:
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 瓦)?現在是電池性能嗎?
根據核心文件,這些值以 µ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