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.

Some months now, it's taking very long to logout/shutdown/reboot my ubuntu box.

  • it doesn't happen with a fresh profile
  • it still takes ages even when i close all running programs first (foreground programs)
  • sometimes a couple of applications are closed before the waiting time (eg. chrome, music player)
  • it happened with 11.10 and now 12.04
  • i did a fresh install of 12.04 but reinstalled all my programs and application settings/profiles (eg. chrome profile, music db, .bashrc etc.), still no solution
  • it happens only when i use the gnome way of rebooting/shutting down/logging out
  • when issuing "sudo reboot" in the terminal, there is no waiting time
  • there is no process eating CPU time
  • i have not found any evidence what is causing this whatsoever
  • i'm using "gnome-fallback" (gnome classic 2D)

what actions does gnome execute when clicking on eg. logout exactly? i want to trace these steps

any help is appreciated very much!

share|improve this question
Try "tail -F" with ~/.xsession-errors and/or look at ~/.xsession-errors.old after reboot. There might be some indication in there. Also, if you are seeing the splash while it is waiting (the Ubuntu logo and the dots), then remove "quiet" and "splash" from the kernel boot arguments to have more information while it is hanging. This might be related to mounted network shares. –  blueyed Jun 2 '12 at 20:57
thank you, i will investigate .xsession-errors (there are a lot of different messages). the hang is not when the ubuntu logo is displayed but i still see the desktop or some foreground program. and i have not network shares –  Flo Hallo Jun 3 '12 at 20:29
Are you using Squid (a HTTP proxy) by any chance? This might add 30 seconds (shutdown lifetime, can be configured to be 0). –  blueyed Oct 9 '13 at 0:34
Using bootchart will show you what's happening at boot at least, example bootchart.org/samples.html#Debian. Though it does take some interpreting. You can "sudo apt-get install bootchart". Flicking to a console, eg Ctrl+Alt+F1, and watching "less +F /var/log/syslog" (or use tail) will give you some ideas what is happening at logout too. –  pbhj 2 days ago

Your Answer


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

Browse other questions tagged or ask your own question.