Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Emergency shutdown
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
TGL
Bodhisattva
Bodhisattva


Joined: 02 Jun 2002
Posts: 1978
Location: Rennes, France

PostPosted: Sun Jun 16, 2002 1:40 pm    Post subject: Emergency shutdown Reply with quote

Hi,

This mornig, XFree freezed my keyboard and mouse, and I had to reboot "à la Windows"... I really don't like this... It would be nice to have another machine, in order to telnet and kill XFree in such situation, but I don't.

So I wonder if their is a way to make an "emergency shutdown button", connected for example to the serial port, wich would launch a clean "shutdown -t now". I know ACPI demon can handle power button that way, but it doesn't seems to be supported on my hardware. As far as I know, some UPS power protection send such alert on serial port. So, that's it, I would like to make a device.

Any ideas ?
Back to top
View user's profile Send private message
TGL
Bodhisattva
Bodhisattva


Joined: 02 Jun 2002
Posts: 1978
Location: Rennes, France

PostPosted: Mon Jun 17, 2002 9:12 am    Post subject: Reply with quote

I've something interesting (at least for me): The UPS Howto describes how the serial port alert is send by an UPS and monitored by "powerd". I'll start to hack a small emergency device as soon as I'll have time. (But I will first try to solve my xfree hangs...)

http://www.tldp.org/HOWTO/UPS-HOWTO-5.html
Back to top
View user's profile Send private message
Sihaya
n00b
n00b


Joined: 21 Jun 2002
Posts: 1

PostPosted: Fri Jun 21, 2002 11:52 am    Post subject: Sysrq Reply with quote

The sysrq key can be configured to kill processes. Even if Xfree has crashed and locked the keyboard it 'll work.

Read /usr/src/linux/Documentation/sysrq.txt on how to configure it.
Back to top
View user's profile Send private message
TGL
Bodhisattva
Bodhisattva


Joined: 02 Jun 2002
Posts: 1978
Location: Rennes, France

PostPosted: Sun Jun 23, 2002 12:21 pm    Post subject: Reply with quote

Sihaya, your tip is great. I really thank you very much for that, I've been using linux for 4 years without seeing it in any book or tip's&tricks doc...

PS: for those who wonder where this option is hidden, have a look in "kernel hacking" section when you menuconfig.
Back to top
View user's profile Send private message
JefP@@
Apprentice
Apprentice


Joined: 09 May 2002
Posts: 179
Location: Belgium

PostPosted: Sun Jun 23, 2002 4:19 pm    Post subject: Reply with quote

sysrq will work, if your crash isn't gfx hardware related ... when my athlon crashes, while running an opengl application, it won't work ...


most of the time it works though ;)

Grtz
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum