Your message dated Wed, 09 Mar 2011 23:27:48 +0100
with message-id <[email protected]>
and subject line Re: [Pkg-acpi-devel] Bug#586604: Bug#586604: acpi: wrong
numbering of batteries
has caused the Debian Bug report #586604,
regarding acpi: wrong numbering of batteries
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
586604: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=586604
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: acpi
Version: 1.5-2
Severity: normal
Hi.
It seems that acpi uses a wrong numbering of the batteries:
$ acpi
Battery 0: Charging, 99%, 00:07:45 until charged
Battery 1: Full, 100%
However in /sys/class/power_supply they are numbered
CMB1 and CMB2.
Now the offset is not the problem, but the one that is charging
is actually the 2nd battery and the full one is the first.
This is definitely the correct order, as it is also the one used
of the laptop's LEDs.
Cheers,
Chris.
--- End Message ---
--- Begin Message ---
Hi Michael.
It seems that this issue has been solved with 2.6.37 (well at least
2.6.37).
Thanks,
Chris.
On Sat, 2011-01-08 at 18:12 +0100, Michael Meskes wrote:
> On Sat, Sep 04, 2010 at 02:29:33AM +0200, Christoph Anton Mitterer wrote:
> > Sorry for the long delay,... I somehow lost this.
>
> Now it's up to me to apologize, real life didn't yield enough time so I could
> care about acpi. I'm trying to catch up now.
>
> > Attached you'll find:
> >
> > - The output of "acpi".
> > - tar cjf ... /sys
> >
> > Once with both batteries (0 and 1) attached, once with the secondary (1)
> > not attached.
> >
> > Please ask if you need anything else.
>
> Yes, I could need a tarball that works. :-)
>
> The ones that you send are kind of strange as the power_supply directory has
> links that link to itself instead of the files under devices that are supposed
> to be linked in there. I created these links manually just to find out that
> acpi show what seems to be a correct numbering then:
>
> michael@hyperion:~$ acpi -d ./sys0/class/
> Battery 0: Full, 100%
> michael@hyperion:~$ acpi -d ./sys01/class/
> Battery 0: Full, 100%
> Battery 1: Unknown, 100%
>
> Maybe for some reason your kernel actually changes the numbering?
>
> Here are the directories after I manually created the links:
>
> sys0:
>
> lrwxrwxrwx 1 michael michael 67 8. Jan 18:08 CMB1 ->
> ../../devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0A:00/power_supply/CMB1/
>
> sys01:
>
> insgesamt 8
> lrwxrwxrwx 1 michael michael 67 8. Jan 18:07 CMB1 ->
> ../../devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0A:00/power_supply/CMB1/
> lrwxrwxrwx 1 michael michael 67 8. Jan 18:08 CMB2 ->
> ../../devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0A:01/power_supply/CMB2/
>
> Michael
smime.p7s
Description: S/MIME cryptographic signature
--- End Message ---