Nvidia card is no longer detected Garuda linux

Hello everyone, some time ago I installed envycontrol and ran the command

sudo envycontrol -s nvidia

next, i run:

sudo envycontrol -s integrated

After this operation, the system no longer found my nvidia graphics card
The /dev/nvidia folder does not exist and furthermore every time the computer is started the following message appears:

NVRM: no Nvidia GPU found

this is my garuda inxi, hope someone can help me

System:
Kernel: 6.9.4-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 14.1.1
clocksource: tsc avail: acpi_pm
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=9bfdd030-1f2b-4093-8a17-2b4630d976e5 rw rootflags=subvol=@
quiet quiet rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3
ibt=off
Desktop: KDE Plasma v: 6.0.5 tk: Qt v: N/A info: frameworks v: 6.3.0
wm: kwin_wayland vt: 1 dm: SDDM Distro: Garuda base: Arch Linux
Machine:
Type: Laptop System: HP product: HP Laptop 15-dw1xxx v: Type1ProductConfigId
serial: <superuser required> Chassis: type: 10 serial: <superuser required>
Mobo: HP model: 85F2 v: 37.29 serial: <superuser required>
part-nu: 23J95EA#ABZ uuid: <superuser required> UEFI: Insyde v: F.53
date: 10/15/2021
Battery:
ID-1: BAT1 charge: 16.3 Wh (44.4%) condition: 36.7/41.0 Wh (89.4%)
volts: 11.2 min: 11.4 model: Hewlett-Packard PABAS0241231 type: Li-ion
serial: <filter> status: discharging
CPU:
Info: model: Intel Core i7-10510U bits: 64 type: MT MCP
arch: Comet/Whiskey Lake note: check gen: core 10 level: v3 note: check
built: 2018 process: Intel 14nm family: 6 model-id: 0x8E (142)
stepping: 0xC (12) microcode: 0xFA
Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB
L3: 8 MiB desc: 1x8 MiB
Speed (MHz): avg: 600 high: 800 min/max: 400/4900 scaling:
driver: intel_pstate governor: powersave cores: 1: 800 2: 800 3: 400 4: 800
5: 400 6: 400 7: 400 8: 800 bogomips: 36799
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities: <filter>
Graphics:
Device-1: Intel CometLake-U GT2 [UHD Graphics] vendor: Hewlett-Packard
driver: i915 v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20
ports: active: eDP-1 empty: DP-1,HDMI-A-1,HDMI-A-2 bus-ID: 00:02.0
chip-ID: 8086:9b41 class-ID: 0300
Device-2: IMC Networks HP TrueVision HD Camera driver: uvcvideo type: USB
rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-5:3 chip-ID: 13d3:56c9
class-ID: 0e02 serial: <filter>
Display: wayland server: X.org v: 1.21.1.13 with: Xwayland v: 24.1.0
compositor: kwin_wayland driver: X: loaded: modesetting
alternate: fbdev,intel,vesa dri: iris gpu: i915 display-ID: 0
Monitor-1: eDP-1 res: 1920x1080 size: N/A modes: N/A
API: EGL v: 1.5 hw: drv: intel iris platforms: device: 0 drv: iris
device: 1 drv: swrast surfaceless: drv: iris wayland: drv: iris x11:
drv: iris inactive: gbm
API: OpenGL v: 4.6 compat-v: 4.5 vendor: intel mesa v: 24.1.1-arch1.1
glx-v: 1.4 direct-render: yes renderer: Mesa Intel UHD Graphics (CML GT2)
device-ID: 8086:9b41 memory: 3.69 GiB unified: yes display-ID: :1.0
API: Vulkan v: 1.3.279 layers: 8 device: 0 type: integrated-gpu name: Intel
UHD Graphics (CML GT2) driver: mesa intel v: 24.1.1-arch1.1
device-ID: 8086:9b41 surfaces: xcb,xlib,wayland device: 1 type: cpu
name: llvmpipe (LLVM 17.0.6 256 bits) driver: mesa llvmpipe
v: 24.1.1-arch1.1 (LLVM 17.0.6) device-ID: 10005:0000
surfaces: xcb,xlib,wayland
Audio:
Device-1: Intel Comet Lake PCH-LP cAVS vendor: Hewlett-Packard
driver: snd_hda_intel v: kernel alternate: snd_soc_skl, snd_soc_avs,
snd_sof_pci_intel_cnl bus-ID: 00:1f.3 chip-ID: 8086:02c8 class-ID: 0403
API: ALSA v: k6.9.4-zen1-1-zen status: kernel-api tools: N/A
Server-1: PipeWire v: 1.0.7 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 RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
vendor: Hewlett-Packard driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
lanes: 1 port: 4000 bus-ID: 02:00.0 chip-ID: 10ec:8168 class-ID: 0200
IF: eno1 state: down mac: <filter>
Device-2: Realtek RTL8821CE 802.11ac PCIe Wireless Network Adapter
vendor: Hewlett-Packard driver: rtw_8821ce v: N/A modules: rtw88_8821ce
pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: 3000 bus-ID: 03:00.0
chip-ID: 10ec:c821 class-ID: 0280
IF: wlo1 state: up mac: <filter>
Info: services: NetworkManager,wpa_supplicant
Bluetooth:
Device-1: Realtek Bluetooth 4.2 Adapter driver: btusb v: 0.8 type: USB
rev: 1.1 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-10:5 chip-ID: 0bda:b00a
class-ID: e001 serial: <filter>
Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 4.2
lmp-v: 8 status: discoverable: no pairing: no class-ID: 6c010c
RAID:
Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci
v: 3.0 port: 6060 bus-ID: 00:17.0 chip-ID: 8086:282a rev: class-ID: 0104
Drives:
Local Storage: total: 585 GiB used: 49.74 GiB (8.5%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 870 EVO 500GB
size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
tech: SSD serial: <filter> fw-rev: 2B6Q scheme: GPT
ID-2: /dev/sdb maj-min: 8:16 vendor: SSSTC model: CV8-8E128-HP
size: 119.24 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
tech: SSD serial: <filter> fw-rev: V881 scheme: GPT
Partition:
ID-1: / raw-size: 357.06 GiB size: 357.06 GiB (100.00%)
used: 49.74 GiB (13.9%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 588 KiB (0.2%) fs: vfat dev: /dev/sda1 maj-min: 8:1
ID-3: /home raw-size: 357.06 GiB size: 357.06 GiB (100.00%)
used: 49.74 GiB (13.9%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
ID-4: /var/log raw-size: 357.06 GiB size: 357.06 GiB (100.00%)
used: 49.74 GiB (13.9%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
ID-5: /var/tmp raw-size: 357.06 GiB size: 357.06 GiB (100.00%)
used: 49.74 GiB (13.9%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
ID-1: swap-1 type: zram size: 7.56 GiB used: 0 KiB (0.0%) priority: 100
comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 8 dev: /dev/zram0
Sensors:
System Temperatures: cpu: 40.0 C pch: 37.0 C mobo: N/A
Fan Speeds (rpm): N/A
Info:
Memory: total: 8 GiB available: 7.56 GiB used: 2.87 GiB (37.9%)
Processes: 246 Power: uptime: 16m states: freeze,mem,disk suspend: deep
avail: s2idle wakeups: 0 hibernate: platform avail: shutdown, reboot,
suspend, test_resume image: 2.99 GiB services: org_kde_powerdevil,
power-profiles-daemon, upowerd Init: systemd v: 255 default: graphical
tool: systemctl
Packages: pm: dpkg pkgs: 0 pm: pacman pkgs: 1484 libs: 426
tools: octopi,paru,yay Compilers: clang: 17.0.6 gcc: 14.1.1
Shell: garuda-inxi default: fish v: 3.7.1 running-in: konsole inxi: 3.3.34
Garuda (2.6.26-1):
System install date:     2024-05-09
Last full system update: 2024-06-17
Is partially upgraded:   No
Relevant software:       snapper NetworkManager mkinitcpio nvidia-dkms
Windows dual boot:       Probably (Run as root to verify)
Failed units:            nvidia-persistenced.service

I also attach the nvidia service logs

Ă— nvidia-persistenced.service - NVIDIA Persistence Daemon
     Loaded: loaded (/usr/lib/systemd/system/nvidia-persistenced.service; enabled; preset: disabled)
     Active: failed (Result: exit-code) since Mon 2024-06-17 02:18:14 CEST; 6min ago
    Process: 633 ExecStart=/usr/bin/nvidia-persistenced --user nvidia-persistenced (code=exited, status=1/FAILURE)
    Process: 716 ExecStopPost=/bin/rm -rf /var/run/nvidia-persistenced (code=exited, status=0/SUCCESS)
        CPU: 22ms

giu 17 02:18:14 andrea-hplaptop systemd[1]: Starting NVIDIA Persistence Daemon...
giu 17 02:18:14 andrea-hplaptop nvidia-persistenced[644]: Started (644)
giu 17 02:18:14 andrea-hplaptop nvidia-persistenced[644]: Failed to query NVIDIA devices. Please ensure that the NVIDIA device files (/dev/nvidia*) exist, and that user 143 has read and write permissions for those files.
giu 17 02:18:14 andrea-hplaptop nvidia-persistenced[644]: Shutdown (644)
giu 17 02:18:14 andrea-hplaptop nvidia-persistenced[633]: nvidia-persistenced failed to initialize. Check syslog for more details.
giu 17 02:18:14 andrea-hplaptop systemd[1]: nvidia-persistenced.service: Control process exited, code=exited, status=1/FAILURE
giu 17 02:18:14 andrea-hplaptop systemd[1]: nvidia-persistenced.service: Failed with result 'exit-code'.
giu 17 02:18:14 andrea-hplaptop systemd[1]: Failed to start NVIDIA Persistence Daemon.

Thanks to anyone who can help me and sorry for my English

Try to enable hybrid mode:

sudo envycontrol -s hybrid

Reboot and check again.

I tried it and the following message comes out:

ERROR: Unable to find Nvidia GPU
Try switching to hybrid mode first!

Try resetting envycontrol:

sudo envycontrol --reset

Reboot.

I don’t understand why the writing always comes out

It just doesn’t seem to work

First try to enable the service:

sudo systemctl enable nvidia-persistenced

Reboot and then check the status:

systemctl status nvidia-persistenced

Then try to enable the nvidia GPU:

sudo envycontrol -s nvidia

Reboot.

I tried, this is the result of the service status:

Ă— nvidia-persistenced.service - NVIDIA Persistence Daemon
     Loaded: loaded (/usr/lib/systemd/system/nvidia-persistenced.service; enabled; preset: disabled)
     Active: failed (Result: exit-code) since Mon 2024-06-17 15:54:49 CEST; 1min 32s ago
    Process: 631 ExecStart=/usr/bin/nvidia-persistenced --user nvidia-persistenced (code=exited, status=1/FAILURE)
    Process: 714 ExecStopPost=/bin/rm -rf /var/run/nvidia-persistenced (code=exited, status=0/SUCCESS)
        CPU: 23ms

giu 17 15:54:49 andrea-hplaptop systemd[1]: Starting NVIDIA Persistence Daemon...
giu 17 15:54:49 andrea-hplaptop nvidia-persistenced[638]: Started (638)
giu 17 15:54:49 andrea-hplaptop nvidia-persistenced[638]: Failed to query NVIDIA devices. Please ensure that the NVIDIA device files (/dev/nvidia*) exist, and that user 143 has read and write permissions for those files.
giu 17 15:54:49 andrea-hplaptop nvidia-persistenced[631]: nvidia-persistenced failed to initialize. Check syslog for more details.
giu 17 15:54:49 andrea-hplaptop nvidia-persistenced[638]: Shutdown (638)
giu 17 15:54:49 andrea-hplaptop systemd[1]: nvidia-persistenced.service: Control process exited, code=exited, status=1/FAILURE
giu 17 15:54:49 andrea-hplaptop systemd[1]: nvidia-persistenced.service: Failed with result 'exit-code'.
giu 17 15:54:49 andrea-hplaptop systemd[1]: Failed to start NVIDIA Persistence Daemon.

performing

sudo envycontrol -s nvidia

I always get the same error output

Ahh…you have to do this on x11, not on wayland :wink:

Switch to an x11 session and try again:

it’s crazy! It doesn’t even work that way
whatever I do, it always gives me the same error :frowning:

What if you unistall this package? Can you see your Nvidia card back?
If so, maybe try reinstalling.
I’m afraid this package might conflict with some of our core packages (e.g. MHWD-*), since I see at a certain point in time they made it conflict with optimus-manager).
If the Nvidia card is back after package removal, I don’t think there is much we can do about it. This is really not in our standards…

Try KDE LTS version, try other live ISO/DE.
In moment there is no nvidia GPU in your system.

The nvidia gpu is deactivated and can no longer be activated.

@andrea28 try @filos suggestion, reinstall:

sudo pacman -S envycontrol

Reboot.

Then try switching to hybrid:

sudo envycontrol -s hybrid

Reboot.

If that doesn’t work, then remove envycontrol:

sudo pacman -R envycontrol

Reboot.

2 Likes

Unfortunately this didn’t work either… I’ll try @SGS 's proposal later
Thanks so much guys

Isn’t there a way to manually activate the nvidia card?

That’s what envycontrol is for. It worked without any problems in your other thread. I suspect it has something to do with the driver update. You had version 550.78 back then, the current version is 550.90.

Try reinstalling the nvidia drivers:

sudo pacman -S nvidia-dkms nvidia-utils
2 Likes

Unfortunately it didn’t work… I could do without the nvidia drivers, but I would also like to understand why when I update linux-zen-headers this error message now appears:

dkms install --no-depmod rtl8821ce/1.0.5.r169.g66983b6 -k 6.9.4-zen1-1-zen
Error! Bad return status for module build on kernel: 6.9.4-zen1-1-zen (x86_64)
Consult /var/lib/dkms/rtl8821ce/1.0.5.r169.g66983b6/build/make.log for more information.
==> WARNING: `dkms install --no-depmod rtl8821ce/1.0.5.r169.g66983b6 -k 6.9.4-zen1-1-zen' exited 10

Could it be connected with the nvidia card?

No, this error is related to your Realtek WiFi driver.

When a kernel is updated oftentimes the Realtek WiFi driver can be broken for a while afterwards. The usual solution for this is to install and run the LTS kernel (and headers) until the Realtek WiFi driver is updated/fixed.

You can check the log (as the error message suggests) for further information on exactly why this occured.

1 Like

I agree with @tbg.

Since when have you had this error message?

When is the last snapshot you have from?

1 Like

Thanks so much for the clarification

1 Like

I have this error since I fixed the monitor problem, which you helped me with
the last snapshot dates back to this morning…
I hadn’t thought about doing this as soon as I saw the problem

EDIT
I installed the lts kernel with

sudo pacman -S linux-lts

nvidia doesn’t load :frowning:

you need to install

sudo pacman -S linux-lts linux-lts-headers

and then boot into the lts kernel

1 Like