Author Topic: Power button  (Read 1473 times)

Syranolic

  • Zen Apprentice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Power button
« on: October 04, 2010, 11:03:14 pm »
This has been already discussed with the use of virtual machine. But if you want your "real" power button to shut down the server it's the same. You will need this:
Code: [Select]
sudo apt-get install acpid.

Very convenient when I screw up my config since I don't usually have a local shell to shutdown.

kila

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Power button
« Reply #1 on: October 04, 2010, 11:39:44 pm »
Some modification: To poweroff only if the power button is pressed twice
http://blog.metalight.dk/2010/07/ubuntu-lucid-custom-power-button-event/

DobleIT

  • Zen Apprentice
  • *
  • Posts: 39
  • Karma: +0/-0
  • Windows Sysadmin turning to the dark side
    • View Profile
    • Doble IT - Computing Made Easy
Re: Power button
« Reply #2 on: October 08, 2010, 07:27:28 pm »
Handy! Maybe this could be added into Zentyal as a tickbox in the configuration somewhere under system?

Like ... "Enable HALT when power button is pressed"

Cheers!
James