NVIDIA Driver Not Usable on LDME5

Questions about hardware and drivers
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
osmanakar312
Level 2
Level 2
Posts: 61
Joined: Sun Mar 27, 2022 4:47 pm

Re: NVIDIA Driver Not Usable on LDME5

Post by osmanakar312 »

I've directly deleted nouveau_drv.so. It worked. Shared termbin is shared before i deleted. Now only nvidia and modesetting loads.
User avatar
SMG
Level 25
Level 25
Posts: 31320
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: NVIDIA Driver Not Usable on LDME5

Post by SMG »

osmanakar312 wrote: Tue May 17, 2022 3:16 pmNow only nvidia and modesetting loads.
Let's check Xorg log again after you reboot (and see if you need to log in and out again) because the renderer for Nvidia did not load in the last one you posted. Only Intel did. Something is still not correct.

Both drm devices are added before the devices are probed. That is good.

Code: Select all

[    36.711] (II) xfree86: Adding drm device (/dev/dri/card1)
[    36.711] (II) xfree86: Adding drm device (/dev/dri/card0)
[    36.722] (--) PCI:*(0@0:2:0) 8086:0166:144d:c652 rev 9, Mem @ 0xf1000000/4194304, 0xe0000000/268435456, I/O @ 0x00004000/64, BIOS @ 0x????????/131072
[    36.722] (--) PCI: (1@0:0:0) 10de:1140:144d:c652 rev 161, Mem @ 0xf0000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x00003000/128
The first module loaded is a standard Xorg module which is the same as the prior Xorg log you posted (in that previous case only one drm device loaded before the devices were probed). But it started loading drivers which did not happen in the prior log (probably because the nvidia drm device had not been loaded).

Code: Select all

   36.722] (II) LoadModule: "glx"
[    36.722] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    36.723] (II) Module glx: vendor="X.Org Foundation"
[    36.723] 	compiled for 1.20.11, module version = 1.0.0
[    36.723] 	ABI class: X.Org Server Extension, version 10.0
[    36.723] (II) Applying OutputClass "nvidia" to /dev/dri/card1
[    36.723] 	loading driver: nvidia
[    36.862] (==) Matched nvidia as autoconfigured driver 0
[    36.862] (==) Matched nouveau as autoconfigured driver 1
Then the Nvidia driver modules loads, but by now by now the other drivers have been assigned to the Nvidia drm (from Xorg).

Code: Select all

[    36.877] (II) NVIDIA dlloader X Driver  390.147  Mon Dec 13 13:57:26 UTC 2021
[    36.877] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[    36.877] (II) NOUVEAU driver Date:   Sat Jan 23 12:24:42 2021 -0500
[    36.877] (II) NOUVEAU driver for NVIDIA chipset families :
I think that is why this error occurred.

Code: Select all

[    36.887] (EE) [drm] Failed to open DRM device for (null): -2
So no Nvidia renderer loaded because its driver was never given to a drm device.

The Intel renderer loads. No problems there.

Code: Select all

[    36.887] (II) Loading sub module "glamoregl"
[    36.887] (II) LoadModule: "glamoregl"
[    36.887] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[    36.892] (II) Module glamoregl: vendor="X.Org Foundation"
[    36.892] 	compiled for 1.20.13, module version = 1.0.1
[    36.892] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    36.908] (II) modeset(0): glamor X acceleration enabled on Mesa DRI Intel(R) HD Graphics 4000 (IVB GT2)
[    36.908] (II) modeset(0): glamor initialized
I think this problem goes back to the issue in this post where the Intel renderer disappeared because the Nvidia-390 driver from the website overwrote the two files.

libglx.so is one of those files and that is the first file to load as per the line I posted earlier. So it would seem the fixes to address what the website driver overwrote are not quite correct.

Code: Select all

[    36.722] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
Image
A woman typing on a laptop with LM20.3 Cinnamon.
osmanakar312
Level 2
Level 2
Posts: 61
Joined: Sun Mar 27, 2022 4:47 pm

Re: NVIDIA Driver Not Usable on LDME5

Post by osmanakar312 »

