I don't think you can accomplish this in ASL. All ASL/AML execution is driven by the
host OS.
Simply, the hardware is broken.
________________________________
From: Wim Vervoorn [mailto:wvervoorn@eltan.com]
Sent: Wednesday, April 07, 2010 11:56 PM
To: Moore, Robert; devel(a)acpica.org
Subject: RE: Periosic tasks
Hello Robert,
Thanks for the quick response.
I know that part and normally we also implement an EC which takes care of the
notification.
In this case this is unfortunately not the case so we need to find some way to work around
this issue.
What I am looking for is a way to e.g. send a notify every second so the status will then
be updated. The problem is that I haven't yet found a way to do that in ASL code.
I fact what I need is a "back ground task" that sends a notify to the battery
every second or every 2 seconds. This will be sufficient for most practical purposes.
Best regards,
Wim
From: Moore, Robert [mailto:robert.moore@intel.com]
Sent: woensdag 7 april 2010 17:31
To: Wim Vervoorn; devel(a)acpica.org
Subject: RE: Periosic tasks
I don't think any OS implements polling on the battery or batteries. Both smart
batteries and control-method batteries are expected to notify the OS upon a state change.
From the ACPI specification 4.0a, section 3.9.1, "Battery
Communications"
"All battery system types must provide notification to the OS when there is a change
such as inserting or removing a battery, or when a battery starts or stops
discharging"
________________________________
From: devel-bounces(a)acpica.org [mailto:devel-bounces@acpica.org] On Behalf Of Wim
Vervoorn
Sent: Wednesday, April 07, 2010 8:14 AM
To: devel(a)acpica.org
Subject: [Devel] Periosic tasks
Hello,
I have an issue that you might be able to help me with.
I am implementing a control method battery on a system that does connect the battery to
the SMBUS but can't generate alerts when the state changes.
Obviously I need to make sure the _BST is evaluated regularly to make sure the correct
values are reported.
Do you know if and how I can influence the intervals the OS evaluates the _BST from ASL
code? Normally I would simply notify when I get an event from the EC.
Now I either need to rely in the OS to be so kind to evaluate or I need to be able to
periodically send the notify to the battery to make sure the OS will evaluate the _BST.
Any suggestions are welcome.
Best Regards,
Wim Vervoorn
Eltan B.V.
Het Schild 13
5275 EB Den Dungen
The Netherlands
T : +31-(0)73-594 46 64
F : +31(0)73-594 11 87
E : wvervoorn(a)eltan.com
W :
http://www.eltan.com
"THIS MESSAGE CONTAINS CONFIDENTIAL INFORMATION. UNLESS YOU ARE THE INTENDED
RECIPIENT OF THIS MESSAGE, ANY USE OF THIS MESSAGE IS STRICTLY PROHIBITED. IF YOU HAVE
RECEIVED THIS MESSAGE IN ERROR, PLEASE IMMEDIATELY NOTIFY THE SENDER BY TELEPHONE
+31-(0)73-5944664 OR REPLY EMAIL, AND IMMEDIATELY DELETE THIS MESSAGE AND ALL
COPIES."