Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
31
rated 0 times [  31] [ 0]  / answers: 1 / hits: 102306  / 3 Years ago, sat, august 28, 2021, 8:20:40

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.


More From » drivers

 Answers
1

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.


[#31448] Monday, August 30, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
farnic

Total Points: 409
Total Questions: 117
Total Answers: 125

Location: Andorra
Member since Sat, May 27, 2023
1 Year ago
;