Hello. Knowledge about portable battery manufacturing date, among other details about the battery that are not retrieved by other tools is needed. That’s a job for dmidecode.
$ dmidecode -t 22
# dmidecode 3.6
/sys/firmware/dmi/tables/smbios_entry_point: Permission denied
Scanning /dev/mem for entry point.
Can’t read memory from /dev/mem
$ sudo !!
sudo dmidecode -t 22
# dmidecode 3.6
Getting SMBIOS data from sysfs.
SMBIOS 3.0.0 present.
Then no details, also illustrating that dmidecode may not include battery details, since it is able to include them on some systems.
Is it caused by
DMI table missing battery details
system lacking necessary support
system limitation, itself either caused by the Linux kernel or Fedora
In my case, Lenovo, the DMI table is just not populated (type 22), (which seems common for many Lenovo’s and other laptops). “upower -i $(upower -e | grep battery)” provides the correct info (in my case) via the smart battery interface.
‘cat /sys/firmware/dmi/tables/DMI | strings | grep -i battery’ is usually conclusive (no output) and kind of reliably rules out Fedora/Kernel issues. Else, run a Live USB with another distro to be 100% sure.
So does ‘upower -i $(upower -e | grep battery)’ on my laptop, but lacking the battery manufacturing date as well. ‘cat /sys/firmware/dmi/tables/DMI | strings | grep -i battery’ yields nothing for me. Hard to conclude anything reliable about the behaviour to expect.
Absolutely. The frustrating part is that (in my case) Lenovo Vantage (on Windows) showed the manufacturing date of the batt. Vantage on Windows uses a proprietary “Lenovo WMI low-level driver” that bypasses the standard OS battery abstraction entirely and reads the EC directly.
On Linux, the kernel’s battery driver reads what the EC decides to expose via ACPI, which is in this case a limited set of fields you see in upower.
On other distro’s I’ve seen alternatives for Vantage, but none of them worked or too old.