Issues with NVIDIA drivers

Hi, I’m a total newcomer to Linux in general, and have decided to give it a shot after owning and tinkering around with a Steam Deck (mainly for gaming).
I’ve been having trouble setting up / installing NVIDIA drivers onto my installation of Garuda. My gaming experience have been kind of disappointing so far (I’m assuming it is due to drivers). Tried playing Cuphead which ran at around 5-6frames per second, and Smite which ran at around 20-30, which is quite disappointing to see considering the build of this computer. (EDIT: Forgot to mention that this is a dualboot alongside a Windows10 installation.)

-I’ve tried installing drivers using “sudo pacman -S nvidia nvidia-settings” but to no awail, this method of installation actually messes up my OS. After running this command, I can only boot into an empty environment. Only cursor shows up, nothing else, and I have to resort into using a snapshot to boot.
-I’ve also tried following the installation process through the official arch wiki (NVIDIA - ArchWiki), but have gotten stuck at the part where when opening the installer, says I need to exit X before installing.
-Using the default drivers that come with Garuda, is the only thing that has gotten the installation of my drivers correctly. I know because this is the only way I have ever gotten more than one connected display to post.
-What I’ve also tried is booting onto other Kernels such as LTS, but all kernels other than Zen, just result in only one of my displays getting to post.

Here’s my garuda-inxi :

