Can't figure out how to install nvidia drivers

Hey guys, new here !!
so i will list everything i tried to do.
here is the output of inxi -G

Graphics:
  Device-1: Intel TigerLake-H GT1 [UHD Graphics] driver: i915 v: kernel
  Device-2: NVIDIA GA107M [GeForce RTX 3050 Mobile] driver: N/A
  Device-3: Sonix USB2.0 HD UVC WebCam type: USB driver: uvcvideo
  Display: x11 server: X.Org v: 21.1.4 driver: X: loaded: intel
    unloaded: modesetting gpu: i915 resolution: 1920x1080~144Hz
  OpenGL: renderer: Mesa Intel UHD Graphics (TGL GT1) v: 4.6 Mesa 22.1.4

as you can see apparently no drivers are available for my nvidia card
i checked with nvidia-smi and i get this
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
i tried to install the drivers with sudo nvidia-installer-dkms and it seems to work i mean i don’t get any errors but inxi -G shows me the same result so i tried to install the drivers from the nvidia website with the .run file but still i do get some errors and nvidia-smi still fails
any ideas on what might be the problem ? thank you

That should be relatively new card.
Did you follow guide on arch wiki? link to wiki

This is a bad thing to do because you may be missing some dependencies.
The best way to do it is just pacman -Syu nvidia (or nvidia-lts if you use lts linux kernel). That should be pretty much the most important part. The wiki then list bunch of other steps which you may or may not have to do. In my experience the installing nvidia package was enough for me.
I am not sure how problematic it will be for you now since those installers you tried might left some junk files behing which may interfere with nvidia package in the repo.

Read this first for some quick background information:

https://discovery.endeavouros.com/nvidia/nvidia-intro/2021/03/

Next to start the installation of Nvidia drivers, follow this wiki page:

https://discovery.endeavouros.com/nvidia/nvidia-installer/2021/03/

Third, for some additional, though optional, steps to consider read this:

https://discovery.endeavouros.com/nvidia/nvidia-optional-enhancements-and-troubleshooting/2021/03/

yes i read those and tried the nvidia-installer-check and my card is supported and nvidia-installer-dkms seems to work but i still get driver: N/A from inxi -G

i already tried to install the nvidia package but it didn’t do much tho i did that after all what i stated before, should i try to make a fresh install and use only the arch wiki ?

I cannot decide that for you but I don’t think it will make anything more broken. :smile:

You have a hybrid setup yes? So even with the nvidia drivers installed, your system will still default to booting into the Intel graphics. You have to tell your system to boot into the Nvidia GPU. Typically with hybrid, aka optimus setups, you can either use optimus-manager in the AUR OR my personal recommendation as it’s far simpler and easier to deal with is envycontrol which is also in the AUR

Once you have either of those setup (note: don’t use both, they will conflict with each other), then you’ll be one step closer to using your Nvidia GPU by default.

yes but even if i have a dual gpu setup drivers should be installed no ? i mean i shouldn’t get driver: N/A
and what about the output of nvidia-smi NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

anyway i’m gonna test my luck on envycontrol anyway

i think i might try that if nothing gets the job done, it’s really annoying because everything is working fine beside the nvidia card thank you for your help

tried to switch to nvidia, now the system no longer boots so i had to switch back to the integrated gpu

@nirvanaK
Have you checked your Bios settings to see if there is a way to set dedicated graphics for the nvidia?

not yet but i don’t see how this will help since there are no nvidia drivers or am i missing something ?

From your description, it seems you have done everything well and your system should work.
Since your system doesn’t work, either your description is not complete, or your system has something irregular.
Either way, we need more actual info, like terminal input and output from your terminal commands (including any error messages) and more detailed logs, like

inxi -Faz
pacman -Qs nvidia
journalctl -b -p3 --no-pager --no-hostname
2 Likes

I meant to add pacman -Qs nvidia to my post, thanks for this! This shows any user what is already installed on their system with the search term ‘nvidia’

@nirvanaK As an example to the command above, your setup should include something similar to the packages I have installed, but not all of them (like nvtop, nvidia-hook, & envycontrol I installed myself):

[scott@EndeavourOS ~]$ pacman -Qs nvidia
local/egl-wayland 2:1.1.10-1
    EGLStream-based Wayland external platform
