1

When pressing the powerbutton in Xubuntu 14.04 a menu prompt would show and allow me to logout/shutdown/... etc.

Now that I have installed Ubuntu 14.04 this is not the case anymore.

How can I activate this menu?

king_julien
  • 754
  • 1
  • 14
  • 31

1 Answers1

3

Command-line method:

Open a terminal by first pressing Alt+F2 and the typing "terminal") and type the following:

gsettings set org.gnome.settings-daemon.plugins.power button-power "interactive"

Graphical method:

For a graphical way to get the menu, you need to install dconf-editor; install it from the software center by typing the name of the application or from a terminal using sudo apt-get install dconf-editor and then open the application by first pressing Alt+F2 and then typing dconf-editor.

On opening the application, from the left side menu go to org -> gnome -> settings-daemon -> plugins -> power and then in "button-power" choose "interactive".

jobin
  • 27,142
  • 16
  • 100
  • 116
  • Both options don't work. :( The CLI method does not have an effect. The second method does not work because there is no section for `org`. Here's a screenshot: https://www.dropbox.com/s/yqpw3w8nxd9z2s0/powerbutton.png – king_julien Jun 22 '14 at 07:05
  • @king_julien: Are you able to auto-complete when you start typing `gsettings set org.gnome.settin` using the tab key? – jobin Jun 22 '14 at 07:39
  • Yes, up until `org.gnome.settings-daemon.plugins.power`. – king_julien Jun 22 '14 at 07:50
  • 1
    Aha! I finally figured out what's going on. 2 things: 1) I mistakenly used the `gconf-editor` instead of the `dconf-editor` 2) The power-button press works. But I have to **press is it for about a second at least** in order for the menu to reveal itself. – king_julien Jun 22 '14 at 07:57
  • in my case, the key was `power-button-action` – Albert221 Feb 07 '18 at 00:48