Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have an Asus UL30JT. It has Nvidia Optimus technology which I am not really interested in. I currently rarely use this laptop with it being connected to power. And I want to be able to play video at high res, play games and do some OpenCL coding.

In the BIOS I switched it to NVIDIA only (non windows 7). Previously, this worked just fine, using the nvidia driver.

After upgrading everything was broken. I have added nomodeset and blacklist.nouveau=1 as kernel options. The nvidia drivers install without error. However they are not found/used.

jockey-text -l
kmod:nvidia_310_updates - nvidia_310_updates (Proprietary, Enabled, Not in use)
kmod:nvidia_304_updates - NVIDIA binary Xorg driver, kernel module and VDPAU library (Proprietary, Disabled, Not in use)
kmod:nvidia_313_updates - NVIDIA binary Xorg driver, kernel module and VDPAU library (Proprietary, Disabled, Not in use)
kmod:nvidia_310 - NVIDIA binary Xorg driver, kernel module and VDPAU library (Proprietary, Disabled, Not in use)
kmod:nvidia_304 - NVIDIA binary Xorg driver, kernel module and VDPAU library (Proprietary, Disabled, Not in use)

Trying to load the module manually fails as well.

sudo modprobe nvidia
FATAL: Module nvidia not found.

Xorg.0.log show the following:

[    12.028] Loading extension GLX
[    12.028] (II) LoadModule: "nvidia"
[    12.037] (WW) Warning, couldn't open module nvidia
[    12.037] (II) UnloadModule: "nvidia"
[    12.037] (II) Unloading nvidia
[    12.037] (EE) Failed to load module "nvidia" (module does not exist, 0)
[    12.037] (==) Matched nvidia as autoconfigured driver 0
[    12.037] (==) Matched nouveau as autoconfigured driver 1
[    12.037] (==) Matched vesa as autoconfigured driver 2
[    12.037] (==) Matched modesetting as autoconfigured driver 3
[    12.038] (==) Matched fbdev as autoconfigured driver 4
[    12.038] (==) Assigned the driver to the xf86ConfigLayout
[    12.038] (II) LoadModule: "nvidia"
[    12.038] (WW) Warning, couldn't open module nvidia
[    12.038] (II) UnloadModule: "nvidia"
[    12.038] (II) Unloading nvidia
[    12.038] (EE) Failed to load module "nvidia" (module does not exist, 0)
[    12.038] (II) LoadModule: "nouveau"
[    12.039] (WW) Warning, couldn't open module nouveau

I have installed the kernel headers, of the correct kernel. I verified that the kernel options are in the grub configuration. I have purged all nvidia packages and tried to reinstall (multiple times...)

Currently I am at a loss. I have checked the following question: Nvidia driver installation error But nothing there worked for me.

share|improve this question

3 Answers 3

up vote 11 down vote accepted

Okay, I found out of it.

I did a full apt-get purge nvidia* and apt-get dist-upgrade etc. But the thing that fixed it was actually to set the alternative correct. I guess this would've worked from the start. So here's how:

$ sudo update-alternatives --config x86_64-linux-gnu_gl_conf

  Selection    Path                                       Priority   Status
------------------------------------------------------------
  0            /usr/lib/nvidia-310/ld.so.conf              9702      auto mode
  1            /usr/lib/nvidia-310/ld.so.conf              9702      manual mode
* 2            /usr/lib/x86_64-linux-gnu/mesa/ld.so.conf   500       manual mode

As you see, for me, this setting was wrongly set. So I used 0 instead, and lo' and behold. Lots more nvidia- utilities in the PATH.

If you're not on 64-bit, then use i386 instead of x86_64.

share|improve this answer
1  
purge nvidia* and re-install-ing nvidia-current fixed the issue for me. Thanks. –  Geoff Aug 20 '13 at 13:49

If the above does not work, just reinstall... I tried to fix it for two days, in the end I gave up. Reinstall took 20 minutes. And works fine.

share|improve this answer

Install latest nvidia drivers

sudo apt-get install nvidia-313-updates

Generate /etc/X11/xorg.conf by executing

sudo nvidia-xconfig

Then execute

sudo software-properties-gtk which will show you a window like this

enter image description here

Select the latest driver from that list and then do

sudo reboot

share|improve this answer
1  
This fails at the second step for me (sudo nvidia-xconfig) sudo: nvidia-xconfig: command not found –  balachmar May 2 '13 at 9:45
    
Sorry. Included steps to install nvidia-xconfig –  thefourtheye May 2 '13 at 10:24
    
E: Unable to locate package nvidia-xconfig –  balachmar May 2 '13 at 10:36
    
No worries. Please skip the nvidia-xconfig step. –  thefourtheye May 2 '13 at 13:25
1  
Did all of the above in one session (excluding the xconfig step), no avail. Still can't load the nvidia module. –  balachmar May 2 '13 at 13:56

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.