Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Apr 2004 11:25:44 -0500
From:      Eric Anderson <anderson@centtech.com>
To:        Jesse Sheidlower <jester@panix.com>
Cc:        freebsd-mobile@freebsd.org
Subject:   Re: Activating ACPI suspend on lid close?
Message-ID:  <407C1488.9070408@centtech.com>
In-Reply-To: <407C10CE.4090401@centtech.com>
References:  <20040413160206.GA14154@panix.com> <407C10CE.4090401@centtech.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Eric Anderson wrote:
[..snip..]

>
> and /etc/rc.lid looks like:
> sync && sync && sync
>
> if [ $1 = 0x00 ]; then
>        logger -t Lid Close at `date +'%Y%m%d %H:%M:%S'`
>        /etc/rc.suspend acpi 3
> else
>        logger -t Lid Open at `date +'%Y%m%d %H:%M:%S'`
>        /etc/rc.resume acpi 3
> fi
>
One slight modification to the rc.lid script:
add:
( sleep 2 ; ataidle -s 0 0) &
before the "/etc/rc.suspend acpi 3" line to have it spin down and 
suspend the disk also.

Eric



-- 
------------------------------------------------------------------
Eric Anderson     Sr. Systems Administrator    Centaur Technology
Today is the tomorrow you worried about yesterday.
------------------------------------------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?407C1488.9070408>