From: Bruno Ducrot <ducrot@poupinou.org>
To: Sergey Basmanov <sergey_basmanov@mail.ru>
Cc: linux-acpi@vger.kernel.org
Subject: Re: HP dv9000t battery discharge rate
Date: Tue, 5 Dec 2006 10:43:40 +0100 [thread overview]
Message-ID: <20061205094340.GO4945@poupinou.org> (raw)
In-Reply-To: <4574938F.6050202@mail.ru>
On Tue, Dec 05, 2006 at 12:30:55AM +0300, Sergey Basmanov wrote:
> Hi,
> Was looking how to get battery discharge rate on this laptop.
> This is part of DSDT:
> Name (PBST, Package (0x04)
> {
> 0x00,
> 0xFFFFFFFF,
> 0xFFFFFFFF,
> 0x2710
> })
> ...
>
> Method (_BST, 0, NotSerialized)
> {
> If (ECON)
> {
> If (\_SB.PCI0.LPCB.EC0.MBTS)
> {
> UPBS ()
> }
> Else
> {
> IVBS ()
> }
> }
> Else
> {
> IVBS ()
> }
>
> Return (PBST)
> }
> ...
> Method (UPBS, 0, NotSerialized)
> {
> Store (\_SB.PCI0.LPCB.EC0.MBRM, Local5)
> If (LNot (And (Local5, 0x8000)))
> {
> ShiftRight (Local5, 0x05, Local5)
> ShiftLeft (Local5, 0x05, Local5)
> If (LNotEqual (Local5, DerefOf (Index (PBST, 0x02))))
> {
> Store (Local5, Index (PBST, 0x02))
> }
> }
>
> Store (\_SB.PCI0.LPCB.EC0.MBCV, Index (PBST, 0x03))
> Store (\_SB.PCI0.LPCB.EC0.MBST, Index (PBST, 0x00))
> Store (\_SB.PCI0.LPCB.EC0.BA1C, BCAP)
> }
>
> and method IVBS just stores default values into PBST.
> So, I'm not familiar with iasl and rest, but if I understand right, UPBS
> method is used in case when battery connected and known to system.
> In UPBS method I don't see any code that updates PBST at 0x01
> (discharge_rate). HP support says that sensor is present in system.
> Any ideas where this sensor located and how can I get discharge rate
> visible in ACPI (kernel 2.6.18.2)?
It's likely under the embedded controller. If you give me the whole
OperationRegion() and the Field() for that one it might be possible
I could have a hint to get it.
It should be something like that:
Device (EC0)
{
...
...
OperationRegion(XXXX, EmbeddedControl, 0x00, 0xFF)
Field(XXXX, ByteAcc, ..., ...)
{
...
...
}
...
}
I'll need all the Field with the same name (here XXXX).
Or alternatively send to me the whole ASL.
Cheers,
--
Bruno Ducrot
-- Which is worse: ignorance or apathy?
-- Don't know. Don't care.
next prev parent reply other threads:[~2006-12-05 9:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-04 21:30 HP dv9000t battery discharge rate Sergey Basmanov
2006-12-05 9:43 ` Bruno Ducrot [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-12-05 1:55 Lebedev, Vladimir P
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=20061205094340.GO4945@poupinou.org \
--to=ducrot@poupinou.org \
--cc=linux-acpi@vger.kernel.org \
--cc=sergey_basmanov@mail.ru \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox