public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: "Alfredo Garcia Martino" <alfredogarcia-hi6Y0CQ0nG0@public.gmane.org>
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Issues reading battery status
Date: Mon, 06 Sep 2004 17:50:33 +0200	[thread overview]
Message-ID: <opsdwwyjugae6s7i@mail.gmx.net> (raw)

Hi,

	I have been suffering a pair of problems with ACPI reading the battery  
status on my laptop. The two issues are:

	1: This error occurs every time you do acpi -V
--------------------------------------------------------------------------------------
Sep  6 15:00:28 localhost kernel: [ACPI Debug] String: Length 0x1E,  
"====BAT0 _BST UPBS() entry===="
Sep  6 15:00:28 localhost kernel: exconvrt-0664: *** Error: Bad  
destination type during conversion: 4
Sep  6 15:00:28 localhost kernel:  psparse-1133: *** Error: Method  
execution failed [\_SB_.BAT0.GBFE] (Node c11e5d68), AE_AML_INTERNAL
Sep  6 15:00:28 localhost kernel:  psparse-1133: *** Error: Method  
execution failed [\_SB_.BAT0.UPBS] (Node c11e58e8), AE_AML_INTERNAL
Sep  6 15:00:28 localhost kernel:  psparse-1133: *** Error: Method  
execution failed [\_SB_.BAT0._BST] (Node c11e4348), AE_AML_INTERNAL
Sep  6 15:00:28 localhost kernel: acpi_battery-0207 [31]  
acpi_battery_get_statu: Error evaluating _BST
Sep  6 15:00:28 localhost kernel: [ACPI Debug] String: Length 0x1B,  
"====BAT0 _BIF End Error===="
--------------------------------------------------------------------------------------

	2: This occurs from time to time let's say that if we repeat "acpi -V"  
every 2 seconds this error appears every 40 seconds
--------------------------------------------------------------------------------------
Sep  6 15:00:16 localhost kernel: [ACPI Debug] String: Length 0x1E,  
"====BAT0 _BST UPBS() entry===="
Sep  6 15:00:16 localhost kernel: [ACPI Debug] String: Length 0x1B,  
"====BAT0 _BST End Error===="
Sep  6 15:00:16 localhost kernel: evregion-0347: *** Error: Handler for  
[EmbeddedControl] returned AE_TIME
Sep  6 15:00:16 localhost kernel:  dswexec-0435 [38] ds_exec_end_op         
: [Store]: Could not resolve operands, AE_TIME
Sep  6 15:00:16 localhost kernel:  psparse-1133: *** Error: Method  
execution failed [\_SB_.PCI0.LPC0.EC0_.SBR_] (Node c11e1b28), AE_TIME
Sep  6 15:00:16 localhost kernel:  psparse-1133: *** Error: Method  
execution failed [\_SB_.BAT0.UPBI] (Node c11e59a8), AE_TIME
Sep  6 15:00:16 localhost kernel:  psparse-1133: *** Error: Method  
execution failed [\_SB_.BAT0._BIF] (Node c11e4408), AE_TIME
Sep  6 15:00:16 localhost kernel: acpi_battery-0146 [30]  
acpi_battery_get_info : Error evaluating _BIF
--------------------------------------------------------------------------------------

	I have followed problem 1 and I have resolved it applying next diff to  
file /usr/src/linux/drivers/acpi/executer/exconvrt.c :
--------------------------------------------------------------------------------------
--- exconvrt.c 2004-08-25 03:08:16.000000000 +0200
+++ exconvrt.c.patched 2004-09-06 16:29:43.000000000 +0200
@@ -631,6 +631,7 @@
    case ACPI_TYPE_BUFFER_FIELD:
    case ACPI_TYPE_LOCAL_BANK_FIELD:
    case ACPI_TYPE_LOCAL_INDEX_FIELD:
+  case ACPI_TYPE_PACKAGE:
     /*
      * These types require an Integer operand.  We can convert
      * a Buffer or a String to an Integer if necessary.
------------------------------------------------------------------------------------

	And now the first error doesn't occurs, but I still have the second one.
	Also my patch just uses the function "acpi_ex_convert_to_integer" with an  
ACPI_TYPE_PACKAGE and that works, but I wonder if this is the best  
approach to the problem.

	Any idea about how to resolve problem 2 or improve the solution to  
problem 1?

	Regards and thanks in advance.
	
	P.S.: DSDT is correct except by the typical WAK warning, but I have tried  
it with a corrected DSDT and there was no change.


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click

                 reply	other threads:[~2004-09-06 15:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=opsdwwyjugae6s7i@mail.gmx.net \
    --to=alfredogarcia-hi6y0cq0ng0@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /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