NVIDIA GTX 1650 TI driver cannot be installed on Ubuntu Studio?

I want to install a driver for my NVIDIA GTX 1650 TI on my DELL XPS 15 9500 Notebook. Unfortunately at least with Ubuntu 22.04 this does not seem to work.
I tried it with Software & Updates - Additional Drivers and via shell, but with no luck.
At boot I get the message: failed to register nvidia drm
I downloaded Heaven Benchmark for Linux and Windows. In Windows (I use a Dual Boot System) the Benchmark is running smooth. With Ubuntu it is very slow (so I assume the onboard graphic card is used here).
What can I do? How can I install the correct driver?

Please run nvidia-bug-report.sh as root and attach the resulting nvidia-bug-report.log.gz file to your post.

Thx for the fast reply. I attached the requested file here.Processing: nvidia-bug-report.log.gz…

The upload got stuck, please try again.

nvidia-bug-report.log (1.8 MB)
I unzipped the log. Here is the log. I hope this works. Thank you!

Wrong driver, the autoinstaller installed the “-open” driver. Please use Software&Updates to switch to the normal driver variant.

I did what you told me. After a restart I started the benchmark. But unfortunately with the same results as before. Here is the new log file. Can you see what causes the problem?
nvidia-bug-report.log (1.1 MB)

Driver is fine, the nvidia gpu is in on-demand mode. To use it, prepend
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia
to the application to run or use “run on dgpu” from right-click menu if avalable.

Thank you. I typed
./heaven __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia
in the shell and the program started.
Unfortunately it is as slow as usual. I don’t think there is a driver loaded.
I could try another program, but I mean it is a benchmark, that should work with ubuntu linux.
Like I said, in Windows the program works fine.
What do you suggest me now to do?

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia ./heaven

Wow. Thank you! This works for me! The Benchmark runs very good now!
Sorry, I am new to Linux and so I am still learning to use it.

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia
If I want to add the parameter to other programs: Is it possible to add it to the symbol in the GUI?

you can do it in several ways:

system-wide in the /etc/bash.bashrc or in /etc/profile.d/<namefile>.sh(depend if you distro)

or in your home in the .bashrc file

the format should be:

export __NV_PRIME_RENDER_OFFLOAD=1
export __GLX_VENDOR_LIBRARY_NAME=nvidia

you may need logout/loin after that. also if you want revert it

or in each .desktop file in the `Exec=’ line as:

env __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia <program>

or use the the launch editor in your DE (gnome have one, kde other, xfce other, etc, consult the inet)

greetings

Like said, with gnome, there should be an entry when right-clicking on an application icon.

O.K. Thanks again!

This works for me for a single program, I open via shell:
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia ./heaven

This works not for me. And yes, I did log off / log in.
export __NV_PRIME_RENDER_OFFLOAD=1
export __GLX_VENDOR_LIBRARY_NAME=nvidia

I use Ubuntu Studio, so I am using KDE Desktop. So I do not have gnome.

when i said logout/login i mean completely, console inclusive. not need restart, (but if you prefeer restart, have the same effect)

Yes. I logged out completely. Now I restarted the whole computer. With the same effect: No effect. The heaven Benchmark FILE starts without driver.
I took a look in the bashrfc file. I could not find an entry with __NV_PRIME_RENDER_OFFLOAD=1 or __GLX_VENDOR_LIBRARY_NAME=nvidia.
I have to train myself with bashrfc and Linux command I guess.
But if you have another tipp for me or can help me somehow, I would be very happy!
Best regards!

you simply put the lines in the botom of the file

kate /etc/bash.bashrc

(make sure if ubuntu studio use this file, if not, search the correct path)

  • put the lines in the botom
export __NV_PRIME_RENDER_OFFLOAD=1
export __GLX_VENDOR_LIBRARY_NAME=nvidia
  • save, if say put the root pasword, do it
  • logout/login, console/TTY inclusive
1 Like

Thanks! I appreciate your help!
One last question. Does this work for the local file (home/bashrc) also?

yes. you can

greetings

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.