What should we do? I can try original(Debian)'s, NVIDIA's or Ubuntu based libglx.so and give outputs.
User avatar
SMG
Level 25
Level 25
Posts: 31320
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: NVIDIA Driver Not Usable on LDME5

Post by SMG »

So I went back to the original notes regarding what happens installing the Nvidia-390 from the Nvidia website. Apparently, things were handled a bit differently when using the Nvidia-390 driver from the website versus using it from the package management system. (GPUs using the newer drivers do not run into this issue because Nvidia changed the underlying code.)

On this post scroll way, way, way down to the section titled How to install the Nvidia driver on an Optimus laptop (integrated Intel + Nvidia card) - Added Dec. 2018 and you'll see those two files mentioned. This is on an Ubuntu-based Mint and roblm sets up a script to switch which libglx.so file is used based on whether one is using Intel or Nvidia. In that way, the Nvidia libglx.so is used when using Nvidia, and the original file is used when using Intel. This is not needed when installing the driver from the package management system because there is code in place so both renderers load and one can use the nvidia-prime-applet for switching (or using sudo prime-select).

Debian handles Optimus laptops a bit differently than how Ubuntu does it (there is no applet or prime-select), but the Debian package system probably loads both renderers just like Ubuntu/Mint does. I say that because I do not recall seeing anything special in the Debian Nvidia documentation indicating the 390 driver would be handled differently from the newer ones. Nor do I recall seeing anything special mentioned in the Optimus section for the 390 driver. The documentation just indicates one can use DRI_PRIME=1 to switch to primarily rendering with Nvidia. One can also use that variable in Linux Mint (or Ubuntu), because both renderers are loaded and one is just switching which renderer is the primary.

