I've got infinite loop problem after installing CUDA (which automatically install nvidia driver). I have tried removing nvidia driver with
sudo apt-get remove --purge nvidia-*
sudo apt-get install ubuntu-desktop
and removing /etc/X11/xorg.conf, but the problem is still not solved. I have also tried logging into tty and run startx from there, but with no luck.
My laptop has a Intel integrated graphics controller, and a nvidia Geforce 970M video card. Right now when I run lspci, I can see it's running on the Intel graphics controller.
Any idea how to solve this login loop problem?
The message in ~/.xsession-errors is listed below:
Xlib: extension "GLX" missing on display ":0".
Script for ibus started at run_im.
init: gnome-session (Unity) main process (1761) terminated with status 1
init: unity-settings-daemon main process (1752) killed by TERM signal
init: logrotate main process (1652) killed by TERM signal
init: update-notifier-crash (/var/crash/_opt_google_chrome_chrome.1000.crash) main process (1691) killed by TERM signal
init: update-notifier-crash (/var/crash/_usr_lib_x86_64-linux-gnu_indicator-application_indicator-application-service.1000.crash) main process (1696) killed by TERM signal
init: xsession-init main process (1748) killed by TERM signal
init: hud main process (1757) killed by TERM signal
init: Disconnected from notified D-Bus bus
init: unity-panel-service main process (1766) killed by TERM signal
Xsession: X session started for root at Wed Nov 11 05:49:16 EST 2015
localuser:root being added to access control list
Script for ibus started at run_im.
Script for ibus started at run_im.
Xlib: extension "GLX" missing on display ":1".
Xlib: extension "GLX" missing on display ":1".
Xlib: extension "GLX" missing on display ":1".
gnome-session-is-accelerated: No hardware 3D support.
gnome-session-check-accelerated: Helper exited with code 256
Xlib: extension "GLX" missing on display ":1".
Xlib: extension "GLX" missing on display ":1".
Xlib: extension "GLX" missing on display ":1".
gnome-session-is-accelerated: No hardware 3D support.
gnome-session-check-accelerated: Helper exited with code 256
x-session-manager[2248]: WARNING: software acceleration check failed: Child process exited with code 1
x-session-manager[2248]: CRITICAL: We failed, but the fail whale is dead. Sorry....