╭─kew@Kew in ~
╰─λ garuda-inxi
System:
Kernel: 6.7.4-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
clocksource: tsc avail: hpet,acpi_pm
parameters: BOOT_IMAGE=/@/.snapshots/21/snapshot/boot/vmlinuz-linux-zen
root=UUID=e92ed620-1d43-403e-8469-1a3aead20570 quiet loglevel=3 ibt=off
rootflags=defaults,noatime,compress=zstd,subvol=@/.snapshots/21/snapshot
Desktop: KDE Plasma v: 5.27.10 tk: Qt v: 5.15.12 info: frameworks
v: 5.115.0 wm: kwin_wayland vt: 1 dm: SDDM Distro: Garuda base: Arch Linux
Machine:
Type: Desktop Mobo: ASRock model: B650 PG Lightning
serial: <superuser required> uuid: <superuser required> UEFI: American
Megatrends LLC. v: 2.02 date: 11/17/2023
CPU:
Info: model: AMD Ryzen 7 7700X bits: 64 type: MT MCP arch: Zen 4 gen: 5
level: v4 note: check built: 2022+ process: TSMC n5 (5nm) family: 0x19 (25)
model-id: 0x61 (97) stepping: 2 microcode: 0xA601206
Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 8 MiB desc: 8x1024 KiB
L3: 32 MiB desc: 1x32 MiB
Speed (MHz): avg: 3603 high: 5444 min/max: 400/5573 scaling:
driver: amd-pstate-epp governor: powersave cores: 1: 3641 2: 5444 3: 400
4: 4846 5: 5035 6: 400 7: 3560 8: 400 9: 4404 10: 5332 11: 5313 12: 5119
13: 5087 14: 4524 15: 3755 16: 400 bogomips: 143731
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities: <filter>
Graphics:
Device-1: NVIDIA AD104 [GeForce RTX 4070] vendor: Micro-Star MSI
driver: nouveau v: kernel non-free: 545.xx+ status: current (as of 2024-02)
arch: Lovelace code: AD1xx process: TSMC n4 (5nm) built: 2022+ pcie:
gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s ports:
active: DP-1,DP-3,HDMI-A-1 empty: DP-2 bus-ID: 01:00.0 chip-ID: 10de:2786
class-ID: 0300
Device-2: Oculus VR Rift CV1 Sensor driver: uvcvideo type: USB rev: 2.1
speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-9.1:5 chip-ID: 2833:0211
class-ID: ef00 serial: <filter>
Device-3: Logitech BRIO Ultra HD Webcam
driver: hid-generic,snd-usb-audio,usbhid,uvcvideo type: USB rev: 3.1
speed: 5 Gb/s lanes: 1 mode: 3.2 gen-1x1 bus-ID: 6-1.2:4
chip-ID: 046d:085e class-ID: 0300 serial: <filter>
Device-4: Oculus VR Rift CV1 Sensor driver: uvcvideo type: USB rev: 3.0
speed: 5 Gb/s lanes: 1 mode: 3.2 gen-1x1 bus-ID: 6-2:3 chip-ID: 2833:0211
class-ID: ef00 serial: <filter>
Display: wayland server: X.org v: 1.21.1.11 with: Xwayland v: 23.2.4
compositor: kwin_wayland driver: X: loaded: modesetting,nouveau
alternate: fbdev,nv,vesa dri: nouveau gpu: nouveau d-rect: 5760x1080
display-ID: 0
Monitor-1: DP-1 pos: center res: 1920x1080 size: N/A modes: N/A
Monitor-2: DP-3 pos: primary,left res: 1920x1080 size: N/A modes: N/A
Monitor-3: HDMI-A-1 pos: right res: 1920x1080 size: N/A modes: N/A
API: EGL v: 1.5 hw: drv: nvidia nouveau platforms: device: 0 drv: nouveau
device: 1 drv: swrast gbm: drv: nouveau surfaceless: drv: nouveau wayland:
drv: nouveau x11: drv: nouveau
API: OpenGL v: 4.5 compat-v: 4.3 vendor: mesa v: 23.3.5-arch1.1 glx-v: 1.4
direct-render: yes renderer: NV194 device-ID: 10de:2786 memory: 11.67 GiB
unified: no display-ID: :1.0
API: Vulkan v: 1.3.276 layers: 7 device: 0 type: cpu name: llvmpipe (LLVM
16.0.6 256 bits) driver: mesa llvmpipe v: 23.3.5-arch1.1 (LLVM 16.0.6)
device-ID: 10005:0000 surfaces: xcb,xlib,wayland
Audio:
Device-1: NVIDIA vendor: Micro-Star MSI driver: snd_hda_intel v: kernel
pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s
bus-ID: 01:00.1 chip-ID: 10de:22bc class-ID: 0403
Device-2: AMD Family 17h/19h HD Audio vendor: ASRock driver: snd_hda_intel
v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 12:00.6
chip-ID: 1022:15e3 class-ID: 0403
Device-3: Texas Instruments PCM2902 Audio Codec
driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 1.1 speed: 12 Mb/s
lanes: 1 mode: 1.1 bus-ID: 5-1.1:3 chip-ID: 08bb:2902 class-ID: 0300
Device-4: Logitech BRIO Ultra HD Webcam
driver: hid-generic,snd-usb-audio,usbhid,uvcvideo type: USB rev: 3.1
speed: 5 Gb/s lanes: 1 mode: 3.2 gen-1x1 bus-ID: 6-1.2:4
chip-ID: 046d:085e class-ID: 0300 serial: <filter>
API: ALSA v: k6.7.4-zen1-1-zen status: kernel-api with: aoss
type: oss-emulator tools: N/A
Server-1: PipeWire v: 1.0.3 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Realtek RTL8125 2.5GbE vendor: ASRock driver: r8169 v: kernel
pcie: gen: 2 speed: 5 GT/s lanes: 1 port: e000 bus-ID: 0e:00.0
chip-ID: 10ec:8125 class-ID: 0200
IF: enp14s0 state: up speed: 100 Mbps duplex: full mac: <filter>
Info: services: NetworkManager,systemd-timesyncd
Drives:
Local Storage: total: 2.73 TiB used: 370.97 GiB (13.3%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:1 vendor: Samsung model: SSD 980 1TB
size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
lanes: 4 tech: SSD serial: <filter> fw-rev: 3B4QFXO7 temp: 34.9 C
scheme: GPT
ID-2: /dev/nvme1n1 maj-min: 259:10 vendor: Samsung model: SSD 980 1TB
size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
lanes: 4 tech: SSD serial: <filter> fw-rev: 3B4QFXO7 temp: 32.9 C
scheme: GPT
ID-3: /dev/nvme2n1 maj-min: 259:0 vendor: Samsung model: SSD 980 500GB
size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
lanes: 4 tech: SSD serial: <filter> fw-rev: 3B4QFXO7 temp: 37.9 C
scheme: GPT
ID-4: /dev/sda maj-min: 8:0 vendor: Seagate model: M3 size: 465.76 GiB
block-size: physical: 4096 B logical: 512 B type: USB rev: 3.0 spd: 5 Gb/s
lanes: 1 mode: 3.2 gen-1x1 tech: N/A serial: <filter> fw-rev: 0707
scheme: MBR
Partition:
ID-1: /boot/efi raw-size: 100 MiB size: 96 MiB (96.00%)
used: 25.6 MiB (26.6%) fs: vfat dev: /dev/nvme2n1p1 maj-min: 259:2
ID-2: /home raw-size: 213.02 GiB size: 213.02 GiB (100.00%)
used: 21.12 GiB (9.9%) fs: btrfs dev: /dev/nvme2n1p5 maj-min: 259:6
ID-3: /var/log raw-size: 213.02 GiB size: 213.02 GiB (100.00%)
used: 21.12 GiB (9.9%) fs: btrfs dev: /dev/nvme2n1p5 maj-min: 259:6
ID-4: /var/tmp raw-size: 213.02 GiB size: 213.02 GiB (100.00%)
used: 21.12 GiB (9.9%) fs: btrfs dev: /dev/nvme2n1p5 maj-min: 259:6
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
ID-1: swap-1 type: zram size: 30.96 GiB used: 3.8 MiB (0.0%) priority: 100
comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 16 dev: /dev/zram0
Sensors:
System Temperatures: cpu: 65.2 C mobo: N/A
Fan Speeds (rpm): N/A
Info:
Memory: total: 32 GiB note: est. available: 30.96 GiB used: 7.12 GiB (23.0%)
Processes: 361 Power: uptime: 21m states: freeze,mem,disk suspend: deep
avail: s2idle wakeups: 0 hibernate: platform avail: shutdown, reboot,
suspend, test_resume image: 12.36 GiB services: org_kde_powerdevil,
power-profiles-daemon, upowerd Init: systemd v: 255 default: graphical
tool: systemctl
Packages: pm: pacman pkgs: 1372 libs: 458 tools: octopi,paru Compilers:
gcc: 13.2.1 Shell: garuda-inxi default: fish v: 3.7.0 running-in: konsole
inxi: 3.3.33
Garuda (2.6.23-1):
System install date:     2024-02-16
Last full system update: 2024-02-16
Is partially upgraded:   No
Relevant software:       snapper NetworkManager dracut
Windows dual boot:       Probably (Run as root to verify)
Failed units:            snapper-cleanup.service systemd-remount-fs.service

I’m eager to learn how to troubleshoot this issue.
Cheers!

1 Like

Hi there, welcome to the forum.

First try using a Plasma/X11 session (in the login screen), because Nvidia and Wayland don’t get along very well often.
Then try installing the nvidia drivers with:

sudo pacman -S nvidia-dkms nvidia-settings

Edit:
First of all

you are still booted onto a snapshot.
You should restore it using the btrfs-assistant and reboot

5 Likes

Thanks for the reply!
I booted onto my OS normally (without a snapshot now), and switched to X11.
The command though, returns “error: target not found: nvidia-dkms-utils”.
I did however, find success with just the command “sudo pacman -S nvidia-dkms”. Leaving the nvidia-dkms-utils part out, just seems to have worked. Well, worked as far as i’m getting all my displays to boot. I’ll try gaming and I’ll edit this reply in a few minutes.

Sorry, just corrected
For gaming, you might need also the lib32 versions.
No, I think all you need should come with Steam.
Sorry, i’m everything but a gamer :grinning:

5 Likes

Got everything to work. After a bit more tinkering and getting Proton to work, all of my games run flawlessly (in-fact, even better than they did on Windows I think…). Thank you for providing assistance! Will mark the above answer as the Solution.
Cheers!

3 Likes

Welcome to Garuda! Glad to see you got everything sorted. :grinning:

2 Likes

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