Hi,
>>>>> On Fri, 11 Jul 2003 20:21:07 -0700
>>>>> Nate Lawson <[EMAIL PROTECTED]> said:
nate> I am attempting to import acpica-0619 into FreeBSD. The basic changes I
nate> made to get things working was to change calls to AcpiGetObjectInfo to use
nate> an ACPI_BUFFER and AcpiEnableGpe instead of AcpiEnableEvent for enabling
nate> our GPE handlers for the EC. With my changes, it compiles and boots fine.
nate> But it seems battery support is broken. Here is the dmesg output.
I met similar problem and I cannot get battery status at all on
today's -CURRENT.
ACPI-0432: *** Error: Handler for [EmbeddedControl] returned
AE_NO_HARDWARE_RESPONSE
ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.ISA_.EC0_.RBAT] (Node
0xc3138f20), AE_AML_NO_RETURN_VALUE
ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.ISA_.EC0_.RVSN] (Node
0xc3138ea0), AE_AML_NO_RETURN_VALUE
ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.ISA_.EC0_.BAT0._BST]
(Node 0xc3138dc0), AE_AML_NO_RETURN_VALUE
[EMAIL PROTECTED]:1012% apm
APM version: 1.2
APM Management: Disabled
AC Line status: on-line
Battery status: charging
Remaining battery life: invalid value (0xffffffff)
Remaining battery time: unknown
Number of batteries: 2
Battery 0:
Battery status: not present
Battery 1:
Battery status: not present
Resume timer: Thu Jan 1 08:59:59 1970
Resume on ring indicator: disabled
APM Capabilities:
unknown
[EMAIL PROTECTED]:1013% sysctl hw.acpi.battery
hw.acpi.battery.life: -1
hw.acpi.battery.time: -1
hw.acpi.battery.state: 7
hw.acpi.battery.units: 2
hw.acpi.battery.info_expire: 10
nate> I've attached the diff. Please let me know if there's something I should
nate> be aware of that changed calling _BIF.
Unfortunately, the patch couldn't be compiled.
cc -O -pipe -march=pentium3 -I/usr/src/sys/modules/acpi/../../contrib/dev/acpica
-D_KERNEL -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions
-std=c99 -DKLD_MODULE -nostdinc -I-
-I/usr/src/sys/modules/acpi/../../contrib/dev/acpica -I. -I@ -I@/dev -I@/../include
-fno-common -g -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding
-Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -c
/usr/src/sys/dev/acpica/acpi.c
/usr/src/sys/dev/acpica/acpi.c: In function `acpi_identify':
bus_if.h:79: warning: inlining failed in call to `BUS_ADD_CHILD'
/usr/src/sys/dev/acpica/acpi.c:264: warning: called from here
/usr/src/sys/dev/acpica/acpi.c: In function `acpi_isa_get_logicalid':
/usr/src/sys/dev/acpica/acpi.c:716: warning: passing arg 2 of `AcpiGetObjectInfo' from
incompatible pointer type
/usr/src/sys/dev/acpica/acpi.c:722: error: request for member `Value' in something not
a structure or union
/usr/src/sys/dev/acpica/acpi.c:722: error: request for member `Value' in something not
a structure or union
/usr/src/sys/dev/acpica/acpi.c:722: error: request for member `Value' in something not
a structure or union
/usr/src/sys/dev/acpica/acpi.c:722: error: request for member `Value' in something not
a structure or union
/usr/src/sys/dev/acpica/acpi.c:722: error: request for member `Value' in something not
a structure or union
/usr/src/sys/dev/acpica/acpi.c:722: error: request for member `Value' in something not
a structure or union
/usr/src/sys/dev/acpica/acpi.c:722: error: request for member `Value' in something not
a structure or union
. . .
Sincerely,
--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
[EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED],jp.}FreeBSD.org
http://www.imasy.org/~ume/
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"