【发布时间】:2016-04-12 14:46:32
【问题描述】:
有什么方法可以通过 Linux 的命令行来判断电池是内置的还是外置的?
我试过了:
upower -i `upower -e | grep 'BAT'`
但我没有找到电池类型:
native-path: BAT1
vendor: LG
model: Li_Ion_4000mA
serial: 00D6
power supply: yes
updated: Tue 12 Apr 2016 01:03:41 PM EEST (52 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: fully-charged
warning-level: none
energy: 39.5388 Wh
energy-empty: 0 Wh
energy-full: 39.5388 Wh
energy-full-design: 47.52 Wh
energy-rate: 0.0108 W
voltage: 12.369 V
percentage: 100%
capacity: 83.2045%
technology: lithium-ion
icon-name: 'battery-full-charged-symbolic'
历史(率): 1460455421 0.011 充满电
谢谢,
【问题讨论】:
-
我投票结束这个问题,因为它更适合 Unix 和 Linux SE!