From owner-freebsd-current Sat Nov 9 11:22:50 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9298F37B401 for ; Sat, 9 Nov 2002 11:22:49 -0800 (PST) Received: from axe-inc.co.jp (axegw.axe-inc.co.jp [61.199.217.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 53C4043E6E for ; Sat, 9 Nov 2002 11:22:48 -0800 (PST) (envelope-from takawata@axe-inc.co.jp) Received: from localhost.axe-inc.co.jp (localhost.axe-inc.co.jp [127.0.0.1]) by axe-inc.co.jp (8.9.3+3.2W/3.7W) with SMTP id EAA09939; Sun, 10 Nov 2002 04:22:45 +0900 (JST) Message-Id: <200211091922.EAA09939@axe-inc.co.jp> X-Authentication-Warning: axegw.axe-inc.co.jp: localhost.axe-inc.co.jp [127.0.0.1] didn't use HELO protocol To: acpi-jp@jp.FreeBSD.org Cc: current@freebsd.org, Frode Nordahl Subject: Re: [acpi-jp 1925] Re: acpid implementation? In-reply-to: Your message of "Fri, 08 Nov 2002 14:40:59 PST." <3DCC3D7B.F062FFA3@mindspring.com> Date: Sun, 10 Nov 2002 04:22:45 +0900 From: Takanori Watanabe Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <3DCC3D7B.F062FFA3@mindspring.com>, Terry Lambert wrote: >Hiten Pandya wrote: >> > I have been searching mailing lists and my friend Google for information >> > about a acpid (like apmd) implementation for FreeBSD, but I have found >> > nothing. >> > >> > Does one exist anywhere, or has anyone started out on something without >> > telling anyone? :) >> >> Why do you need an acpid? > >Power profiles, for one. It is obious there will be good if we have a way to catch power event from userland. I have some ideas to implement it. One way is implement with kqueue(2) and /dev/acpi to get power events. This way does not require daemons to wait the event exclusively. Each process that requires to get power event can handle it by the interface. I wrote the experimental code a years ago. Next way is that make /dev/acpictl node that can open exclusively and catch the power event by it, like apmd. The last way is that extend /dev/devctl interface and devd(8) that can handle power event. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message