From owner-acpi-jp@jp.FreeBSD.org Sun Nov 10 06:25:13 2002
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6+3.4W/8.11.3) id gA9LPDH85819;
	Sun, 10 Nov 2002 06:25:13 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from salmon.maths.tcd.ie (mmdf@salmon.maths.tcd.ie [2001:770:10:300::86e2:510b])
	by castle.jp.FreeBSD.org (8.11.6+3.4W/8.11.3) with SMTP/inet6 id gA9LPAm85813
	for <acpi-jp@jp.FreeBSD.org>; Sun, 10 Nov 2002 06:25:10 +0900 (JST)
	(envelope-from iedowse@maths.tcd.ie)
Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP
          id <aa12757@salmon>; 9 Nov 2002 21:25:04 +0000 (GMT)
To: Takanori Watanabe <takawata@axe-inc.co.jp>
cc: acpi-jp@jp.FreeBSD.org, current@freebsd.org, frode@nordahl.net
In-Reply-To: Your message of "Sun, 10 Nov 2002 06:12:49 +0900."
             <200211092112.GAA10487@axe-inc.co.jp> 
From: Ian Dowse <iedowse@maths.tcd.ie>
Message-ID:  <200211092125.aa12757@salmon.maths.tcd.ie>
Reply-To: acpi-jp@jp.FreeBSD.org
Precedence: list
Date: Sat, 09 Nov 2002 21:25:03 +0000
X-Sequence: acpi-jp 1935
Subject: [acpi-jp 1935] Re: acpid implementation? 
Errors-To: owner-acpi-jp@jp.FreeBSD.org
Sender: owner-acpi-jp@jp.FreeBSD.org
X-Originator: iedowse@maths.tcd.ie
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+021107

In message <200211092112.GAA10487@axe-inc.co.jp>, Takanori Watanabe writes:
>==
>Next way is that make /dev/acpictl node that can open
>exclusively and catch the power event by it, like apmd.
>==
>
>This way requires that the event reading proceess should 
>be only one, so we need another device node to read event.

Yes, exactly - I think that your suggestion of extending /dev/devctl
to support device-specific events to be handled by devd is a much
nicer solution though.

>options         PSM_HOOKRESUME          #hook the system resume event, useful
>                                        #for some laptops
>options         PSM_RESETAFTERSUSPEND   #reset the device at the resume event
>
>will resolve your problem without the patch.

Cool, thanks. I didn't know those options existed - I'll try them
out next time I reboot.

Ian
