I recently installed Ubuntu 14.04. Shutdown and logout from the top panel are not working.
They worked fine when installing the OS, but a few days back I installed fglrx drivers for my ATI graphics card. They didn't work and I got low resolution problems and Ubuntu didn't boot. I solved it by removing the fglrx graphic driver from the recovery mode and Ubuntu started to boot and work just fine, at least that's what I thought.
But now the shutdown and logout options in the top panel don't work. I have to logout using ctrl+alt+delete and shutdown with the shutdown option in the top panel (shutdown option works after logging out but not when logged in as a user).
I re-installed Ubuntu 14.04 LTS and shutdown options worked fine but after installing updates they stopped working again. I thought its the graphic driver fglrx installation problem but now i know its not that. I think its a problem with some file that got installed from Ubuntu updates.
Does any one know how to solve it?
No need to remove cairo-dock from start-up applications.
Use one of the these solutions:
~/.config/autostart
and add this code,X-GNOME-Autostart-Delay=20
Steps to solve easily (tested in Ubuntu 14.04)
gedit
without root~/.config/autostart/cairo-dock.desktop
Add this
Save and close
Delay time more than 20 works fine.
or:
Select cairo-dock startup application from startup application and change command option to:
source here and here
or
Create a script called
startdock
, with the textMake it executable, and in the startup items add a new command with path to this script.
This is a bug as indicated in a comment. The bug report states that
Unity's shutdown/restart dialogue is not working when another application is registered to LauncherEntry interface of Unity DBus. It seems we have this bug when Cairo-Dock (and its Launcher-API-Deamon), DockbarX or Plank are launched before Unity.
To solve the same problem with Plank dock, replace
cairo-dock
withplank
in one of the above solutions. The same for other applications.This method is better than the others since the problem is solved and Cairo Dock starts with almost no delay.
Edit
/usr/lib/x86_64-linux-gnu/cairo-dock/cairo-dock-launcher-API-daemon
as root.Add the following line at line 33:
from time import sleep
and the following line at line 241 (just before ULWatcher()):
sleep(5)
Then, restart the session.
If you're using a 32bit version of Ubuntu, the file will probably be in -
/usr/lib/cairo-dock/cairo-dock-launcher-API-daemon
This solution has been taken from the Launchpad Bug Page.
Shutdown using power menu
You can shutdown your system alternatively. Press Power Button and it should display menu with options to choose from:
Choose shutdown. It will work.
Screenshot
Shutdown using terminal
sudo shutdown -h now
You're done.
I too have faced this problem and now the problem is solved. So, here I am going to share my experiences: First use shortcut key Alt+Ctl+L and lock your Ubuntu and then from the top right corner click on the setting button and then click on switch user. Then, Click on the setting button and then click on shutdown. Start your computer again. Now you can easily shutdown from the top panel.
Hope you will get your problem solved. Thanks !
try this
find the line
and change it to
save the file and close it.
now run
now i think your problem solved.
Removing Cairo-dock from the startup applications solved my problem its due to a bug as commented by Xeranas