I was watching a Youtube video and playing around with a C++ script, when the OS got completely frozen.
I did Alt+SysRq+REISUB, so it rebooted.
But I am now able to login as guest only.
My user login (from which I was originally working) just idle for 10/15sec then blacks out, and I am at the login screen again.
Any hints?
I reinstalled lightdm, but nothing.
I installed lxde and I could access to my account, but it was still bad since I could only see the empty background, no unity bar or else.
So reading this https://askubuntu.com/questions/17381/unity-doesnt-load-no-launcher-no-dash-appears?noredirect=1&lq=1, I reinstalled unity-desktop (perhaps not needed), and the command
$ mv ~/.config/dconf/user ~/.config/dconf/user.oldsorted it out.Thank you – asdf1234 Sep 05 '17 at 04:27