Xserver keeps crashing on my general user account both in Unity 3D and 2D. It doesn't do it on the guest account.
That's why I want to reset / rollback everything xserver related, hoping this is going to fix it.
Most answers on this involve sudo dpkg-reconfigure xserver-xorg. However, this does nothing for me (generates no output) and I read in other forums, that it's deprecated.
So, what's the current way to reset all xserver / xorg options; what's the alternative to sudo dpkg-reconfigure xserver-xorg? X crashes during work, not before login or so. And the effect of a crash is, that I get thrown out of the session, not a freeze or machine crash.
4 Answers
If your guest account is not affected this could be a user-specific setting that is causing the problem. Try deleting ~/.config/monitors.xml
The alternative to sudo dpkg-reconfigure xserver-xorg is sudo X -configure
To reconfigure packages that are already installed, you can refer to:
Ubuntu Manpage: dpkg-reconfigure - reconfigure an already installed package
Using the terminal:
If you've got to a blank screen while booting up, press CTRL + ALT + F1 to access the terminal.
Then, depending on your desktop environment, terminate the X using:
For Gnome (Ubuntu):
sudo /etc/init.d/gdm stopFor KDE (Kubuntu):
sudo /etc/init.d/kdm stopFor Xfce (Xubuntu):
sudo /etc/init.d/xdm stop
For the reconfiguration process:
sudo dpkg-reconfigure xserver-xorgNote: A backup is always recommended before running the configuration, so you can do it using:
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backupRestart the GUI:
Again, this depends on the desktop environment, so:
For Gnome (Ubuntu):
sudo /etc/init.d/gdm startFor KDE (Kubuntu):
sudo /etc/init.d/kdm startFor Xfce (Xubuntu):
sudo /etc/init.d/xdm start
If fail to perform the above steps, one can always edit the /etc/X11/xorg.conf manually and replace the file contents.
Refer to:
6After trying all you guys mentioned here I solved the very same problem by setting ownership (and permissions) of .Xauthority and .ICEauthority (located inside: /home/username/ folder) back to my general user.
to check own/perm start tty1 (CTRL+ALT+1) and login, take superuser (sudo su) and:
cd /home/username/
ls -a -l in my case .Xauthority wasn't even readable by my general user, so first I had to chmod:
chmod 775 .Xauthoritythen:
chown username .Xauthority
chown username .ICEauthorityafter this, reboot and try to login -- it worked for me.
Another note: I faced this problem after iterative experiments with xorg.conf and NVidia drivers - trying to setup 3 monitors with 2 cards. So, I spent huge amount of time trying to solve the problem playing around xserver and video settings -- while the reason of crash was totally unrelated.
1