local/envycontrol 2.1.1-1
    Easy GPU switching for Nvidia Optimus laptops under Linux
local/lib32-libvdpau 1.5-1
    Nvidia VDPAU library
local/lib32-nvidia-utils 515.65.01-1
    NVIDIA drivers utilities (32-bit)
local/libvdpau 1.5-1
    Nvidia VDPAU library
local/libxnvctrl 515.65.01-1
    NVIDIA NV-CONTROL X extension
local/nvidia-dkms 515.65.01-2
    NVIDIA drivers - module sources
local/nvidia-hook 1.0-1
    pacman hook for nvidia
local/nvidia-installer-common 1.3-1
    Common scripts for nvidia-installer-dkms and nvidia-inst
local/nvidia-installer-db 2.5.8-1
    Database for the script to setup nvidia drivers in EndeavourOS
local/nvidia-installer-dkms 3.5-1
    Script to setup nvidia drivers (dkms version) in EndeavourOS
local/nvidia-settings 515.65.01-1
    Tool for configuring the NVIDIA graphics driver
local/nvidia-utils 515.65.01-2
    NVIDIA drivers utilities
local/nvtop 2.0.2-1
    An htop like monitoring tool for AMD and NVIDIA GPUs
1 Like

i just made a fresh install so that’s great i can redo all the steps

inxi -Faz
System:
  Kernel: 5.18.16-arch1-1 arch: x86_64 bits: 64 compiler: gcc v: 12.1.1
    parameters: BOOT_IMAGE=/boot/vmlinuz-linux
    root=UUID=524dc20d-04a2-456e-b8e2-dff02dd23af8 rw
    resume=UUID=b39316e6-71e7-4203-b39e-50cd9e389fb2 loglevel=3 nowatchdog
    nvme_load=YES nvidia-drm.modeset=1
  Desktop: KDE Plasma v: 5.25.4 tk: Qt v: 5.15.5 wm: kwin_x11 vt: 1
    dm: SDDM Distro: EndeavourOS base: Arch Linux
Machine:
  Type: Laptop System: ASUSTeK product: ASUS TUF Gaming F17
    FX706HCB_TUF706HCB v: 1.0 serial: <superuser required>
  Mobo: ASUSTeK model: FX706HCB v: 1.0 serial: <superuser required>
    UEFI: American Megatrends LLC. v: FX706HCB.310 date: 11/25/2021
Battery:
  ID-1: BAT1 charge: 43.1 Wh (100.0%) condition: 43.1/48.1 Wh (89.7%)
    volts: 12.8 min: 11.7 model: ASUS A32-K55 type: Li-ion serial: N/A
    status: full
