Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 05-27-12, 01:58 AM   #1
Bersam
Registered User
 
Join Date: May 2012
Posts: 6
Default [SOLVED] Should we reinstall nvidia driver for new kernels?

I updated my ubuntu 12.04 to new kernel (3.2.0) now GLX module doesn't load, i want to know every time that i upgrade to new kernel i have to reinstall the whole driver? or just only a module? (there's any script to just recompile/reinstall only GLX module for new kernel?)

Last edited by Bersam; 05-27-12 at 04:41 PM. Reason: problem solved
Bersam is offline   Reply With Quote
Old 05-27-12, 04:52 AM   #2
Gusar
Registered User
 
Join Date: Apr 2006
Posts: 277
Default Re: Should we reinstall nvidia driver for new kernels?

All external kernel modules need to be recompiled for each kernel you're running. This isn't specific to nvidia, it's not possible to work differently. In many cases distros have mechanisms to automate it (either packages with pre-compiled modules, or scripts that rebuild the modules, or some such). So you should inquire about how your distro does this.
Gusar is offline   Reply With Quote
Old 05-27-12, 07:45 AM   #3
Bersam
Registered User
 
Join Date: May 2012
Posts: 6
Default Re: Should we reinstall nvidia driver for new kernels?

Quote:
Originally Posted by Gusar
All external kernel modules need to be recompiled for each kernel you're running. This isn't specific to nvidia, it's not possible to work differently. In many cases distros have mechanisms to automate it (either packages with pre-compiled modules, or scripts that rebuild the modules, or some such). So you should inquire about how your distro does this.
Thanks for reply ,
I use lastest Nvidia Driver that not provided by my distro, yet. so i just want to know i have to run whole installer (NVIDIA-Linux-x86_64-173.14.34-pkg2.run) again, or there's some script that rebuild modules from NVIDIA?
Bersam is offline   Reply With Quote
Old 05-27-12, 08:25 AM   #4
artem
Registered User
 
Join Date: Jun 2006
Posts: 711
Default Re: Should we reinstall nvidia driver for new kernels?

Quote:
Originally Posted by Bersam View Post
Thanks for reply ,
I use lastest Nvidia Driver that not provided by my distro, yet. so i just want to know i have to run whole installer (NVIDIA-Linux-x86_64-173.14.34-pkg2.run) again, or there's some script that rebuild modules from NVIDIA?
You can build a kernel module for a running kernel this way:

Code:
sudo ./NVIDIA-Linux-x86_64-295.53.run -K
or if you need to build it for a new kernel:

Code:
sudo ./NVIDIA-Linux-x86_64-295.53.run -K -k KERNEL_VERSION
KERNEL_VERSION will be something like 3.4.0-ubuntu (run `uname -r` or `dpkg -l | grep linux` to see it).
artem is offline   Reply With Quote
Old 05-27-12, 08:26 AM   #5
Gusar
Registered User
 
Join Date: Apr 2006
Posts: 277
Default Re: Should we reinstall nvidia driver for new kernels?

I usually manually run the steps to compile just the module. But I'm looking at the installer options now, there's an interesting one in there: --kernel-module-only. So just running the installer with that option should do the trick.

Edit: Bah, artem posted while I was typing this.
Gusar is offline   Reply With Quote
Old 05-27-12, 04:42 PM   #6
Bersam
Registered User
 
Join Date: May 2012
Posts: 6
Default Re: Should we reinstall nvidia driver for new kernels?

artem, Gusar, Thank you both. that -K option worked good and now i have GLX back.
Bersam is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help Installing NVIDIA Tesla M2070Q in Linux RHEL5 Ferianto85 NVIDIA Linux 0 05-18-12 08:35 PM
Getting the proprietary nvidia driver to run with Debian 3.0 r0 (woody) Katchina404 NVIDIA Linux 9 01-12-03 08:49 AM
nvidia + 2.4.19 gentoo = messed up ulukay NVIDIA Linux 18 11-01-02 11:58 PM
Do I need to reinstall NVIDIA driver if I upgrade from GF2 Pro to GF4 Ti? ant NVIDIA Linux 1 09-30-02 06:39 AM

All times are GMT -5. The time now is 01:39 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.