Shutdown button only logs out ubuntu 15.04

Since i upgraded to Ubuntu 15.04, if i click on the shutdown button it only logs out and i have to click again on the shutdown button (from the ubuntu login screen) to power off the pc. How can i fix this?

Here is Solutions:

We have many solutions to this problem, But we recommend you to use the first solution because it is tested & true solution that will 100% work for you.

Solution 1

If you have docky installed this fixed the problem for both of my machines.

Ubuntu 15.04 Unity + Docky, Plank, or Cairo-Dock

(DOCKY)

cd ~/.config/autostart
nano docky.desktop
add X-GNOME-Autostart-Delay=20

(IF YOU USE CAIRODOCK)

cd ~/.config/autostart
nano cairo-dock.desktop
add X-GNOME-Autostart-Delay=20

Or you can just remove either one from autostart.

Example docky.desktop

[Desktop Entry]
Type=Application
Exec=docky
Hidden=false
NoDisplay=false
X-GNOME-Autostart-Delay=20
X-GNOME-Autostart-enabled=true
Name[en_US]=Docky
Name=Docky
Comment[en_US]=
Comment=

(IF YOU USE PLANK)

cd ~/.config/autostart
nano plank.desktop
add X-GNOME-Autostart-Delay=20

For example: cat ~/.config/autostart/plank.desktop

[Desktop Entry]
Type=Application
Exec=/usr/bin/plank
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
X-GNOME-Autostart-Delay=20
Name=Plank

Note: Still happens on Ubuntu 15.10

Solution 2

Here is a less-command method for fix this issue.
1.First you have to install unity tweak tool.
2.Then open it and go to “Security” tab under “System” section

unity tweak tool user interface

3.You can see that “User log out” option is checked, Unckeck it.

unity tweak tool Security tab

4.Restart your PC.

Solution 3

This is a common problem caused when you add plank, docky or some other such docks to the startup spplications. This problem can easily be corrected by having a delay of a few seconds between the logging in and the starting of the application.

This delay can be added easily through the terminal. For example, for docky, you can use the commands:

cd ~/.config/autostart
nano docky.desktop

add

X-GNOME-Autostart-Delay=20

or you can just remove such a program from autostart.

Note: Use and implement solution 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply