Koozali.org: home of the SME Server

Shut Down Button

Stefan Brunnengraeber

Shut Down Button
« on: September 14, 2002, 04:18:46 AM »
Hello,

is there an easy way to fetch the signal of the power button of an ATX motherboard to make a good shutdown -h now instead of stealing the servers power?

A small piece of software etc..
In SuSE Linux I think, this is possible via software, but I'm not firm in searching this in the code ... :-)

Thanks.

Stefan
Germany

David Pennycuick

Re: Shut Down Button
« Reply #1 on: September 14, 2002, 02:27:55 PM »
Not quite sure what you are looking for but this might help...
I have set up a ups monitor daemon (powerd) to monitor /dev/ttys0 - even though I have no ups on the server..  I have put a toggle switch between RTC and CTS and set powerd to detect CTS high and trigger shutdown in zero minutes.  I use this on a family server so it is easy for the kids to shut it down when storms threaten.
HTH

regards
David

Stefan Brunnengraeber

Re: Shut Down Button
« Reply #2 on: September 14, 2002, 03:06:10 PM »
Hello,

thanks.
The mainly achieved thing is to prevent a hard power down if I press the power switch at the frontpanel of the server.
I'm searching for a solution to get a shutdown -h now when someone presses the power button.

I have a Spacewalker housing, look at www.spacewalker.com

Stefan

Jaime Nebrera

Re: Shut Down Button
« Reply #3 on: September 16, 2002, 05:59:10 PM »
Hi all,

  Maybe you can read this articles and get some ideas. It feets quite well what you are looking for.

http://www.linuxfocus.org/English/January2001/article186.shtml

http://www.linuxfocus.org/English/July2002/article239.shtml

  Hope it helps. Regards

Lynn

Re: Shut Down Button
« Reply #4 on: December 24, 2002, 01:24:55 AM »
thing is, all modern PCs have a shut down button built in - the power button, and ACPI to control it.

Windows will shut down gracefully with the power button, so shirley Linux must?

Anyway to enable that?