Thursday, February 27, 2014

Install official nvidia driver on Arch Linux with my Lenovo Y400 (video card GT 650M)

I must be a stupid guy because it took me 2 weeks to resolve this issue. I've been switch drivers between nouvean and nvidia official driver for a long time and I never run it out. :(

1. The issue I met

If you follow the Arch Linux wiki to install the official nvidia driver and found the screen is turned to black, the fan starts spinning and the system completed die after a while, this article may help you out!

2. nvidia driver conflicts with new kernel

I found an article in nvidia forum, which mentioned there is a conflict between nvidia driver and kernel 3.10+. You have to re-compile your kernel, update your initramfs and then add a parameter to your boot file.

3. Recompile kernel

Download the latest kernel from http://www.kernel.org/
Change your .config file
from:
  1. # CONFIG_HZ_100 is not set
  2. # CONFIG_HZ_250 is not set
  3. CONFIG_HZ_300=y
  4. # CONFIG_HZ_1000 is not set
  5. CONFIG_HZ=300
to:
  1. # CONFIG_HZ_100 is not set
  2. # CONFIG_HZ_250 is not set
  3. # CONFIG_HZ_300 is not set
  4. CONFIG_HZ_1000=y
  5. CONFIG_HZ=1000

Follow the wiki page to compile your kernel
https://wiki.archlinux.org/index.php/Kernels/Compilation/Traditional

Note: remember to re-generate your initramfs file. This is very important

4. Add kernel parameter

Edit your gummiboot file: arch.conf
add a parameter at the end:
rw quiet rcutree.rcu_idle_gp_delay=1

Then reboot your system.

Now, test your xort with startx. You should be OK.

No comments:

Post a Comment