Project

General

Profile

Actions

Feature #12234

closed

Want smbios battery support

Added by Robert Mustacchi over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Category:
lib - userland libraries
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

I have a system with an smbios battery entry and when I was looking at its smbios records with the illumos tools, I found that we didn't decode the smbios battery information so I went ahead and put that together.

With this in place, I can now decode it as follows (which has the same information as dmidecode):

$ smbios -t 22 ~/laptop.smbios 
ID    SIZE TYPE
42    53   SMB_TYPE_BATTERY (type 22) (portable battery)

  Manufacturer: SMP
  Product: 02DL005
  Location Tag: Front

  Battery Chemistry: 0x4 (Nickel Cadmium)
  Design Capacity: 51010 mWh
  Design Voltage: 15360 mV
  SBDS Version Number: 03.01
  Maximum Error: unknown
  SBDS Serial Number: 02bd
  SBDS Manufacture Date: 2019-07-11
  SBDS Device Chemistry: LiP
  OEM-specific Information: 0x00000000
Actions

Also available in: Atom PDF