It seems in the case of installing the Nvidia-390 from the Nvidia website there is not a way to have both loaded. Therefore switching would need to be done manually by changing which libglx.so file is used. That may be why Debian does not recommend using the website driver. Sorry. :(
Image
A woman typing on a laptop with LM20.3 Cinnamon.
osmanakar312
Level 2
Level 2
Posts: 61
Joined: Sun Mar 27, 2022 4:47 pm

Re: NVIDIA Driver Not Usable on LDME5

Post by osmanakar312 »

You mean, using NVIDIA as main renderer with PRIME not possible or very complex for regular user? Should i reinstall LDME 5 and install debian's driver itself and trying troubleshoot?
User avatar
SMG
Level 25
Level 25
Posts: 31320
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: NVIDIA Driver Not Usable on LDME5

Post by SMG »

osmanakar312 wrote: Tue May 17, 2022 6:00 pm You mean, using NVIDIA as main renderer with PRIME not possible or very complex for regular user?
It is my understanding if you only want Nvidia as the renderer then put the Nvidia libglx.so file in place like it was when you originally installed the driver from the website. You may need to log out and log back in to get the Nvidia display driver and renderer to load. In that situation, the Intel renderer will not be loaded.

If you want to be able to have Intel be the primary renderer and use Nvidia occassionally (instead of all the time), then I would recommend re-installing LMDE5 and Debian's driver. Then you would be able to use DRI_PRIME=1.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
osmanakar312
Level 2
Level 2
Posts: 61
Joined: Sun Mar 27, 2022 4:47 pm

Re: NVIDIA Driver Not Usable on LDME5

Post by osmanakar312 »

In muxless systems Intel GPU is a bridge for NVIDIA. Without Intel, you can't get any image.

DRI_PRIME=1 option for Nouveau, may you know Nouveau has huge performance issues.
User avatar
SMG
Level 25
Level 25
Posts: 31320
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: NVIDIA Driver Not Usable on LDME5

Post by SMG »

osmanakar312 wrote: Tue May 17, 2022 6:18 pm In muxless systems Intel GPU is a bridge for NVIDIA. Without Intel, you can't get any image.
Sorry, I forgot the specifics of your hardware. There are quite a few variations of how the hardware is wired on Optimus-style laptops.
osmanakar312 wrote: Tue May 17, 2022 6:18 pmDRI_PRIME=1 option for Nouveau, may you knox Nouveau has huge performance issues.
Sorry, right concept, but the wrong variable (DRI_PRIME=1 is Ubuntu/Mint).

Debian wiki: Using NVIDIA PRIME Render Offload indicates:
The only requirements are to install the proprietary drivers (As per the NvidiaGraphicsDrivers page) and then run your application with the __NV_PRIME_RENDER_OFFLOAD=1 environment variable set, and in some cases (e.g. for GLX applications), the __GLX_VENDOR_LIBRARY_NAME=nvidia environment variable set (or the __GLX_VENDOR_LIBRARY_NAME=nvidia-current environment variable, if it's installed an older driver).
I will point out that I recommended not installing the website driver way back on the first page of this topic.
SMG wrote: Sun May 15, 2022 12:55 pmSeems to be a similar situation to this topic on the Debian forum failed to start NVIDIA-persistence deamon [SOLVED]. That person ended up removing all the Nvidia files and installing the Nvidia driver from the Nvidia website. I would NOT recommend that at this point in time. There are differences in how the two drivers are installed. (Nvidia website driver does not use a package system.)
Image
A woman typing on a laptop with LM20.3 Cinnamon.
osmanakar312
Level 2
Level 2
Posts: 61
Joined: Sun Mar 27, 2022 4:47 pm

Re: NVIDIA Driver Not Usable on LDME5

Post by osmanakar312 »

Well, i've installed debian's drivers. But they won't load, only intel one is loaded. Nouveau is blacklisted. My main goal is using with GPU somehow rather than direct renderer. Seems to be easier. If we can't find any more ideas or solutions, we should completely end this.
User avatar
SMG
Level 25
Level 25
Posts: 31320
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: NVIDIA Driver Not Usable on LDME5

Post by SMG »

Are you getting the same error messages in dmesg as what you had originally?
Image
A woman typing on a laptop with LM20.3 Cinnamon.
osmanakar312
Level 2
Level 2
Posts: 61
Joined: Sun Mar 27, 2022 4:47 pm

Re: NVIDIA Driver Not Usable on LDME5

Post by osmanakar312 »

Everything seems fine.

Code: Select all

[    5.650657] nvidia: module verification failed: signature and/or required key missing - tainting kernel
I learned Linux checks driver secure boot enabled or disabled both. Should not interrupt driver loading process.

Code: Select all

[    5.898996] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  390.144  Wed Jun  2 22:58:46 UTC 2021
[    5.941339] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
[    5.942579] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 1
NVIDIA-drm initialized.

Code: Select all

[    0.341347] pci 0000:01:00.0: can't claim BAR 6 [mem 0xfff80000-0xffffffff pref]: no compatible bridge window
[    0.341425] pci 0000:02:00.0: can't claim BAR 6 [mem 0xffff0000-0xffffffff pref]: no compatible bridge window
I don't have much idea but Linux renames GPU's like these.

I can't share entire output due characters limit.
User avatar
SMG
Level 25
Level 25
Posts: 31320
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: NVIDIA Driver Not Usable on LDME5

Post by SMG »

Did you try using an xorg.conf file? (Like the one in the example Nvidia documentation.)
Image
A woman typing on a laptop with LM20.3 Cinnamon.
osmanakar312
Level 2
Level 2
Posts: 61
Joined: Sun Mar 27, 2022 4:47 pm

Re: NVIDIA Driver Not Usable on LDME5

Post by osmanakar312 »

Freezes when created xorg.conf.
User avatar
SMG
Level 25
Level 25
Posts: 31320
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: NVIDIA Driver Not Usable on LDME5

Post by SMG »

I am out of ideas for trying to fix this current install. Possibly something happened along the way and re-installing and starting over might produce success.

I've seen others with the correct output, but those were with a newer version of the Nvidia driver. Perhaps there is an issue with the Debian Nvidia 390 driver that is not happening with the newer versions? I do not have any way of knowing if that might be a possibility.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
osmanakar312
Level 2
Level 2
Posts: 61
Joined: Sun Mar 27, 2022 4:47 pm

Re: NVIDIA Driver Not Usable on LDME5

Post by osmanakar312 »

Then nevermind. I'm ran of out my ideas, searched a lot of guides and documents but not still fix it. Also i've bored with this. Thanks for your entire effort in this time. I appricate it again. If i find anything, i'll share it.
Locked

Return to “Hardware Support”