do you have some process from your user still running before login to your desktop again (you can switch to a VT with ctrl-alt-f1 and run "ps aux" for it to note that)? Does it work if you stop them? How do you restart X when you get the issue?
-- gnome-session hangs after X restart. https://launchpad.net/bugs/57154 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs