Haxin Mainframes

A blog about stuff I do, find interesting, or want to blab about..

Using nVidia Drivers on a Thinkpad W530


To get the nVidia Drivers working with a w530 laptop you must select the Discrete Video Driver in the BIOS.

Then run the following to install the ?latest? (using sudo apt-get install nvidia-current may be better) nvidia drivers:

sudo add-apt-repository -y ppa:ubuntu-x-swat/x-updates; sudo apt-get update; sudo apt-get install nvidia-331

The driver install should automatically create a new xorg.conf but if not you can run:

sudo nvidia-xconfig

Some people even chose to purge the previous integrated drivers:

sudo apt-get purge xserver-xorg-video-nouveau

Add blacklist it from the kernel (if there is no blacklist-nouveau.conf in /etc/modprobe.d/ you can just create it):

sudo vim /etc/modprobe.d/blacklist-nouveau.conf

Adding these lines:

blacklist nouveau
blacklist lbm-nouveau
options nouveau modeset=0
alias nouveau off
alias lbm-nouveau off

(A StackOverflow post also shows another way)[http://askubuntu.com/questions/451221/ubuntu-14-04-install-nvidia-driver] to disable/blacklist the driver:

sudo echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf
sudo update-initramfs -u

This worked great until I had a system update. I rebooted and my laptop was flashing, trying to “startx” but failing over and over, could not even switch to a terminal via ctr-alt-f1

It sounds like this can be fixed by (rebuilding with every kernel update)[http://askubuntu.com/questions/536562/ubuntu-14-04-with-nvidia-driver-blank-screen-after-kernel-update]:

sudo apt-get install dkms build-essential linux-headers-generic linux-headers-`uname -r` linux-source

It will install dkms and the headers before you run the installer and it should give you a DKMS option during setup. DKMS will prevent the problem you are experiencing so you don’t have to re-install every kernel upgrade.

The issue is that every kernel upgrade the nVidia drivers are not rebuild/configured with the kernel upgrade..


You will also need to update your boot loader, adding a boot option, nox2apic:

sudo vim /etc/default/grub

and add the “nox2apic” flag to the GRUB_CMDLINE_LINUX option, or in my case it was the GRUB_CMDLINE_LINUX_DEFAULT. I would look for the variable with the nosplash option and add it to that one, I am sure it would not hurt to add nox2apic to both if you do have both the GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT options in ur grub config.

You will be changing something like: GRUB_CMDLINE_LINUX_DEFAULT=“quiet splash” to: GRUB_CMDLINE_LINUX_DEFAULT=“quiet splash nox2apic”

To update grub you will need to run:

sudo update-grub

This Site has a breakdown on why this option in needed.