On 7/11/2022 3:54 PM, Michael F. Stemper wrote:
Is there a file in /proc that gives information on the
battery in a laptop? If not, what's the interface used
by the desktop's battery status indicator?
There are examples here.
https://www.cyberciti.biz/faq/linux-laptop-battery-status-temperature/
The battery pack has a chip, which not only measures things,
it also keeps a record of how many times the pack has been
recharged. This allows the possibility of estimating battery
pack capacity, based on capacity-loss caused by charging it.
They do a lot of maths, in an attempt to give you the best
"estimate" of when the battery will go flat.
The chip in the battery pack has a serial interface,
and that's part of the reason the blade connector has a
few more blades than you might expect.
Since the chip is inside the battery pack, if you move the
battery pack to a second laptop, the "library" of information
travels with the battery.
If the battery pack is unplugged and the laptop is on mains,
the missing chip will not be seen by normal PNP operations
at boot.
Paul
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)