【问题标题】:How can i find out if a battery is internal/external from command line in Linux?如何从 Linux 的命令行中确定电池是内部还是外部?
【发布时间】: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!

标签: linux types battery


【解决方案1】:

我认为笔记本外接电池组除了交流电是否连接/断开之外没有任何信息;连接器的设计目的不是承载数字信息。如果您有其他信息,例如剩余容量,那么它可能是内部电池。这是指笔记本电脑,而不是平板电脑或手机。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-03-09
    • 2017-06-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-11-26
    相关资源
    最近更新 更多