I had this happen to me on Ubuntu 14.10 x86_64 with kernel 3.16.0-28 after loading Nvidia 346 drivers. After login I would get the blank Ubuntu background wallpaper and nothing else, no way to do anything. There are many similar problems posted online over the past four years; most of the solutions did not work for me. Attempting to restart unity I got an error:
compiz: plugin OpenGL not loaded.
Finally, this is what worked:
CTRL-ALT-F3 < ...to reach console, and then login. >
sudo apt-get install --reinstall ubuntu-desktop
sudo apt-get install unity
sudo killall nvidia-persistenced
sudo apt-get purge nvidia*
< see the error message, and get the process ### >
sudo kill -9 ###
< ... ### is from previous error; a process locking user "nvidia-persistenced" >
sudo apt-get purge nvidia*
sudo apt-get install nvidia-prime
sudo reboot
< ...wait... >
CTRL-ALT-F3 < ...to reach console, and then login. >
export DISPLAY=:0
sudo dconf reset -f /org/compiz/
gsettings reset org.compiz.core:/org/compiz/profiles/unity/plugins/core/ active-plugins
<...note space after 'core/' and before 'active-plugins' >
sudo reboot
...and then it worked. Would love not to have to go through that again!
See also:
https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/1166765
and
https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/1342339