jump to navigation

Post-it: how to revive X on Ubuntu after nvidia kills it 2017-04-12

Posted by claudio in Uncategorized.
Tags: , , , ,
trackback

20180503: Updated for Ubuntu 18.04

I am not a hug fan of the Linux Nvidia drivers*, but once in a while I try them to check the performance of the machine. More often than not, I end up in a console and no X/Wayland.

I have seen some Ubuntu users reinstalling their machine after this f* up, so here my notes to fix it (I always forget the initramfs step and end up wasting a lot of time):

$ sudo apt-get remove --purge nvidia-*

If /etc/X11/xorg.conf is present (often not the case in Ubuntu 18.04), backup it:

$ sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf_pre-nvidia

On recent releases, this step is not longer necessary because it’s automatically triggered by step 1:

$ sudo update-initramfs -u

Reboot the computer:
$ reboot

*: I am not a fan of the Windows drivers either now that Nvidia decided to harvest emails and track you if you want updates.

Advertisements

Comments»

No comments yet — be the first.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

%d bloggers like this: