I recently installed nvidia's cuda toolkit in ubuntu 12.04. After restarting the computer, it stays in console mode. When I run sudo service lightdm restart, it gets stuck mid execution and the computer remains in console mode after a forced reboot. What can be done here?
I solved the issue by uninstalling the cuda driver (via an nvidia purge command) included in the sdk and using instead the one provided here.
sudo service lightdm restart worked fine then.