CPU:
  Info: model: 11th Gen Intel Core i5-11260H bits: 64 type: MT MCP
    arch: Tiger Lake gen: core 11 built: 2020 process: Intel 10nm family: 6
    model-id: 0x8D (141) stepping: 1 microcode: 0x3E
  Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
    L1: 480 KiB desc: d-6x48 KiB; i-6x32 KiB L2: 7.5 MiB desc: 6x1.2 MiB
    L3: 12 MiB desc: 1x12 MiB
  Speed (MHz): avg: 826 high: 931 min/max: 800/4400 scaling:
    driver: intel_pstate governor: powersave cores: 1: 929 2: 800 3: 801 4: 778
    5: 783 6: 931 7: 825 8: 801 9: 801 10: 776 11: 811 12: 885
    bogomips: 62688
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: retbleed status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Enhanced IBRS, IBPB: conditional, RSB
    filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel TigerLake-H GT1 [UHD Graphics] vendor: ASUSTeK driver: i915
    v: kernel arch: Gen-12.1 process: Intel 10nm built: 2020-21 ports:
    active: eDP-1 empty: HDMI-A-1 bus-ID: 0000:00:02.0 chip-ID: 8086:9a68
    class-ID: 0300
  Device-2: NVIDIA GA107M [GeForce RTX 3050 Mobile] vendor: ASUSTeK
    driver: N/A alternate: nouveau, nvidia_drm, nvidia non-free: 515.xx+
    status: current (as of 2022-07) arch: Ampere code: GAxxx process: TSMC n7
    (7nm) built: 2020-22 bus-ID: 0000:01:00.0 chip-ID: 10de:25a2
    class-ID: 0300
  Device-3: Sonix USB2.0 HD UVC WebCam type: USB driver: uvcvideo
    bus-ID: 3-7:3 chip-ID: 322e:202c class-ID: 0e02
  Display: x11 server: X.Org v: 21.1.4 compositor: kwin_x11 driver: X:
    loaded: intel unloaded: modesetting alternate: fbdev,vesa gpu: i915
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: eDP-1 mapped: eDP1 model: BOE Display 0x0a11 built: 2021
    res: 1920x1080 hz: 144 dpi: 128 gamma: 1.2 size: 380x220mm (14.96x8.66")
    diag: 438mm (17.3") ratio: 16:9 modes: 1920x1080
  OpenGL: renderer: Mesa Intel UHD Graphics (TGL GT1) v: 4.6 Mesa 22.1.4
    direct render: Yes
Audio:
  Device-1: Intel Tiger Lake-H HD Audio vendor: ASUSTeK driver: snd_hda_intel
    v: kernel alternate: snd_sof_pci_intel_tgl bus-ID: 0000:00:1f.3
    chip-ID: 8086:43c8 class-ID: 0403
  Device-2: NVIDIA vendor: ASUSTeK driver: snd_hda_intel v: kernel
    bus-ID: 0000:01:00.1 chip-ID: 10de:2291 class-ID: 0403
  Sound Server-1: ALSA v: k5.18.16-arch1-1 running: yes
  Sound Server-2: PulseAudio v: 16.1 running: no
  Sound Server-3: PipeWire v: 0.3.56 running: yes
Network:
  Device-1: MEDIATEK MT7921 802.11ax PCI Express Wireless Network Adapter
    vendor: AzureWave driver: mt7921e v: kernel bus-ID: 0000:02:00.0
    chip-ID: 14c3:7961 class-ID: 0280
  IF: wlan0 state: up mac: <filter>
  Device-2: Realtek vendor: ASUSTeK driver: r8169 v: kernel port: 3000
    bus-ID: 0000:03:00.0 chip-ID: 10ec:8162 class-ID: 0200
  IF: enp3s0 state: down mac: <filter>
Bluetooth:
  Device-1: IMC Networks Wireless_Device type: USB driver: btusb v: 0.8
    bus-ID: 3-14:4 chip-ID: 13d3:3563 class-ID: e001 serial: <filter>
  Report: rfkill ID: hci0 rfk-id: 0 state: down bt-service: disabled
    rfk-block: hardware: no software: no address: see --recommends
RAID:
  Hardware-1: Intel Volume Management Device NVMe RAID Controller driver: vmd
    v: 0.6 port: N/A bus-ID: 0000:00:0e.0 chip-ID: 8086:9a0b rev:
    class-ID: 0104
Drives:
  Local Storage: total: 476.94 GiB used: 7.42 GiB (1.6%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Intel model: SSDPEKNU512GZ
    size: 476.94 GiB block-size: physical: 512 B logical: 512 B
    speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: 002C
    temp: 36.9 C scheme: GPT
Partition:
  ID-1: / raw-size: 459.73 GiB size: 451.45 GiB (98.20%) used: 7.42 GiB
    (1.6%) fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) used: 312 KiB
    (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 16.91 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/nvme0n1p3 maj-min: 259:3
Sensors:
  System Temperatures: cpu: 51.0 C mobo: N/A
  Fan Speeds (RPM): cpu: 2300
Info:
  Processes: 237 Uptime: 33m wakeups: 882 Memory: 15.37 GiB used: 1.98 GiB
  (12.9%) Init: systemd v: 251 default: graphical tool: systemctl
  Compilers: gcc: 12.1.1 Packages: pacman: 931 lib: 218 Shell: Bash v: 5.1.16
  running-in: konsole inxi: 3.3.20

and here is the output of pacman -Qs nvidia

local/egl-wayland 2:1.1.10-1
    EGLStream-based Wayland external platform
local/libvdpau 1.5-1
    Nvidia VDPAU library
local/nvidia-dkms 515.65.01-2
    NVIDIA drivers - module sources
local/nvidia-hook 1.0-1
    pacman hook for nvidia
local/nvidia-inst 1.2-1
    Script to setup nvidia drivers (dkms version) in EndeavourOS
local/nvidia-installer-common 1.3-1
    Common scripts for nvidia-installer-dkms and nvidia-inst
local/nvidia-installer-db 2.5.8-1
    Database for the script to setup nvidia drivers in EndeavourOS
local/nvidia-installer-dkms 3.5-1
    Script to setup nvidia drivers (dkms version) in EndeavourOS
local/nvidia-utils 515.65.01-2
    NVIDIA drivers utilities

now as the doc suggest https://discovery.endeavouros.com/nvidia/nvidia-installer/2021/03/ here is the output of nvidia-installer-check

Graphics card (id: 25a2):
  - Is supported by the nvidia-dkms driver.
  - To install a driver for this card, you can use e.g. nvidia-installer-dkms.

so i run nvidia-installer-dkms everything works fine i reboot and install optimus-manager same problem as envycontrol i could not boot so i had to remove the package and btw still i have the same output for nvidia-smi and inxi -G and here is the output of journalctl -b -p3 --no-pager --no-hostname after all that

Aug 08 21:52:33 kernel: ACPI BIOS Error (bug): Failure creating named object [\_TZ.ETMD], AE_ALREADY_EXISTS (20211217/dswload2-326)
Aug 08 21:52:33 kernel: ACPI Error: AE_ALREADY_EXISTS, During name lookup/catalog (20211217/psobject-220)
Aug 08 21:52:33 kernel: ACPI Error: AE_NOT_FOUND, While resolving a named reference package element - \_SB_.PC00.LPCB.H_EC.SEN2 (20211217/dspkginit-438)
Aug 08 21:52:33 kernel: ACPI Error: AE_NOT_FOUND, While resolving a named reference package element - \_SB_.PC00.LPCB.H_EC.CHRG (20211217/dspkginit-438)
Aug 08 21:52:33 kernel: ACPI Error: AE_NOT_FOUND, While resolving a named reference package element - \_SB_.PC00.LPCB.H_EC.SEN4 (20211217/dspkginit-438)
Aug 08 21:52:34 kernel: 
Aug 08 21:52:34 kernel: traps: Missing ENDBR: _nv011437rm+0x0/0x10 [nvidia]
Aug 08 21:52:34 kernel: kernel BUG at arch/x86/kernel/traps.c:252!
Aug 08 21:52:34 systemd[1]: Failed to start Load Kernel Modules.
Aug 08 21:52:35 kernel: spi-nor spi0.0: unrecognized JEDEC id bytes: c2 75 18 c2 75 18
Aug 08 21:52:35 kernel: Bluetooth: hci0: Wrong op received 1 expected 6
Aug 08 21:52:35 kernel: Bluetooth: hci0: Failed to send wmt func ctrl (-5)
Aug 08 21:52:35 kernel: ucsi_acpi USBC000:00: PPM init failed (-110)
Aug 08 21:52:38 kwin_x11[682]: kwin_xkbcommon: XKB: couldn't find a Compose file for locale "en_AG" (mapped to "en_AG")
Aug 08 21:52:39 wpa_supplicant[602]: bgscan simple: Failed to enable signal strength monitoring
Aug 08 21:52:40 pipewire[1416]: spa.v4l2: '/dev/video0' VIDIOC_QUERYCTRL: Value too large for defined data type
Aug 08 21:52:40 kernel: usb 3-7: Failed to query (GET_MIN) UVC control 6 on unit 2: -32 (exp. 2).
Aug 08 21:52:40 pipewire[1416]: spa.v4l2: '/dev/video0' VIDIOC_QUERYCTRL: Value too large for defined data type
Aug 08 21:52:40 kernel: usb 3-7: Failed to query (GET_DEF) UVC control 1 on unit 2: -32 (exp. 2).
Aug 08 21:55:34 systemd-udevd[315]: 0000:01:00.0: Worker [350] processing SEQNUM=3439 killed

Have you tried running nvidia-inst instead of installing the dkms version?

Edit: Also have you tried using the kernel parameter ibt=off in the default grub command line and then update grub?

1 Like

i have tried the nvidia-inst, same result but i didn’t tweak the kernel parameters should i try that ?

Yes using nano add the kernel parameter to the existing default grub command line in /etc/default/grub. Then update grub with sudo grub-mkconfig -o /boot/grub/grub.cfg

and just to be sure i shouldn’t get Driver:N/A from inxi -G right ?

1 Like