Update NVIDIA drivers 470 -> 535

I was trying to run UnrealEngine 5.3 on my Tumbleweed, and it kinda works (slowly, maybe it does graphics on CPU… it’s extremely laggy, while there is plenty of available RAM).

When starting, UE5 suggests to update my NVIDIA drivers from current 470.182 to at least 515.48.

image

However, running zypper dup fails at the exact moment of downloading graphic drivers:

Retrieving: nvidia-gfxG05-kmp-default-470.199.02_k6.4.11_1-55.15.x86_64.rpm .........................................................................................................................................................[not found]
File './x86_64/nvidia-gfxG05-kmp-default-470.199.02_k6.4.11_1-55.15.x86_64.rpm' not found 
on medium 'https://download.nvidia.com/opensuse/tumbleweed'

Note that even if zypper dup succeeded, that would only give me 470.XXX version, while UE5 is asking for >515.XXX

In the Yast Software, it seems like I should be able to manually upgrade the NVIDIA package:



However, I have no idea which one to take among all the 535.XXX, and some packages do not seem to have their 06 counterpart, for example nvidia-gfxG05.

What would you suggest? Should I manually update for 535.XXX for every available package? Or that’s too risky?

More graphic card information below:

https://en.opensuse.org/SDB:NVIDIA_drivers

1 Like

From this SDB you will see the naming differences between the G04/G05/G06 drivers. It works to select the relevant G06 drivers for installation (via YaST software), install them (don’t reboot yet), mark G05 for deinstallation, uninstall G05, reboot.

1 Like

Additional it seems you didn’t setup the Nvidia repo correctly, You need to enable auto refresh for it. As it is disabled you get the download error as zypper tries to download a no longer existing version…

1 Like

Update:
Applying following modifications leads to black screen upon reboot, I had to rollback to previous state


Secure Boot was disabled.

@dgan and this is a single nvidia system, not dual graphics?

Have you added nvidia_drm.modeset=1 to the kernel boot options?

# Optional Kernel Command Line Parameter:
splash=silent quiet cgroup_no_v1=all systemd.unified_cgroup_hierarchy=1 nosimplefb=1 

So looks like nvidia_drm.modeset=1 is clearly missing

Is this single nvidia system? → Hm I definitely do have Intel Graphics, but otherwise NVIDIA is the only real graphic card on my laptop, yes.

@dgan So a hybrid system, so your using suse-prime then? Or can you disable the intel gpu in the BIOS?

Please show the output from;

