[Gllug] Interrupt from power button?

ar at serendipity.bleepbleep.org.uk ar at serendipity.bleepbleep.org.uk
Sun Sep 19 13:44:54 UTC 2004


Quoting John Winters <john at sinodun.org.uk>:

> One of the favourite ways to recover an XP workstation which has locked
> up is to hit the power button.  This seems to send some sort of signal
> to the OS causing it to shut down in an orderly fashion.
> 
> Is it possible to detect the same signal in Linux?  I'm thinking of
> setting up a small headless print server (using a spare Mini-ITX box)
> for very occasional use.  It would be nice if users could just hit the
> power button to turn it on and then press the same button to switch it
> off when they've finished.  Is there an entry I can make in /etc/inittab
> to have init detect this?

I did a google search on 'linux power button signal' and got useful results.
You might try acpid, which I believe should allow you to catch the power button
signal.

Regards,
Andrew Roberts.



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list