Battery

如何從linux中找出電池的製造日期

  • March 7, 2014

如何從 linux 中找出電池的製造日期?

如果這不可能,是否有其他測試可以檢查我可以在 linux 下執行的電池是否新且健康?

採用:

sudo dmidecode -t 22

dmidecode手冊:

DMI TYPES
      The SMBIOS specification defines the following DMI types:

      Type   Information
      ────────────────────────────────────────
         0   BIOS
           .
           .
        21   Built-in Pointing Device
        22   Portable Battery
        23   System Reset
           .
           .

在我的筆記型電腦上,輸出如下:

root@aularon-laptop:~# dmidecode -t 22
# dmidecode 2.11
SMBIOS 2.6 present.

Handle 0x0012, DMI type 22, 26 bytes
Portable Battery
   Location: Primary
   Manufacturer: 
   Name: 
   Design Capacity: 
   Design Voltage: 
   SBDS Version: 
   Maximum Error: 
   SBDS Serial Number: 
   SBDS Manufacture Date: 2010-10-10
   SBDS Chemistry: LION
   OEM-specific Information: 0x00000000

root@aularon-laptop:~# 

如您所見,我的電池是在2010-10-10.

引用自:https://unix.stackexchange.com/questions/118646