inxi -Gaxz
denis@dgecko:~> inxi -Gaxz
Graphics:
  Device-1: Intel HD Graphics 530 vendor: Hewlett-Packard OMEN-17-w001nv
    driver: i915 v: kernel arch: Gen-9 process: Intel 14n built: 2015-16 ports:
    active: eDP-1 empty: HDMI-A-1 bus-ID: 00:02.0 chip-ID: 8086:191b
    class-ID: 0300
  Device-2: NVIDIA GM107M [GeForce GTX 960M] vendor: Hewlett-Packard
    driver: nvidia v: 470.199.02 alternate: nouveau,nvidia_drm non-free: 530.xx+
    status: current (as of 2023-05) arch: Maxwell code: GMxxx
    process: TSMC 28nm built: 2014-19 pcie: gen: 3 speed: 8 GT/s lanes: 8
    link-max: lanes: 16 ports: active: none empty: HDMI-A-2 bus-ID: 01:00.0
    chip-ID: 10de:139b class-ID: 0302
  Device-3: Sunplus Innovation HP Wide Vision HD driver: uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-4:3 chip-ID: 1bcf:2c87
    class-ID: 0e02
  Display: x11 server: X.org v: 1.21.1.8 compositor: xfwm v: 4.18.0 driver:
    X: loaded: modesetting,nvidia alternate: intel dri: iris gpu: i915
    display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-size: <missing: xdpyinfo>
  Monitor-1: eDP-1 mapped: eDP-1-1 model: ChiMei InnoLux 0x1738 built: 2015
    res: 1920x1080 hz: 60 dpi: 128 gamma: 1.2 size: 381x214mm (15x8.43")
    diag: 437mm (17.2") ratio: 16:9 modes: 1920x1080
  API: OpenGL v: 4.6.0 NVIDIA 470.199.02 renderer: NVIDIA GeForce GTX
    960M/PCIe/SSE2 direct-render: Yes

EDIT: I don’t know if I can disable Intel GPU in BIOS. I don’t remember seeing that option… Will come back with more information

@dgan that looks fine, have you rebooted with the kernel option added and the other one nosimplefb=1 removed?

Will try tomorrow, it’s getting late here :slight_smile: thanks for assistance, will post an update tomorrow

1 Like

Retried with same packages as above, with nvidia_drm.modeset=1. The other option was automatically removed. Still black screen upon reboot, had to rollback changes.
Also, there is no option to disable “Intel GPU” in BIOS

@dgan Hi, so is suse-prime installed?

Yes, sorry forgot that question

Information for package suse-prime:
-----------------------------------
Repository     : openSUSE:Tumbleweed
Name           : suse-prime
Version        : 0.8.14-2.2
Arch           : noarch
Vendor         : openSUSE
Installed Size : 44.6 KiB
Installed      : Yes (automatically)
Status         : up-to-date
Source package : suse-prime-0.8.14-2.2.src
Upstream URL   : https://github.com/openSUSE/SUSEPrime
Summary        : GPU (nvidia/intel) selection for NVIDIA optimus laptops with bbswitch support

@dgan so if you use suse-prime to switch back to intel and reboot, what happens?

@dgan also your on Plasma? If so are you using sddm or sddm-qt6, if switch to the latter what happens?

So I just discovered suse-prime lol.

denis@dgecko:~> prime-select --help

NVIDIA/Intel video card selection for NVIDIA Optimus laptops.

usage: prime-select           nvidia|intel|intel2|amd|offload|unset|get-current|get-boot|offload-set|log-view|log-clean
usage: prime-select boot      nvidia|intel|intel2|amd|offload|last
usage: prime-select next-boot nvidia|intel|intel2|amd|offload|abort
usage: prime-select service   check|disable|restore

nvidia:      use the NVIDIA proprietary driver
intel:       use the Intel card with the "modesetting" driver
intel2:      use the Intel card with the "intel" Open Source driver (xf86-video-intel)
amd:         use the Amd card with the "amd" Open Source driver (xf86-video-amdgpu)
offload      PRIME Render Offload possible with >= 435.xx NVIDIA driver
offload-set  choose which intel driver use in PRIME Render Offload
unset:       disable effects of this script and let Xorg decide what driver to use
get-current: display driver currently configured
log-view:    view logfile
log-clean:   clean logfile
boot:        select default card at boot or set last used
             supports kernel parameter nvidia.prime=intel|intel2|nvidia|amd|offload
next-boot:   select card ONLY for next boot, it not touches your boot preference. abort: restores next boot to default
get-boot:    display default card at boot
service:     disable, check or restore prime-select service.

denis@dgecko:~> prime-select get-current
Driver configured: nvidia
NVIDIA modules are loaded

denis@dgecko:~> prime-select get-boot
Default at system boot: last

Do you want me to set “Intel” for the next boot, just to test it works? I can definitely tell you it does, because I installed NVIDIA drivers only like 6 month ago, while I was using Intel Graphics for years prior

No, I am on XFCE, not Plasma

@dgan Ahh ok, yes set intel for next boot.

Hmm doesn’t look like it does anything

prime-select next-boot intel
reboot

Writing now from that boot:

denis@dgecko:~> glxinfo 
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: NVIDIA Corporation
...
denis@dgecko:~> find /dev -group video
/dev/nvidia-modeset
/dev/nvidia0
/dev/nvidiactl
/dev/nvidia-uvm-tools
/dev/nvidia-uvm
/dev/media0
/dev/video1
/dev/video0
/dev/fb0
/dev/dri/card1
/dev/dri/card0

@dgan So it’s working now?