Subject: port-i386/10459: apm(4) interface needs being revised
To: None <>
From: None <>
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
>Originator:     ITOH Yasufumi
>Release:        1.5A (June 26, 2000)
System: NetBSD 1.4Z NetBSD 1.4Z (PINO) #199: Sat Jun 3 09:05:23 JST 2000 i386

	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".

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

	Make changes to struct apm_power_info and the ioctl.