Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Apr 2004 11:09:50 -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:  <407C10CE.4090401@centtech.com>
In-Reply-To: <20040413160206.GA14154@panix.com>
References:  <20040413160206.GA14154@panix.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Jesse Sheidlower wrote:

>I'm running 5.2-CURRENT on an IBM ThinkPad T41p. Though I had
>originally had some of the problems others here have reported,
>as with USB on resume, things seems to have cleared up by now;
>I'm not sure why (perhaps something recent with ACPI support
>in CURRENT has helped).
>
>I can successfully suspend with "zzz" or "acpiconf -s 3", and
>resume by hitting the power button. But shutting the cover
>does nothing. Opening the cover, after having suspended with
>either of the above, _does_ resume, however.
>
>Is this something I need to configure somewhere, or is it
>something that will never work, or what?
>  
>
Here's what I have set up on my Dell D600:
in /etc/sysctl.conf:
hw.acpi.video.lcd0.active=1
hw.acpi.lid_switch_state=NONE

and in /etc/devd.conf:
notify 10 {
        match "system"          "ACPI";
        match "subsystem"       "Lid";
        action                  "/etc/rc.lid $notify";
};

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


Hope that helps.

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?407C10CE.4090401>