Nvidia GeForce GTX 1650 - DKMS/nvidia-inst drivers installation/uninstallation

Hello EndeavourOS community :rocket:

I am new on the forums, to this distro and to Linux in general as I made the switch from win10 in February this year.

This is my spec:

inxi -Fza
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "",
        LC_ALL = (unset),
        LC_ADDRESS = "ro_RO.UTF-8",
        LC_NAME = "ro_RO.UTF-8",
        LC_MONETARY = "ro_RO.UTF-8",
        LC_PAPER = "ro_RO.UTF-8",
        LC_IDENTIFICATION = "ro_RO.UTF-8",
        LC_TELEPHONE = "ro_RO.UTF-8",
        LC_MEASUREMENT = "ro_RO.UTF-8",
        LC_TIME = "Default.UTF-8",
        LC_NUMERIC = "ro_RO.UTF-8",
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
System:
  Kernel: 5.15.63-1-lts arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-linux-lts
    root=UUID=ba88a9f5-5505-4759-9a22-74fa63b0688f rw loglevel=3 nowatchdog
    nvme_load=YES nvidia-drm.modeset=1
  Desktop: KDE Plasma v: 5.25.4 tk: Qt v: 5.15.5 info: cairo-dock
    wm: kwin_x11 vt: 1 dm: SDDM Distro: EndeavourOS base: Arch Linux
Machine:
  Type: Desktop Mobo: Gigabyte model: B365M H v: x.x
    serial: <superuser required> UEFI: American Megatrends v: F3
    date: 09/05/2019
