ARCHIVES

August 2011
July 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
August 2008
July 2008
June 2008
May 2008
March 2008
February 2008
January 2008
November 2007



CONTACT
About this blog: Computers hate me. They really do. Every time I try to do something unusual like add new hardware, something is guaranteed to go wrong. I decided to start writing about my constant problems so that someone else might benefit from my experiences - or at least laugh at them!

  Quick tip: Disabling power button under FreeBSD

26 August 2008, 1:50pm      


Ever accidentally hit the power button on your FreeBSD machine? Even worse, on a machine that is doing some obscure task so you don't realise it has quietly powered off until sometime later? I have, several times, and I've finally found a fix:

/sbin/sysctl hw.acpi.power_button_state=NONE

This disables suspend/shutdown when the power button is pressed briefly. (You may still be able to force the BIOS to power off by holding down the button, but a quick press will be ignored.)




Related posts:
Don't unplug a mounted drive under FreeBSD!
Don't accidentally hold down your power button
FreeBSD sees through Seagate
FreeBSD gmirror: comparing the different load balancing algorithms
[Bong Cooler] Power supply heat catcher
Power supply knocking on death's door
FreeBSD hack to disable AHCI on Jmicron JMB363 controller