From: Alexey Starikovskiy <aystarik@gmail.com>
To: Ash Milsted <thatistosayiseenem@gawab.com>
Cc: linux-acpi@vger.kernel.org
Subject: Re: 2.6.24-rc1 acpi battery driver -> sysfs interface does not update correctly
Date: Sun, 28 Oct 2007 15:58:20 +0300 [thread overview]
Message-ID: <4724876C.40608@gmail.com> (raw)
In-Reply-To: <3e7b9f4b0710280506g18b9ec61h8cadc491877dd533@mail.gmail.com>
Ash Milsted wrote:
> On 27/10/2007, Alexey Starikovskiy <aystarik@gmail.com> wrote:
>> Ash Milsted wrote:
>>> Hi again,
>>> I just thought I'd say that this is still occuring with the current
>>> linux-acpi-2.6 git tree on top of Linus' latest.. I don't get
>>> (dis)charge uevents and, oddly, the sysfs charge_now value is
>> As I remember, you did not found uevents in 2.6.23 as well?
>
> Yeah, no uevents for (dis)charges or (un)plugs in 2.6.23.
>
>>> initially wrong on boot-up. For some reason it gives a value of about
>>> half the full charge of the battery (no matter what the true value is)
>>> until I read it a couple of times, at which point it corrects itself.
>
> Reading the sysfs value is, it turns out, not necessary to trigger
> this single update (which also sends a change uevent). I guess this is
> just the battery driver grabbing the initial value - after that there
> are no more change uevents.
>
>>> I attach a few extra details, in case they help.
>> your acpidump output might be usefull at this point.
>
> Attached.
>
Ok, it seems to be related with ECDY variable of your DSDT.
It is equal to 5 by default, but could be set to 0 or 3 if _OS string matches
some magic length (guess Linux does not match).
BST (method for reading state out of memory) may send notify event if ECDY
is 1 (it will become this only uevent you see at very start).
I do not see how battery driver could help in this situation.
What you could do is try to play with acpi_os variable so that ECDY becomes 0.
You also could patch your DSDT to have ECDY=0 always (or try to update BIOS, it might be done already).
next prev parent reply other threads:[~2007-10-28 12:58 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-24 18:14 2.6.24-rc1 acpi battery driver -> sysfs interface does not update correctly Ash Milsted
2007-10-24 18:53 ` Alexey Starikovskiy
2007-10-24 19:52 ` Ash Milsted
2007-10-24 20:23 ` Ash Milsted
2007-10-24 20:32 ` Alexey Starikovskiy
2007-10-24 21:17 ` Ash Milsted
2007-10-24 21:49 ` Alexey Starikovskiy
2007-10-24 22:28 ` Ash Milsted
2007-10-24 22:37 ` Ash Milsted
2007-10-25 3:08 ` Alexey Starikovskiy
2007-10-25 9:31 ` Ash Milsted
2007-10-27 16:52 ` Ash Milsted
2007-10-27 17:22 ` Alexey Starikovskiy
2007-10-28 12:06 ` Ash Milsted
[not found] ` <3e7b9f4b0710280524u1898296ase70f70c9cd03ced0@mail.gmail.com>
2007-10-28 12:33 ` [PATCH] ACPI: battery: Support for non-spec name for LiIon technology Alexey Starikovskiy
2007-10-28 12:40 ` 2.6.24-rc1 acpi battery driver -> sysfs interface does not update correctly Alexey Starikovskiy
2007-10-28 12:58 ` Alexey Starikovskiy [this message]
2007-10-28 14:03 ` Ash Milsted
2007-10-28 14:27 ` Alexey Starikovskiy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4724876C.40608@gmail.com \
--to=aystarik@gmail.com \
--cc=linux-acpi@vger.kernel.org \
--cc=thatistosayiseenem@gawab.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.