CPU:
  Info: model: Intel Core i5-9400F bits: 64 type: MCP arch: Coffee Lake
    gen: core 9 built: 2018 process: Intel 14nm family: 6 model-id: 0x9E (158)
    stepping: 0xA (10) microcode: 0xF0
  Topology: cpus: 1x cores: 6 smt: <unsupported> cache: L1: 384 KiB
    desc: d-6x32 KiB; i-6x32 KiB L2: 1.5 MiB desc: 6x256 KiB L3: 9 MiB
    desc: 1x9 MiB
  Speed (MHz): avg: 800 min/max: 800/4100 scaling: driver: intel_pstate
    governor: powersave cores: 1: 800 2: 800 3: 800 4: 800 5: 800 6: 800
    bogomips: 34798
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT
    disabled
  Type: mds mitigation: Clear CPU buffers; SMT disabled
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT disabled
  Type: retbleed mitigation: IBRS
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl and seccomp
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: IBRS, IBPB: conditional, RSB filling,
    PBRSB-eIBRS: Not affected
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA TU117 [GeForce GTX 1650] vendor: Gigabyte driver: nvidia
    v: 515.65.01 alternate: nouveau,nvidia_drm non-free: 515.xx+ status: current
    (as of 2022-07) arch: Turing code: TUxxx process: TSMC 12nm
    built: 2018-22 pcie: gen: 3 speed: 8 GT/s lanes: 16 ports: active: none
    off: DP-1,HDMI-A-1 empty: HDMI-A-2 bus-ID: 01:00.0 chip-ID: 10de:1f82
    class-ID: 0300
  Display: x11 server: X.Org v: 21.1.4 compositor: kwin_x11 driver: X:
    loaded: nvidia unloaded: modesetting alternate: fbdev,nouveau,nv,vesa
    gpu: nvidia,nvidia-nvswitch display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3600x1080 s-dpi: 90 s-size: 1016x301mm (40.00x11.85")
    s-diag: 1060mm (41.72")
  Monitor-1: DP-1 mapped: DP-0 note: disabled pos: primary,left
    model: Dell S2522HG serial: <filter> built: 2021 res: 1920x1080 dpi: 90
    gamma: 1.2 size: 544x303mm (21.42x11.93") diag: 623mm (24.5") ratio: 16:9
    modes: max: 1920x1080 min: 640x480
  Monitor-2: HDMI-A-1 mapped: HDMI-0 note: disabled pos: right
    model: NEC E223W serial: <filter> built: 2015 res: 1680x1050 hz: 60 dpi: 90
    gamma: 1.2 size: 474x296mm (18.66x11.65") diag: 559mm (22") ratio: 16:10
    modes: max: 1680x1050 min: 640x480
  OpenGL: renderer: NVIDIA GeForce GTX 1650/PCIe/SSE2 v: 4.6.0 NVIDIA
    515.65.01 direct render: Yes
Audio:
  Device-1: Intel 200 Series PCH HD Audio vendor: Gigabyte
    driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a2f0
    class-ID: 0403
  Device-2: NVIDIA vendor: Gigabyte driver: snd_hda_intel v: kernel pcie:
    gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:10fa
    class-ID: 0403
  Sound Server-1: ALSA v: k5.15.63-1-lts running: yes
  Sound Server-2: PulseAudio v: 16.1 running: no
  Sound Server-3: PipeWire v: 0.3.56 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Gigabyte driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: d000 bus-ID: 07:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp7s0 state: up speed: 100 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 1.18 TiB used: 24.8 GiB (2.0%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Kingston model: SA400S37240G
    size: 223.57 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: B1D2 scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 vendor: Western Digital
    model: WD10EZEX-60WN4A1 size: 931.51 GiB block-size: physical: 4096 B
    logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 7200 serial: <filter>
    rev: 1A03 scheme: GPT
  ID-3: /dev/sdc maj-min: 8:32 type: USB vendor: Kingston
    model: DataTraveler 3.0 size: 57.73 GiB block-size: physical: 512 B
    logical: 512 B type: N/A serial: <filter> rev: 0000 scheme: MBR
  SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
Partition:
  ID-1: / raw-size: 39.06 GiB size: 38.15 GiB (97.67%) used: 20.64 GiB
    (54.1%) fs: ext4 dev: /dev/sda5 maj-min: 8:5
  ID-2: /boot/efi raw-size: 512 MiB size: 511 MiB (99.80%) used: 464 KiB
    (0.1%) fs: vfat dev: /dev/sda3 maj-min: 8:3
  ID-3: /home raw-size: 48.83 GiB size: 47.76 GiB (97.81%) used: 4.16 GiB
    (8.7%) fs: ext4 dev: /dev/sda6 maj-min: 8:6
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 38.0 C mobo: N/A gpu: nvidia temp: 53 C
  Fan Speeds (RPM): N/A gpu: nvidia fan: 57%
Info:
  Processes: 224 Uptime: 1h 21m wakeups: 0 Memory: 15.57 GiB used: 2.49 GiB
  (16.0%) Init: systemd v: 251 default: graphical tool: systemctl
  Compilers: gcc: 12.2.0 clang: 14.0.6 Packages: pacman: 1103 lib: 271
  flatpak: 0 Shell: Bash v: 5.1.16 running-in: konsole inxi: 3.3.20

On this computer I also have MX Linux (Debian) as my main OS but I would also like to have another option with newer software and application updates. That’s why I am here, on the bleeding edge xD.

So far I like EndeavourOS because it comes with everything needed from the beginning - which is pipewire-pulseaudio, bluetooth, intel-ucode etc. but at the same time with no bloat.
I was able to install Octopi, and Timeshift and other software by using Welcome interface and I really like the theme and wallpapers.

However, my issue is with Nvidia GeForce GTX 1650 (TU117) driver installation and uninstallation.
I know there is nvidia-dkms and nvidia-inst and I followed this tutorials new-nvidia-driver-installer-nvidia-inst and nvidia-installer and Arch Wiki - Dynamic_Kernel_Module_Support
What I did is to install gpu driver like this:

  1. sudo pacman -S nvidia-installer-dkms
  2. dkms autoinstall
  3. sudo pacman -S linux-lts-headers linux-headers linux-zen-headers (yes, I have three kernels because this is a test installation and I already went back and forth on it via snapshot :wink:)
  4. reboot

And I ended up with Nvidia/515.65.01 and it works. However, and this is the real problem, this driver 515 is reving/amping up my GPU too much for no reason. With only a browser and a couple of tabs opened the GPU fans go fast at times to cool it from going 52 Celsius degrees and up. it’s true, I also have a 240Hz refresh rate monitor but on MX with 510 driver it doesn’t go over 50 degrees while watching 4k videos with VLC.

Then I tried to uninstall it like this:

  1. dkms remove nvidia/515.65.01 --all
  2. removed headers via octopi (because it seemed easier, and I also did not know the command for it)

After this, during boot load, on the screen it gets stuck after Loading graphical interface.

I saw that I cannot just install 510 with dkms because it’s not in the official repo? Therefore I have to go via AUR as yay -S nvidia-510xx-dkms, right?

What am I doing wrong? What am I missing? How can I install and uninstall Nvidia drivers without messing up the system?
I am new to this so I would appreciate some baby steps, thank you! :penguin_face:

IIRC MX Linux uses XFCE while your EndeavourOS install uses KDE.
Instead of trying different drivers, simply disable compositor with shift+alt+f12

Yea… This is not going to do it. Edit: MX also has KDE version.

Anyway, I’ve seen that many people are complaining about driver 515 also in terms of performance ~ newer is not always better ~ and in this situation is think this is the case. I also tested Garuda some months ago and I thought it’s because of the Zen-Kernel but it’s actually because of the driver.

Now this might be a test installation but I am going to go for a fresh one very soon after I find out how can I actually install the version I want.
Any ideas guys regarding the installation / uninstallation ?

Install downgrade:

yay -S downgrade

Then uninstall your current drivers:

sudo pacman -R nvidia-dkms

Then run this:

sudo downgrade nvidia-dkms nvidia-utils lib32-nvidia-utils nvidia-settings

Downgrade will ask you which version you want to downgrade to, choose whatever version but make sure you choose the same version for all packages. Reboot when installation is complete.

1 Like

Okay, that’s a good one, thanks :+1: This will be an option to look for next time.

Meanwhile - I already went my way, the tinkering way lol and did this:

  1. first, I went for sudo nvidia-installer-dkms -n (but here I had a problem with Cannot remove conflicting package nvidia-dkms: error: failed to init transaction unable to lock database which was actually because of /var/lib/pacman/db.lck and I did not know what to do)

  2. so I went for another one dkms remove nvidia/515.65.01 --all but then I received again the messages with /var/lib/pacman/db.lck

  3. So I removed it with sudo command from terminal with sudo rm db.lck

  4. Then I tried again dkms remove nvidia/515.65.01 --all and it worked!

  5. Now, the headers already already installed, I did not reinstall them. But in the same session I installed Falkon browser from the Welcome-AddMoreApps feature and somehow it also went, automatically, after a system update including some updates and other stuff (not sure) to the nvidia packages.

Edit: 6. Okay, so I also went for yay -S nvidia-510xx-dkms

  1. I rebooted and it worked.

What do you think? :thinking:

Now I have 510 installed. This can be seen in Nvidia X server Settings and also if I type dkms status nvidia/510.85.02, 5.15.63-1-lts, x86_64: installed nvidia/510.85.02, 5.19.4-arch1-1, x86_64: installed nvidia/510.85.02, 5.19.4-zen1-1-zen, x86_64: installed

nvidia-smi gives me this

However, the GPU is still at 54-55 temperature with only a browser and 4 tabs opened.
The new system spec looks like this:

inxi -Fza
System:
  Kernel: 5.15.63-1-lts arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-linux-lts
    root=UUID=ba88a9f5-5505-4759-9a22-74fa63b0688f rw loglevel=3 nowatchdog
    nvme_load=YES nvidia-drm.modeset=1
  Desktop: KDE Plasma v: 5.25.4 tk: Qt v: 5.15.5 info: cairo-dock
    wm: kwin_x11 vt: 1 dm: SDDM Distro: EndeavourOS base: Arch Linux
Machine:
  Type: Desktop Mobo: Gigabyte model: B365M H v: x.x
    serial: <superuser required> UEFI: American Megatrends v: F3
    date: 09/05/2019
CPU:
  Info: model: Intel Core i5-9400F bits: 64 type: MCP arch: Coffee Lake
    gen: core 9 built: 2018 process: Intel 14nm family: 6 model-id: 0x9E (158)
    stepping: 0xA (10) microcode: 0xF0
  Topology: cpus: 1x cores: 6 smt: <unsupported> cache: L1: 384 KiB
    desc: d-6x32 KiB; i-6x32 KiB L2: 1.5 MiB desc: 6x256 KiB L3: 9 MiB
    desc: 1x9 MiB
  Speed (MHz): avg: 800 min/max: 800/4100 scaling: driver: intel_pstate
    governor: powersave cores: 1: 800 2: 800 3: 800 4: 800 5: 800 6: 800
    bogomips: 34798
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT
    disabled
  Type: mds mitigation: Clear CPU buffers; SMT disabled
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT disabled
  Type: retbleed mitigation: IBRS
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl and seccomp
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: IBRS, IBPB: conditional, RSB filling,
    PBRSB-eIBRS: Not affected
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA TU117 [GeForce GTX 1650] vendor: Gigabyte driver: nvidia
    v: 510.85.02 alternate: nouveau,nvidia_drm non-free: 515.xx+ status: current
    (as of 2022-07) arch: Turing code: TUxxx process: TSMC 12nm
    built: 2018-22 pcie: gen: 3 speed: 8 GT/s lanes: 16 ports: active: none
    off: DP-1,HDMI-A-1 empty: HDMI-A-2 bus-ID: 01:00.0 chip-ID: 10de:1f82
    class-ID: 0300
  Display: x11 server: X.Org v: 21.1.4 compositor: kwin_x11 driver: X:
    loaded: nvidia gpu: nvidia,nvidia-nvswitch display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3600x1080 s-dpi: 90 s-size: 1016x301mm (40.00x11.85")
    s-diag: 1060mm (41.72")
  Monitor-1: DP-1 mapped: DP-0 note: disabled pos: primary,left
    model: Dell S2522HG serial: <filter> built: 2021 res: 1920x1080 dpi: 90
    gamma: 1.2 size: 544x303mm (21.42x11.93") diag: 623mm (24.5") ratio: 16:9
    modes: max: 1920x1080 min: 640x480
  Monitor-2: HDMI-A-1 mapped: HDMI-0 note: disabled pos: right
    model: NEC E223W serial: <filter> built: 2015 res: 1680x1050 hz: 60 dpi: 90
    gamma: 1.2 size: 474x296mm (18.66x11.65") diag: 559mm (22") ratio: 16:10
    modes: max: 1680x1050 min: 640x480
  OpenGL: renderer: NVIDIA GeForce GTX 1650/PCIe/SSE2 v: 4.6.0 NVIDIA
    510.85.02 direct render: Yes
Audio:
  Device-1: Intel 200 Series PCH HD Audio vendor: Gigabyte
    driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a2f0
    class-ID: 0403
  Device-2: NVIDIA vendor: Gigabyte driver: snd_hda_intel v: kernel pcie:
    gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:10fa
    class-ID: 0403
  Sound Server-1: ALSA v: k5.15.63-1-lts running: yes
  Sound Server-2: PulseAudio v: 16.1 running: no
  Sound Server-3: PipeWire v: 0.3.56 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Gigabyte driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: d000 bus-ID: 07:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp7s0 state: up speed: 100 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 1.13 TiB used: 27.17 GiB (2.4%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Kingston model: SA400S37240G
    size: 223.57 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: B1D2 scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 vendor: Western Digital
    model: WD10EZEX-60WN4A1 size: 931.51 GiB block-size: physical: 4096 B
    logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 7200 serial: <filter>
    rev: 1A03 scheme: GPT
Partition:
  ID-1: / raw-size: 39.06 GiB size: 38.15 GiB (97.67%) used: 22.32 GiB
    (58.5%) fs: ext4 dev: /dev/sda5 maj-min: 8:5
  ID-2: /boot/efi raw-size: 512 MiB size: 511 MiB (99.80%) used: 464 KiB
    (0.1%) fs: vfat dev: /dev/sda3 maj-min: 8:3
  ID-3: /home raw-size: 48.83 GiB size: 47.76 GiB (97.81%) used: 4.85 GiB
    (10.2%) fs: ext4 dev: /dev/sda6 maj-min: 8:6
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 37.0 C mobo: N/A gpu: nvidia temp: 53 C
  Fan Speeds (RPM): N/A gpu: nvidia fan: 53%
Info:
  Processes: 233 Uptime: 21m wakeups: 0 Memory: 15.57 GiB used: 2.28 GiB
  (14.7%) Init: systemd v: 251 default: graphical tool: systemctl
  Compilers: gcc: 12.2.0 clang: 14.0.6 Packages: pacman: 1106 lib: 272
  flatpak: 0 Shell: Bash v: 5.1.16 running-in: konsole inxi: 3.3.20

Okay so I am back with more information as I went through more tinkering.
I reinstalled EndeavourOS KDE (I had to as swap partition was not added). Then I also installed AKM for easier installation of the headers (and kernels).

I went for:

  1. sudo pacman -S nvidia-installer-dkms
  2. then i installed yay -S nvidia-470xx-dkms
  3. then, via octopi, I installed nvidia-settings

It also works with 470xx. It’s staying more at 52 Celsius degrees but, even so, it’s too much for an Nivida card to stay at this temperature with only a browser and 5-10 tabs opened. The fans are raving/amping less than it used to on 515 and 510 but it is still not okay.
Moreover, I can sense a very subtle water-motion like when watching videos (youtube via chromium while having Override software rendering list, GPU rasterization and hardware acceleration turned on). It looks like the video would not be 100% synced with the audio… but also the video being a little bit slow… :thinking:

So… the operating system has these codecs installed already sudo pacman -S a52dec faac faad2 flac jasper lame libdca libdv libmad libmpeg2 libtheora libvorbis libxv opus x264 xvidcore (no wavpack but I don’t think that would be a issue.)

After I also installed opencl-nvidia I tested again and it’s the same.

Now this seems to not be a Nvidia installation/uninstallation issue anymore but a proper configuration of it …
What do you think guys? How can I make this Nvidia GPU run smooth and not get so hot? :saluting_face: :penguin: :grin:

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