question about lshw
Doron Shikmoni
doron at isoc.org.il
Wed Sep 12 01:18:58 IDT 2012
Hello Sara,
A couple comments:
1. lshw takes (most of) its data out of DMI, and interprets some of it
based on hardcoded constants. This might translate into incorrect
interpretation for some of the info, in this case, the battery's chemistry
or the number of batteries. Another possibility is that the battery or the
laptop wrongly reports its own attributes, or some similar discrepancy.
It might be interesting to take the output of dmidecode and compare notes
with lshw.
2. The fact that you get a report for more than one battery is orthogonal
and unrelated to the number of cells. The cells (4,6, or 9 of them) are all
part of one battery, and do not represent separate batteries. In other
words, for one 6-cell battery, the correct report should have been one
battery, not 6.
So the fact that you received a report about batteries 0-3 does not
indicate 4 cells, but rather, incorrect counting of battery instances by
lshw (or incorrect DMI reporting by Mr. MoBo).
Hope this helps,
Doron
On Sun, Sep 9, 2012 at 5:29 PM, sara fink <sara.fink at gmail.com> wrote:
> I ran lshw and found out about the battery of the laptop that it has 4
> cells. It appears as battery 0, battery 1, battery 2, battery 3. However,
> based on the model of the battery it is supposed to be 6 cells. I was
> wondering which one is correct.
>
> The model of the battery is Samsung AA-PB9NC6B 11.1V, 4400 mAh. On the
> battery it shows it's Li-Ion battery. lshw shows it's nickel cadmium.
>
> *-battery:0
> description: Nickel Cadmium Battery
> product: Battery Name
> vendor: Battery Manufacturer
> physical id: 1
> version: 01/01/2012
> serial: Serial Number
> slot: Location of the battery
> *-battery:1
> description: Nickel Cadmium Battery
> product: Battery Name
> vendor: Battery Manufacturer
> physical id: 2
> version: 01/01/2012
> serial: Serial Number
> slot: Location of the battery
> *-battery:2
> description: Nickel Cadmium Battery
> product: Battery Name
> vendor: Battery Manufacturer
> physical id: 3
> version: 01/01/2012
> serial: Serial Number
> slot: Location of the battery
> *-battery:3
> description: Nickel Cadmium Battery
> product: Battery Name
> vendor: Battery Manufacturer
> physical id: 4
> version: 01/01/2012
> serial: Serial Number
> slot: Location of the battery
>
>
>
>
> _______________________________________________
> Linux-il mailing list
> Linux-il at cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20120912/734b71be/attachment.html>
More information about the Linux-il
mailing list