Subject: port-i386/10459: apm(4) interface needs being revised
To: None <gnats-bugs@gnats.netbsd.org>
From: None <itohy@netbsd.org>
List: netbsd-bugs
Date: 06/26/2000 18:58:12
>Number:         10459
>Category:       port-i386
>Synopsis:       apm(4) interface needs being revised
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-i386-maintainer
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 26 18:59:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     ITOH Yasufumi
>Release:        1.5A (June 26, 2000)
>Organization:
	
>Environment:
System: NetBSD pino.my.domain 1.4Z NetBSD 1.4Z (PINO) #199: Sat Jun 3 09:05:23 JST 2000 itohy@pino.my.domain:/usr/src/sys/arch/i386/compile/PINO i386


>Description:
	APM 1.1 can handle

		abstract capacity: high / low / critical
		charging status:   charging / not charging
		battery presence:  present / not present

	separately but our apm(4) interface mixes them (like APM 1.0).

	This make it impossible to pass APM information such as
	"capacity low *and* charging", which becomes just "capacity high".

>How-To-Repeat:
	Try apm(8) or xbatt(1) (pkgsrc/sysutils/xbatt) and you will
	never see that the battery is in "charging" state.

>Fix:
	Make changes to struct apm_power_info and the ioctl.

>Release-Note:
>Audit-Trail:
>Unformatted: