* Battery Status Query
@ 2003-05-15 11:30 Manish Prasad
0 siblings, 0 replies; only message in thread
From: Manish Prasad @ 2003-05-15 11:30 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Hi
I'm working with a DELL Inspiron 2600, 2.4.20 kernel, acpi patch 20021212.
I need to poll the battery constantly to catch any changes in the remaining
capacity. After a certain number of queries (typically of the order of
32000), the _BST method execution fails.
I don't go through /proc, since earlier I found that the namespace lookup
fails after a while. So I do the lookup once and cache the method_node
within the kernel, which I use to repeat the query. The code breaks after
a certain number of queries spewing out the foll error message:
psargs-0334: *** Error: Looking up [STAT] in namespace, AE_NOT_FOUND
psparse-1103: *** Error: Method execution failed
[\_SB_.PCI0.LPCB.BAT1._BST] (Node c12eed88), AE_NOT_FOUND
Call stack (after entering the interpreter), AFAIK from the acpi source
code:
acpi_ps_get_next_namepath() - parser/psargs.c
acpi_ps_parse_loop() - parser/psparse.c
acpi_ps_parse_aml() - parser/psparse.c
acpi_psx_execute() - parser/psxface.c
My DSDT : www.cs.sunysb.edu/~mprasad/DSDT
Any pointers on how this could possibly be fixed would be greatly
appreciated. I'm not familiar with the interpreter .... would it be
possible at all to interpret just once and cache the interpreted code for
later execution directly. Also, since my goal is basically to catch
battery state changes as and when they occur, is there a better way to do
that ? The battery state notify interrupt occurs very infrequently,
probably only for changes in charging/discharging state and not for
reserve capacity changes.
Thanks,
--Manish
-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-05-15 11:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-15 11:30 Battery Status Query Manish Prasad
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox