Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want know if there's a way to change the action when the power key is pressed. I use Ubuntu 11.10 and when it is pressed it opens a small window with shutdown options. I want know how to change this, and make it open anything else. Is there a way to do that? And how?

share|improve this question

migrated from stackoverflow.com Nov 16 '11 at 4:18

This question came from our site for professional and enthusiast programmers.

1 Answer 1

You can change the action that happens when pressing the power button by entering this command into a terminal:

gsettings set org.gnome.settings-daemon.plugins.power button-power 'hibernate'

replace the 'hibernate' with the action you want.

Also take a look at this duplicate post for more information.

share|improve this answer

Your Answer

 
discard

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