Activating ACPI suspend on lid close?

Eric Anderson anderson at centtech.com
Tue Apr 13 09:25:54 PDT 2004


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.
------------------------------------------------------------------



More information about the freebsd-mobile mailing list