Troubles with nvidia GPU

Hi, I’m new to this os. In my setup I ran into the trouble of

nvidia-smi
No devices were found

even though I installed EndeavourOS with the nvidia setup, running nvidia-inst, using pacman -S nvidia. I’ve looked around for a week and tried quite a lot before writing this.

Other thing I tried was using envycontrol and optimus-manager, both leading to being stuck in boot with the last line “Reached target Graphical Interface”. I did that because in the info centre I see my Intel processor’s “Mesa Intel® Graphics” instead of Nvidia. In bios settings is set “Dynamic Graphics” and picking “Discrete Graphics” leads to the same issue as both beforementioned programs result.

Vulkan section in the info centre returns:

ERROR: [Loader Message] Code 0 : setup_loader_term_phys_devs:  Failed to detect any valid GPUs in the current config
ERROR at /usr/src/debug/vulkan-tools/Vulkan-Tools/vulkaninfo/./vulkaninfo.h:247:vkEnumeratePhysicalDevices failed with ERROR_INITIALIZATION_FAILED

And OpenGL EGL and GLX references my processor’s graphics.

Tried that as well but nothing out of it: https://discovery.endeavouros.com/gaming/gaming-101/2022/01/

I have also tried many more stuff on the topic but without success.

After inxi -Fxxc0z | eos-sendlog I get:

System:
  Kernel: 6.12.35-1-lts arch: x86_64 bits: 64 compiler: gcc v: 15.1.1
  Desktop: KDE Plasma v: 6.4.2 tk: Qt v: N/A wm: kwin_wayland dm: SDDM
    Distro: EndeavourOS base: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 83LY v: Legion 5 15IRX10
    serial: <superuser required> Chassis: type: 10 v: Legion 5 15IRX10
    serial: <superuser required>
  Mobo: LENOVO model: LNVNB161216 v: NO DPK serial: <superuser required>
    part-nu: LENOVO_MT_83LY_BU_idea_FM_Legion 5 15IRX10 UEFI: LENOVO v: QNCN24WW
    date: 04/04/2025
Battery:
  ID-1: BAT0 charge: 84.0 Wh (100.0%) condition: 84.0/80.0 Wh (105.0%)
    volts: 17.6 min: 15.5 model: SMP L24M4PC0 serial: <filter> status: full
