Softpedia
 

NEWS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
TRENDING TODAY
Home > News > Linux > Ubuntu Tips and Tricks

December 30th, 2012, 22:10 GMT · By

How to Rebuild Nvidia Driver's Kernel Module

SHARE:

Adjust text size:

Nvidia logo
Enlarge picture
The following tutorial will teach all users of the Ubuntu Linux operating system how to manually rebuild the kernel module of the Nvidia graphics driver after updating the Linux kernel packages.

Why was this tutorial created? Well, it was written especially for those times when Canonical issues a new kernel update, leaving Nvidia users (only those who use the proprietary Nvidia video driver) in the dark, with no video driver at all.

So what are you going to do in this case? The simple answer is: You need to rebuild the kernel module of the Nvidia driver, for the freshly installed Linux kernel. And, it's easier than you think!

Any requirements? Yes, you will need to install the source package of the newly installed Linux kernel. How? First of all, let's see the name of the kernel package you're running after the update. So, hit the CTRL+ALT+T key combination to open a terminal window and type the following command:

uname -r

Hit the Enter key and you will get something like this...

3.5.0-21-generic

Now, you need to install the kernel source for the "3.5.0-21-generic" package. So, type the following command in the terminal window:

sudo apt-get install linux-headers-3.5.0-21-generic

Hit the Enter key and wait for the package to be installed. When the installation is over, type the following command to rebuild the Nvidia kernel module:

sudo dpkg-reconfigure nvidia-current

That's it! All you have to do now is to log out of your current session. The Nvidia driver will be automatically activated and you will be able to log back in.

Wasn't that simple? If you have problems with the tutorial, do not hesitate to comment below!


10,114 hits · 4 comments
Link to this article · Print article · Send to friend

MUST-READ RELATED ARTICLES:


How to Make Thunderbird Chat Work with All XMPP Accounts

All Linux Distributions Get the Secure Boot Bootloader

Introducing Ubuntu Cinnamon Remix

Download Linux Mint 14 Release Candidate, Based on Ubuntu 12.10

elementary OS 0.2 Beta 1 Looks Really Beautiful

READER COMMENTS:


Comment #1 by: joelalmeidaptg on 02 Jan 2013, 16:05 UTC reply to this comment

This wasn't suppose to happen. It is a "critical bug" and should be fixed as a priority. If I wasn't an "average user" knowing english, some technical stuff and knew how to use google (on other computer) I would be left with nothing but a wallpaper for several times.


Comment #2 by: xfce kubuntu on 03 Jan 2013, 13:55 UTC reply to this comment

uname -r will just give the kernel version

So you can throw this in a shell script....

sudo apt-get install linux-headers-`uname -r`
sudo dpkg-reconfigure nvidia-current

chmod +x it, and you should be good to go. I always throw in some prompts between the commands just to be safe.
If you've already rebooted and your video driver is messed up you won't be in a session so you probably need to do CTRL+ALT+F1 to get to a terminal. Then run your script and reboot.


Comment #3 by: towo on 17 Jan 2013, 13:00 UTC reply to this comment

Since dkms exists, its useless to build the module manual.

Comment #3.1 by: Marius Nestor on 21 Jan 2013, 10:51 GMT

Of course we're using DKMS to build the module... and yes, this tutorial is useful to all Nvidia users, including myself, every time the kernel gets updated. Please read the tutorial before commenting...

Copyright © 2001-2013 Softpedia. Contact/Tip us at

WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM