Subject: Re: Call for testers: power management branch
To: Joerg Sonnenberger <joerg@britannica.bec.de>
From: Jared D. McNeill <jmcneill@invisible.ca>
List: current-users
Date: 11/27/2007 14:23:23
On Tue, 27 Nov 2007, Joerg Sonnenberger wrote:
> Use something like the attached script for powerd.

This won't always work, as sometimes the switch from X to console times 
out. You need to check the current console in a loop until you confirm 
that you have seen a successful switch. See:

   http://ftp.netbsd.org/pub/NetBSD/misc/jmcneill/pm/sleep_button

for an example.

Cheers,
Jared