ASUS ROG Strix G512LV Fedora Nvidia card missing

Hi, my nvidia card is missing when I do:

[xals@ASUS ~]$ /sbin/lspci | grep "NVIDIA\|VGA"
00:02.0 VGA compatible controller: Intel Corporation CometLake-H GT2 [UHD Graphics] (rev 05)
[xals@ASUS ~]$ 

The drivers appears to be installed correctly:

[xals@ASUS ~]$ modinfo -F version nvidia
495.44
[xals@ASUS ~]$ 

But the nvida settings does not start:

xals@ASUS ~]$ nvidia-settings 
ERROR: NVIDIA driver is not loaded
ERROR: Unable to load info from any available system

Followed this guide: ASUS NoteBook Linux for instalation of SO.

nvidia-bug-report.log.gz (83.2 KB)

Looks like a buggy udev rule removing the nvidia gpu. Please post the output of
grep 10de /lib/udev/rules.d/*

Here you have

xals@ASUS ~]$  grep 10de /lib/udev/rules.d/*
/lib/udev/rules.d/10-nvidia.rules:SUBSYSTEM=="pci", ATTRS{vendor}=="0x10de", ATTRS{class}=="0x030[02]00", TAG+="systemd", ENV{SYSTEMD_WANTS}="nvidia-fallback.service"
/lib/udev/rules.d/60-nvidia.rules:ACTION=="bind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030000", TEST=="power/control", ATTR{power/control}="auto"
/lib/udev/rules.d/60-nvidia.rules:ACTION=="bind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030200", TEST=="power/control", ATTR{power/control}="auto"
/lib/udev/rules.d/60-nvidia.rules:ACTION=="unbind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030000", TEST=="power/control", ATTR{power/control}="on"
/lib/udev/rules.d/60-nvidia.rules:ACTION=="unbind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030200", TEST=="power/control", ATTR{power/control}="on"
/lib/udev/rules.d/90-supergfxd-nvidia-pm.rules:ACTION=="bind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030000", TEST=="power/control", ATTR{power/control}="auto"
/lib/udev/rules.d/90-supergfxd-nvidia-pm.rules:ACTION=="bind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030200", TEST=="power/control", ATTR{power/control}="auto"
/lib/udev/rules.d/90-supergfxd-nvidia-pm.rules:ACTION=="unbind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030000", TEST=="power/control", ATTR{power/control}="on"
/lib/udev/rules.d/90-supergfxd-nvidia-pm.rules:ACTION=="unbind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030200", TEST=="power/control", ATTR{power/control}="on"

Looks normal. Maybe in etc
grep 10de /etc/udev/rules.d/*
Furthermore, you should check if “supergfxd” is responsible for it, don’t know that one.

/etc/udev/rules.d/ folder is empty

[root@ASUS udev]# ll
total 11356
-r--r--r--. 1 root root 11621370 nov 21 19:41 hwdb.bin
drwxr-xr-x. 1 root root        0 nov 15 14:21 hwdb.d
drwxr-xr-x. 1 root root        0 nov 15 14:21 rules.d
-rw-r--r--. 1 root root      305 nov 14 10:34 udev.conf
[root@ASUS udev]# ll rules.d/
total 0
[root@ASUS udev]# 

How can I check if is supergfxd fault?

Try disabling it
sudo systemctl disable supergfxd
reboot, then check if lspci lists the nvidia gpu.

Now it appears on lspci, but nvidia-settings still sais:

ERROR: NVIDIA driver is not loaded
ERROR: Unable to load info from any available system

Attached new bug-report if needed
nvidia-bug-report.log.gz (297.3 KB)

Seems the driver is still blacklisted

  • run
grep nvidia /etc/modprobe.d/* /lib/modprobe.d/*

to find a file containing “blacklist nvidia”
remove it, recreate initrd (dracut -f)
You should rather check how supergfxd works, it seems it’s doing some stupid things.

wow, now nvidia-settings are working. I can see the both cards on gnome - setting - about etc…

HDMI output still not working, do you think I should open a new thread and close this here?

Lots of thanks.

Please create a new nvidia-bug-report.log.

Here is nvidia-bug-report.log.gz (284.1 KB)

By the way, nvidia-settings detects HDMI monitor

Please try running

xrandr --setprovideroutputsource 1 0 && xrandr --auto && xrandr --auto

Working like a charm! thx @generix . One more question, will the system choose between cards depending on gpu necesities? Is this the default behaivour? Where can I read something about how this work?

You are currently in offload/on-demand mode, meaning per default the intel gpu will be used, if you want to start applications on the nvidia, you’ll have to prepend

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia

like

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxgears

https://download.nvidia.com/XFree86/Linux-x86_64/495.44/README/primerenderoffload.html

I guess supergfxd is to switch between modes.

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