Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Nov 2002 17:22:02 -0600
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Ertan Kucukoglu <ertank@softhome.net>
Cc:        David =?utf-8?Q?Sieb=C3=B6rger?= <drs@rucus.ru.ac.za>, freebsd-questions@FreeBSD.ORG
Subject:   Re: shutdown with power button
Message-ID:  <20021120232202.GA92797@dan.emsphone.com>
In-Reply-To: <3DDC1072.E63B59C0@softhome.net>
References:  <courier.3DD957B2.000078AC@softhome.net> <20021120092348.GA1516@rucus.net> <courier.3DDBAFCF.0000224B@softhome.net> <20021120223926.GB35255@dan.emsphone.com> <3DDC1072.E63B59C0@softhome.net>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Nov 21), Ertan Kucukoglu said:
> > Yes.  You can also tell the system whether to sleep or shutdown, for
> > every button ACPI has access to (handly for laptops where you want the
> > lid switch to shutdown the system instead of put it in standby, for
> > example).
> 
> Last question. Where to set it up? man pages etc. ?

I believe 5.0 will load acpi automatically if a module exists for it. 
If it doesn't, rebuild your kernel with "options acpi".

I don't think there are any real docs for it yet.  For setting the
switch states, run "sysctl hw.acpi" to list the switches acpi knows
about.  The switch names will all end in _state and have a value of
S0..S5, S0 being "full power", S1-S3 being different sleep states, S4
being hibernate (not supported afaik), and S5 being "power off".  Run
"sysctl -w hw.acpi.blahblah_state=S1" to set.

-- 
	Dan Nelson
	dnelson@allantgroup.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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