Date: Thu, 25 Oct 2001 01:22:43 +0900 (JST) From: Mitsuru IWASAKI <iwasaki@jp.FreeBSD.org> To: acpi-jp@jp.freebsd.org Cc: arch@freebsd.org, audit@freebsd.org Subject: ACPI: APM compatibility implementation Message-ID: <20011025.012243.71082514.iwasaki@jp.FreeBSD.org>
next in thread | raw e-mail | index | archive | help
Hi, I've just started implementation of APM compatibility stuff for FreeBSD/i386. The goal is to support most APM applications (binary) w/o any changes on ACPI enabled kernel. This emulates APM device node interface APIs (mainly ioctl) and provides APM services for the applications. The patches at: http://people.freebsd.org/~iwasaki/acpi/acpi_compat_apm-20011025.diff Currently following ioctls are implemented; - APMIO_SUSPEND (mapped S3 as default but can be changed by sysctl) - APMIO_STANDBY (mapped S1 as default but can be changed by sysctl) - APMIO_GETINFO and APMIO_GETINFO_OLD - APMIO_GETPWSTATUS Many APM applications are already supported. apmopen, apmclose, apmwrite, apmpoll and following ioctls are fake :-p - APMIO_ENABLE - APMIO_DISABLE - APMIO_HALTCPU - APMIO_NOTHALTCPU - APMIO_DISPLAY - APMIO_BIOS My apm reports correct info with ACPI kernel as follows. % apm APM version: 1.2 APM Managment: Enabled AC Line status: off-line Battery status: high Remaining battery life: 99% Remaining battery time: 3:18:00 Number of batteries: 1 Battery 0: Battery status: high Remaining battery life: 99% Remaining battery time: 3:18:00 Resume timer: Thu Jan 1 08:59:59 1970 Resume on ring indicator: disabled APM Capacities: unknown Any comments are welcome. I'll commit this coming weekend. Thanks To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011025.012243.71082514.iwasaki>