Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've got a small media server that sits under my TV, and it runs Ubuntu 11.04 desktop x64 with XBMC on top. I've got a problem in that unknowing users / visitors occasionally press the power button 'just to see what happens'. Ubuntu dutifully intercepts this and either sleeps or halts.

This is really annoying.

One possible option is to just disconnect the power button from the motherboard, as I've done with the reset button. However, I'd still like to be able to power it back on if I choose to halt it myself, for whatever reason, or if it completely locks up.

How can I get Ubuntu to effectively 'ignore' people randomly prodding at the power button while it's turned on?

share|improve this question
Possible duplicate? (…) - its probably the dconf-editor setting in that answer. – fossfreedom Dec 31 '11 at 12:47
wouldn't call that a duplicate as the problems are differently described, although the answer is universal enough for both of them. – Paulius Šukys Dec 31 '11 at 13:17

Bruno Pereira has made a thorough post about the power button and how to customize the actions. In short: By using dconf-editor (either you'll have it or you'll need to install it) and navigate to org/gnome/settings-daemon/plugins/power and choose power-button as blank.

share|improve this answer
I just tried to follow this, and noticed that I don't have a settings-daemon entry under org.gnome. gnome-settings-daemon is installed, but not running. – growse Jan 1 '12 at 17:44
uhm, I'm not sure at this point. What do you mean by not running? does it have equivalent entrier such as plugins/power? – Paulius Šukys Jan 1 '12 at 22:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.