From owner-freebsd-hackers Fri Jan 12 10:11:16 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from meow.osd.bsdi.com (meow.osd.bsdi.com [204.216.28.88]) by hub.freebsd.org (Postfix) with ESMTP id 8759037B402 for ; Fri, 12 Jan 2001 10:10:58 -0800 (PST) Received: from laptop.baldwin.cx (john@jhb-laptop.osd.bsdi.com [204.216.28.241]) by meow.osd.bsdi.com (8.11.1/8.9.3) with ESMTP id f0CI9q133471; Fri, 12 Jan 2001 10:09:52 -0800 (PST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20010113024339Z.iwasaki@jp.FreeBSD.org> Date: Fri, 12 Jan 2001 10:10:32 -0800 (PST) From: John Baldwin To: Mitsuru IWASAKI Subject: Re: CFR: Generalized power-management interface Cc: hackers@FreeBSD.org Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 12-Jan-01 Mitsuru IWASAKI wrote: > Hi, > > I've update the patch based on some comments so far and added wmpm > (actually ACPI support for wmapm which is utility for WindowMaker) > ports files as a example. > > http://people.freebsd.org/~iwasaki/acpi/power-20010113.tar.gz > http://people.freebsd.org/~iwasaki/acpi/wmpm-20010113.tar.gz > > Note that ioctl number for power device have been changed, so rebuilding > your kernel and recompiling lib/libpower/ and usr.sbin/power/ are needed. > Added API is; > > u_int power_get_pm_type(void); > > I'll get device major number for /dev/power and commit them within a > few days if no objection. One thing that I was talking about with Mike Smith is that perhaps instead of having a /dev/power just for power management stuff we should be a bit more generic and have a /dev/health used for anything related to the machine's "health"? This could include power management, thermal zones, etc. BTW, the battery status doesn't work on my laptop unfortunately, but that is because I have to have the Super IO (and thus all GPIO) disabled to get ACPI to boot. :( > Thanks -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message