CPU:
  Info: 24-core (8-mt/16-st) model: Intel Core i9-14900HX bits: 64
    type: MST AMCP arch: Raptor Lake rev: 1 cache: L1: 2.1 MiB L2: 32 MiB
    L3: 36 MiB
  Speed (MHz): avg: 800 min/max: 800/5600:5800:4100 cores: 1: 800 2: 800
    3: 800 4: 800 5: 800 6: 800 7: 800 8: 800 9: 800 10: 800 11: 800 12: 800
    13: 800 14: 800 15: 800 16: 800 17: 800 18: 800 19: 800 20: 800 21: 800
    22: 800 23: 800 24: 800 25: 800 26: 800 27: 800 28: 800 29: 800 30: 800
    31: 800 32: 800 bogomips: 154880
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel Raptor Lake-S UHD Graphics vendor: Lenovo driver: i915
    v: kernel arch: Xe ports: active: eDP-1 empty: DP-1,HDMI-A-1 bus-ID: 00:02.0
    chip-ID: 8086:a788
  Device-2: NVIDIA GB206M [GeForce RTX 5070 Max-Q / Mobile] vendor: Lenovo
    driver: nvidia v: 575.64.03 pcie: speed: 32 GT/s lanes: 8 bus-ID: 01:00.0
    chip-ID: 10de:2d18
  Device-3: Syntek Integrated Camera driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 bus-ID: 1-11:4 chip-ID: 174f:11b5
  Display: wayland server: X.org v: 1.21.1.18 with: Xwayland v: 24.1.8
    compositor: kwin_wayland driver: X: loaded: modesetting
    alternate: fbdev,intel,vesa dri: iris gpu: i915 display-ID: 0
  Monitor-1: eDP-1 model: EF10QBC64.C res: 2560x1600 hz: 165 dpi: 203
    diag: 377mm (14.86")
  API: EGL v: 1.5 platforms: device: 0 drv: iris device: 1 drv: swrast gbm:
    drv: iris surfaceless: drv: iris wayland: drv: iris x11: drv: iris
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: intel mesa v: 25.1.5-arch1.1
    glx-v: 1.4 direct-render: yes renderer: Mesa Intel Graphics (RPL-S)
    device-ID: 8086:a788 display-ID: :1.0
  API: Vulkan Message: No Vulkan data available.
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor gpu: nvidia-smi wl: wayland-info
    x11: xdpyinfo, xprop, xrandr
Audio:
  Device-1: Intel Raptor Lake High Definition Audio vendor: Lenovo
    driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:7a50
  Device-2: NVIDIA driver: snd_hda_intel v: kernel pcie: speed: 32 GT/s
    lanes: 8 bus-ID: 01:00.1 chip-ID: 10de:22eb
  API: ALSA v: k6.12.35-1-lts status: kernel-api
  Server-1: PipeWire v: 1.4.6 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin
Network:
  Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: Lenovo driver: r8169 v: kernel pcie: speed: 2.5 GT/s lanes: 1
    port: 5000 bus-ID: 0c:00.0 chip-ID: 10ec:8168
  IF: enp12s0 state: down mac: <filter>
  Device-2: MEDIATEK vendor: Lenovo driver: mt7925e v: kernel pcie:
    speed: 5 GT/s lanes: 1 port: N/A bus-ID: 12:00.0 chip-ID: 14c3:7925
  IF: wlan0 state: up mac: <filter>
Bluetooth:
  Device-1: Foxconn / Hon Hai Wireless_Device driver: btusb v: 0.8 type: USB
    rev: 2.1 speed: 480 Mb/s lanes: 1 bus-ID: 1-14:6 chip-ID: 0489:e111
  Report: btmgmt ID: hci0 rfk-id: 2 state: down bt-service: disabled
    rfk-block: hardware: no software: yes address: N/A
Drives:
  Local Storage: total: 982.74 GiB used: 11.67 GiB (1.2%)
  ID-1: /dev/nvme0n1 vendor: KIOXIA model: N/A size: 953.87 GiB
    speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 42.9 C
  ID-2: /dev/sda vendor: Wilk model: N/A size: 28.87 GiB type: USB rev: 2.0
    spd: 480 Mb/s lanes: 1 serial: <filter>
Partition:
  ID-1: / size: 935.85 GiB used: 11.17 GiB (1.2%) fs: ext4 dev: /dev/nvme0n1p2
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 53.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 64 GiB available: 62.52 GiB used: 5.07 GiB (8.1%)
  Processes: 438 Power: uptime: 1h 19m wakeups: 0 Init: systemd v: 257
    default: graphical
  Packages: pm: pacman pkgs: 1062 Compilers: gcc: 15.1.1 Shell: Bash
    v: 5.2.37 running-in: konsole inxi: 3.3.38

If there’s any more data I could provide, I will (if given the command). Thank you anyways.

You have a hybrid system with both an iGPU and a dGPU.

Switching is normally handled via PRIME.

You can test with something like;

glxinfo | grep 'renderer string'
prime-run glxinfo | grep 'renderer string'

Avoid these until we know the things are working.
Actually .. avoid them in general unless you specifically want to boot into ‘iGPU only’ or ‘dGPU only’ modes - but as your BIOS provides such an option .. these are even more unecessary.
Furthermore optimus-manager in particular is absolute trash - it forces hacks on your Display Manager to work. And then poorly. Avoid it like the plague.
( And if it was installed along with such changes .. then you might need to go and manually remove them. )

PS.

The point of this is to share the link.
Otherwise there is no reason to use eos-sendlog.

In my Legion 5, you have to switch to the dGPU in the bios screen, otherwise it uses the iGPU (in my case AMD). Sort of like this (picture from web):

Graphics:
  Device-1: NVIDIA GA104M [GeForce RTX 3070 Mobile / Max-Q] driver: nvidia
    v: 575.64.03
  Device-2: Bison Integrated Camera driver: uvcvideo type: USB
  Display: wayland server: X.Org v: 24.1.8 with: Xwayland v: 24.1.8
    compositor: Hyprland v: 0.49.0 driver: X: loaded: nvidia
    unloaded: modesetting gpu: nvidia,nvidia-nvswitch
    resolution: 1920x1080~144Hz
  API: EGL v: 1.5 drivers: nvidia,swrast
    platforms: gbm,wayland,x11,surfaceless,device
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 575.64.03
    renderer: NVIDIA GeForce RTX 3070 Laptop GPU/PCIe/SSE2
  API: Vulkan v: 1.4.313 drivers: nvidia surfaces: N/A
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo de: kscreen-console,
    kscreen-doctor, xfce4-display-settings gpu: nvidia-smi wl: nwg-displays,
    swaymsg, wayland-info x11: xdpyinfo, xprop, xrandr

Is prime installed by default? :face_with_monocle:

Its impossible to know if its there or not given the anecdote above .. it sounded like they installed a bunch of different nvidia+switching things.
Obviously I leaned in to ‘installed’ .. but we will know soon enough ..

Already tried that, it’s supposed to be with the option Discrete Graphics option, but like I said, the result was being stuck in boot with the last line “Reached target Graphical Interface”.

it’s not.

and the result of glxinfo | grep 'renderer stringwas:

OpenGL renderer string: Mesa Intel(R) Graphics (RPL-S)

I think you need the noveau drivers for this card, not the standard drivers, this is from memory (and at my age!), let me search.

Well .. it is. It requires no extra packages to function (DRI_PRIME=1).

But normal PRIME only works when all the drivers involved are open.

If you mean prime-run .. then its in package nvidia-prime.

Install noveau, reboot and change to dGPU.

prime-run glxinfo | grep ‘renderer string’ returns

X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  150 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  67
  Current serial number in output stream:  68

Okay, this worked, but now in the about system I see my dGPU as 2 graphic processors. I also get nvidia-smi:

+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 575.64.03              Driver Version: 575.64.03      CUDA Version: 12.9     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 5070 ...    Off |   00000000:01:00.0  On |                  N/A |
| N/A   45C    P8              7W /   50W |     888MiB /   8151MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI              PID   Type   Process name                        GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A             992      G   /usr/lib/Xorg                            22MiB |
|    0   N/A  N/A            1065      G   /usr/bin/kwin_wayland                    65MiB |
|    0   N/A  N/A            1163      G   /usr/bin/Xwayland                         7MiB |
|    0   N/A  N/A            1198      G   /usr/bin/ksmserver                        2MiB |
|    0   N/A  N/A            1200      G   /usr/bin/kded6                            2MiB |
|    0   N/A  N/A            1218      G   /usr/bin/plasmashell                    183MiB |
|    0   N/A  N/A            1262      G   /usr/bin/kaccess                          2MiB |
|    0   N/A  N/A            1264      G   ...it-kde-authentication-agent-1          2MiB |
|    0   N/A  N/A            1266      G   /usr/lib/xdg-desktop-portal-kde           2MiB |
|    0   N/A  N/A            1353      G   /usr/bin/kdeconnectd                      2MiB |
|    0   N/A  N/A            1415      G   /usr/bin/python                           2MiB |
|    0   N/A  N/A            1439      G   /usr/lib/firefox/firefox                315MiB |
|    0   N/A  N/A            1596      G   /usr/bin/konsole                          2MiB |
|    0   N/A  N/A            1597      G   /usr/bin/kwrite                           2MiB |
|    0   N/A  N/A            2184      G   /usr/bin/kinfocenter                     67MiB |
+-----------------------------------------------------------------------------------------+

edit: is the 2 graphic processors thing normal?

1 Like
 nvidia-smi                                                                                                           22:06:30
Sun Jul  6 22:06:38 2025
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 575.64.03              Driver Version: 575.64.03      CUDA Version: 12.9     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 3070 ...    Off |   00000000:01:00.0  On |                  N/A |
| N/A   39C    P8             14W /  115W |    1045MiB /   8192MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI              PID   Type   Process name                        GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A           23966      G   /usr/lib/Xorg                            15MiB |
|    0   N/A  N/A           24033      G   /usr/bin/ksecretd                         2MiB |
|    0   N/A  N/A           24034      G   Hyprland                                 96MiB |
|    0   N/A  N/A           24079    C+G   python3                                   8MiB |
|    0   N/A  N/A           24086    C+G   swaync                                    7MiB |
|    0   N/A  N/A           24158      G   ...prpolkitagent/hyprpolkitagent          2MiB |
|    0   N/A  N/A           24195      G   python3                                   2MiB |
|    0   N/A  N/A           24219      G   /usr/bin/python                           2MiB |
|    0   N/A  N/A           24241      G   kwalletd6                                 2MiB |
|    0   N/A  N/A           24263      G   kdeconnect-indicator                      2MiB |
|    0   N/A  N/A           24283      G   /usr/bin/albert                           2MiB |
|    0   N/A  N/A           24328      G   nextcloud                                 2MiB |
|    0   N/A  N/A           24344      G   Xwayland                                  3MiB |
|    0   N/A  N/A           24394      G   ghostty                                  48MiB |
|    0   N/A  N/A           24507      G   /usr/bin/kdeconnectd                      2MiB |
|    0   N/A  N/A           25740      G   casper                                   70MiB |
|    0   N/A  N/A           25888      G   ...ale --variations-seed-version        641MiB |
|    0   N/A  N/A           26393      G   ...asma-browser-integration-host          2MiB |
+-----------------------------------------------------------------------------------------+

Is what I get, where am I looking?

I meant in About this system in Info Centre, sorry
Edit: if it isn’t, hit me up. I’m putting it as solved.

hyprland here, so can’t check sorry.

If you mean the KDE Systeminfo page, yes. It will normally display your GPUs.
In your case you iGPU and dGPU, one being Intel, one Nvidia.

But as it is, sometimes it doesen’t seem to work correctly and display the Nvidia card as llvmpipe, or zink vulcan. (which as long as it performs as it should is no issue and just a display error)


(yes, I have a setup with iGPU + dGPU and eGPU, ignore it the eGPU is just there when I need extra horse power on my Laptop)

And yes this screenshot is a few months old, from my own isue, trying to figure out what this llvmpipe is all about.

1 Like

Didnt seem to work..

But now that you have nouveau it would be

DRI_PRIME=1 glxinfo | grep 'renderer string'

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