Subject: port-i386/30369: apm claims battery remaining be 0 percent on pavilion zt3030ea
To: None <port-i386-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: Hanspeter Roth <hampi@rootshell.be>
List: netbsd-bugs
Date: 05/29/2005 21:02:00
>Number:         30369
>Category:       port-i386
>Synopsis:       apm claims battery remaining be 0 percent on pavilion zt3030ea
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 29 21:02:00 +0000 2005
>Originator:     Hanspeter Roth
>Release:        NetBSD 3.99.3
>Organization:
>Environment:
	
	
System: NetBSD goofy.here 3.99.3 NetBSD 3.99.3 (ACPI) #0: Sun May 29 20:25:53 CEST 2005 user@goofy.here:/usr/src/sys/arch/i386/compile/ACPI i386
Architecture: i386
Machine: i386
>Description:
	On an HP Pavilion zt3030EA `apm' claims the Battery remaining be 
	0 percent (0 minutes) with acpibat* disabled.
	With acpibat* enabled `envstat -r' yields

       acpibat0 present
    acpibat0 design cap:      3.729 Ah
 acpibat0 last full cap:      3.729 Ah
    acpibat0 technology:          1
acpibat0 design voltage:     14.800 V
      acpibat0 warn cap:      0.373 Ah (10.00%)
       acpibat0 low cap:      0.000 Ah ( 0.00%)
       acpibat0 voltage:     15.023 V
acpibat0 discharge rate:      1.068 A
        acpibat0 charge:      1.935 Ah (51.89%)
   acpibat0 discharging
 acpiacad0 disconnected

	With acpibat* disabled `apm' should display the appropriate value
	for `Battery remaining'.

>How-To-Repeat:
	boot kernel with acpibat* enabled
	envstat -r
	boot kernel with acpibat* disabled
	apm
>Fix: