Re: shutdown with power button

2002-11-20 Thread David Siebörger
At 11:12 PM on Monday 18 November 2002, [EMAIL PROTECTED] wrote:
 I want to learn if there is a way to make the system shutdown with the key 
 on the case. 

Provided your system supports ACPI, that feature will be available in
FreeBSD 5.


-- 
David Siebörger
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: shutdown with power button

2002-11-20 Thread ertank
David Siebörger writes: 

At 11:12 PM on Monday 18 November 2002, [EMAIL PROTECTED] wrote:

I want to learn if there is a way to make the system shutdown with the key 
on the case. 

Provided your system supports ACPI, that feature will be available in
FreeBSD 5.


Does 5.0 DP2 has this feature? 

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: shutdown with power button

2002-11-20 Thread Dan Nelson
In the last episode (Nov 20), [EMAIL PROTECTED] said:
 David Siebörger writes: 
 
 At 11:12 PM on Monday 18 November 2002, [EMAIL PROTECTED] wrote:
 I want to learn if there is a way to make the system shutdown with the 
 key on the case. 
 
 Provided your system supports ACPI, that feature will be available in
 FreeBSD 5.
 
 Does 5.0 DP2 has this feature? 

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

-- 
Dan Nelson
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: shutdown with power button

2002-11-20 Thread Dan Nelson
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
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



shutdown with power button

2002-11-18 Thread ertank
Hello, 

I want to learn if there is a way to make the system shutdown with the key 
on the case. 

I searched the mailing list but could not find a solution. Also, man apm and 
man apmd does not have some option for me that I could find. 

My problem is if I press the case power key, system just cuts the power off. 
And, this yields to a fsck on the next boot. I want the system to issue 
'shutdown -p now' command if somebody accidentally presses the power key of 
the case. 

Best Regards, 

--
Ertan Kucukoglu
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message