You are not logged in.

#1 2023-01-18 20:26:08

D3vil0p3r
Member
Registered: 2022-11-05
Posts: 34

[SOLVED] NVIDIA GPU not shown in Settings -> About section

Hello,
I'm working on Arch Linux based on linux-zen kernel with GNOME 43.2 and Wayland (XWayland installed) and my laptop has an NVIDIA RTX 2060 GPU. As Display Manager I'm using LightDM.

I followed the Arch Guide at https://wiki.archlinux.org/title/NVIDIA for my case but I don't understand why on Settings -> About, I'm getting the info related my integrated GPU instead of NVIDIA GPU.

In particular, lspci command returns:

$ lspci -k | grep -A 2 -E "(VGA|3D)"

00:02.0 VGA compatible controller: Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630]
	DeviceName: Onboard - Video
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 126a
--
01:00.0 VGA compatible controller: NVIDIA Corporation TU106M [GeForce RTX 2060 Mobile] (rev a1)
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 126a
	Kernel driver in use: nvidia

Since I'm have Linux Zen kernel (so linux-zen and linux-zen-headers packages installed), I installed nvidia-dkms package. Checking on my kernel config, I have "CONFIG_DRM_SIMPLEDRM=y". Furthermore, on "/etc/default/grub" file, in "GRUB_CMDLINE_LINUX_DEFAULT=" I added "nvidia-drm.modeset=1" in order to have:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash loglevel=3 audit=0 nvme_load=yes nowatchdog nvidia-drm.modeset=1"

Then, in "/etc/mkinitcpio.conf" file I added the related nvidia modules in the following manner:

MODULES="crc32c-intel nvidia nvidia_modeset nvidia_uvm nvidia_drm"

and I run "sudo grub-mkconfig -o /boot/grub/grub.cfg"

sudo grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found background: /usr/share/backgrounds/default/grub.png
Found linux image: /boot/vmlinuz-linux-zen
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux-zen.img
Found fallback initrd image(s) in /boot:  intel-ucode.img initramfs-linux-zen-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Windows Boot Manager on /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings ...
Detecting snapshots ...
Unmount /tmp/grub-btrfs.RfnVRd9TI2 .. Success
done

and "sudo mkinitcpio -P":

sudo mkinitcpio -P
==> Building image from preset: /etc/mkinitcpio.d/linux-zen.preset: 'default'
  -> -k /boot/vmlinuz-linux-zen -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-zen.img
==> Starting build: 6.1.6-zen1-2-zen
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating lz4-compressed initcpio image: /boot/initramfs-linux-zen.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-zen.preset: 'fallback'
  -> -k /boot/vmlinuz-linux-zen -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-zen-fallback.img -S autodetect
==> Starting build: 6.1.6-zen1-2-zen
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: bfa
==> WARNING: Possibly missing firmware for module: qed
==> WARNING: Possibly missing firmware for module: qla2xxx
==> WARNING: Possibly missing firmware for module: qla1280
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating lz4-compressed initcpio image: /boot/initramfs-linux-zen-fallback.img
==> Image generation successful

In "/etc/modprobe.d/" it seems I don't have something that blacklists nvidia modules. "lsmod" output is the following:

Module                  Size  Used by
ufs                    98304  0
hfsplus               159744  0
hfs                    94208  0
cdrom                  81920  2 hfsplus,hfs
minix                  53248  0
msdos                  20480  0
jfs                   249856  0
xfs                  2342912  0
ext4                 1064960  0
mbcache                16384  1 ext4
jbd2                  192512  1 ext4
dm_mod                192512  0
rfcomm                 94208  4
overlay               184320  1
nvidia              61456384  24
ccm                    20480  6
snd_sof_pci_intel_cnl    16384  0
snd_sof_intel_hda_common   221184  1 snd_sof_pci_intel_cnl
soundwire_intel        57344  1 snd_sof_intel_hda_common
soundwire_generic_allocation    16384  1 soundwire_intel
soundwire_cadence      45056  1 soundwire_intel
snd_sof_intel_hda      20480  1 snd_sof_intel_hda_common
snd_sof_pci            24576  2 snd_sof_intel_hda_common,snd_sof_pci_intel_cnl
snd_sof_xtensa_dsp     20480  1 snd_sof_intel_hda_common
snd_sof               344064  2 snd_sof_pci,snd_sof_intel_hda_common
snd_sof_utils          20480  1 snd_sof
soundwire_bus         135168  3 soundwire_intel,soundwire_generic_allocation,soundwire_cadence
snd_soc_skl           225280  0
snd_soc_hdac_hda       28672  2 snd_sof_intel_hda_common,snd_soc_skl
snd_hda_ext_core       36864  3 snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_soc_skl
cmac                   16384  4
algif_hash             20480  1
algif_skcipher         16384  1
af_alg                 36864  6 algif_hash,algif_skcipher
bnep                   32768  2
snd_soc_sst_ipc        20480  1 snd_soc_skl
snd_soc_sst_dsp        40960  1 snd_soc_skl
snd_soc_acpi_intel_match    69632  3 snd_sof_intel_hda_common,snd_soc_skl,snd_sof_pci_intel_cnl
snd_soc_acpi           16384  3 snd_soc_acpi_intel_match,snd_sof_intel_hda_common,snd_soc_skl
snd_hda_codec_realtek   184320  1
snd_soc_core          413696  5 soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_soc_skl
snd_hda_codec_generic   114688  1 snd_hda_codec_realtek
ledtrig_audio          16384  1 snd_hda_codec_generic
snd_compress           28672  1 snd_soc_core
ac97_bus               16384  1 snd_soc_core
snd_pcm_dmaengine      16384  1 snd_soc_core
uvcvideo              167936  0
i915                 3706880  34
videobuf2_vmalloc      20480  1 uvcvideo
iwlmvm                565248  0
mac80211             1400832  1 iwlmvm
snd_hda_codec_hdmi     94208  2
snd_hda_intel          61440  6
intel_rapl_msr         20480  0
intel_rapl_common      36864  1 intel_rapl_msr
snd_intel_dspcfg       36864  4 snd_hda_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_skl
videobuf2_memops       20480  1 videobuf2_vmalloc
intel_tcc_cooling      16384  0
videobuf2_v4l2         40960  1 uvcvideo
snd_intel_sdw_acpi     20480  2 snd_sof_intel_hda_common,snd_intel_dspcfg
x86_pkg_temp_thermal    20480  0
intel_powerclamp       20480  0
coretemp               20480  0
kvm_intel             409600  0
kvm                  1228800  1 kvm_intel
btusb                  69632  0
libarc4                16384  1 mac80211
drm_buddy              20480  1 i915
snd_hda_codec         200704  7 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek,snd_soc_hdac_hda,snd_soc_skl,snd_sof_intel_hda
ttm                    98304  1 i915
iwlwifi               516096  1 iwlmvm
snd_hda_core          126976  10 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_hda_codec_realtek,snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_soc_skl,snd_sof_intel_hda
drm_display_helper    241664  1 i915
videobuf2_common       90112  4 videobuf2_vmalloc,videobuf2_v4l2,uvcvideo,videobuf2_memops
btrtl                  28672  1 btusb
irqbypass              16384  1 kvm
cec                    90112  2 drm_display_helper,i915
btbcm                  24576  1 btusb
btintel                49152  1 btusb
alx                    61440  0
btmtk                  16384  1 btusb
crct10dif_pclmul       16384  1
intel_gtt              28672  1 i915
crc32_pclmul           16384  0
bluetooth             983040  34 btrtl,btmtk,btintel,btbcm,bnep,btusb,rfcomm
videodev              327680  3 videobuf2_v4l2,uvcvideo,videobuf2_common
mei_hdcp               24576  0
snd_hwdep              20480  1 snd_hda_codec
psmouse               229376  0
mei_pxp                20480  0
polyval_clmulni        16384  0
cfg80211             1163264  3 iwlmvm,iwlwifi,mac80211
polyval_generic        16384  1 polyval_clmulni
mc                     81920  4 videodev,videobuf2_v4l2,uvcvideo,videobuf2_common
spi_nor               135168  0
gf128mul               20480  1 polyval_generic
snd_pcm               180224  13 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_compress,snd_soc_core,snd_sof_utils,snd_soc_skl,snd_hda_core,snd_pcm_dmaengine
mei_me                 57344  2
rtsx_usb_ms            24576  0
ghash_clmulni_intel    16384  0
gpio_keys              24576  0
memstick               24576  1 rtsx_usb_ms
wmi_bmof               16384  0
sha512_ssse3           57344  0
iTCO_wdt               16384  0
intel_pmc_bxt          16384  1 iTCO_wdt
ucsi_ccg               28672  0
mtd                    94208  3 spi_nor
iTCO_vendor_support    16384  1 iTCO_wdt
snd_timer              49152  1 snd_pcm
aesni_intel           397312  9
ee1004                 20480  0
ecdh_generic           16384  2 bluetooth
mxm_wmi                16384  0
typec_ucsi             57344  1 ucsi_ccg
typec                  94208  1 typec_ucsi
roles                  16384  1 typec_ucsi
msi_wmi                20480  0
mdio                   16384  1 alx
crc16                  16384  2 bluetooth,ext4
snd                   143360  22 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_sof,snd_timer,snd_compress,snd_soc_core,snd_pcm
i2c_i801               45056  0
crypto_simd            16384  1 aesni_intel
i2c_nvidia_gpu         16384  0
mei                   176128  5 mei_hdcp,mei_pxp,mei_me
cryptd                 28672  3 crypto_simd,ghash_clmulni_intel
sparse_keymap          16384  1 msi_wmi
rapl                   16384  0
soundcore              16384  1 snd
intel_cstate           20480  0
rfkill                 36864  9 iwlmvm,bluetooth,cfg80211
intel_uncore          225280  0
vfat                   24576  1
fat                    98304  2 msdos,vfat
intel_pch_thermal      20480  0
soc_button_array       24576  0
acpi_pad               24576  0
mousedev               24576  0
mac_hid                16384  0
i2c_smbus              20480  1 i2c_i801
joydev                 28672  0
fuse                  188416  5
crypto_user            20480  0
bpf_preload            24576  0
ip_tables              32768  0
x_tables               61440  1 ip_tables
rtsx_usb_sdmmc         36864  0
mmc_core              241664  1 rtsx_usb_sdmmc
rtsx_usb               36864  2 rtsx_usb_sdmmc,rtsx_usb_ms
btrfs                2019328  1
blake2b_generic        20480  0
libcrc32c              16384  2 btrfs,xfs
crc32c_generic         16384  0
xor                    24576  1 btrfs
raid6_pq              122880  1 btrfs
usbhid                 77824  0
serio_raw              20480  0
atkbd                  36864  0
libps2                 24576  2 atkbd,psmouse
vivaldi_fmap           16384  1 atkbd
nvme                   65536  1
nvme_core             221184  2 nvme
spi_intel_pci          16384  0
xhci_pci               24576  0
spi_intel              32768  1 spi_intel_pci
nvme_common            24576  1 nvme_core
xhci_pci_renesas       24576  1 xhci_pci
i8042                  53248  0
video                  69632  2 msi_wmi,i915
serio                  28672  6 serio_raw,atkbd,psmouse,i8042
wmi                    40960  4 video,wmi_bmof,msi_wmi,mxm_wmi
crc32c_intel           24576  2

The packages that I installed that could be related to NVIDIA are: "nvidia-dkms", "nvidia-exec" (for switching GPU in Wayland environment https://github.com/pedro00dk/nvidia-exec), "nvidia-settings", "nvidia-utils", "mesa", "cuda", "disper", "envycontrol", "gwe", "nvflash", "nvtop".

I also tried to blacklist nouveau by "/etc/modprobe.d/blacklist-nouveau.conf"

blacklist nouveau
options nouveau modeset=0

with no luck

What am I missing? Why Settings -> About continues to show me the integrated GPU? I remember time ago I was able to make it working (also by multimonitor) but now no...

Last edited by D3vil0p3r (2023-01-22 18:14:20)

Offline

#2 2023-01-18 22:59:33

D3vil0p3r
Member
Registered: 2022-11-05
Posts: 34

Re: [SOLVED] NVIDIA GPU not shown in Settings -> About section

I also tried to do these tests by using Xorg instead of Wayland but I get the same issue. I tried to create "/etc/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf"

Section "OutputClass"
    Identifier "intel"
    MatchDriver "i915"
    Driver "modesetting"
EndSection

Section "OutputClass"
    Identifier "nvidia"
    MatchDriver "nvidia-drm"
    Driver "nvidia"
    Option "AllowEmptyInitialConfiguration"
    Option "PrimaryGPU" "yes"
    ModulePath "/usr/lib/nvidia/xorg"
    ModulePath "/usr/lib/xorg/modules"
EndSection

or using "nvidia-xconfig" for generating a config file like:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 525.78.01

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BusID          "PCI:1:0:0"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

and in this last case I was not able to reach the Login window, and checking "/var/log/Xorg.0.log" it was not able to find glxserver_nvidia module, even if I I add on the generated xorg.conf:

Section "Files"
    ModulePath "/usr/lib/nvidia/xorg"
    ModulePath "/usr/lib/xorg/modules"
EndSection

So, for reaching the Login window, I need to delete the xorg.conf generated by nvidia-xconfig.

I don't know where to smash my head.

Offline

#3 2023-01-19 08:41:03

seth
Member
Registered: 2012-09-03
Posts: 35,307

Re: [SOLVED] NVIDIA GPU not shown in Settings -> About section

or using "nvidia-xconfig" for generating a config file like:

1. bad idea in any event
2. useless if "GNOME 43.2 and Wayland", but might break "using LightDM"

So, for reaching the Login window, I need to delete the xorg.conf generated by nvidia-xconfig

Yes.

https://gitlab.gnome.org/GNOME/mutter/- … te_1015566
https://gitlab.gnome.org/GNOME/mutter/- … te_1472236
I'm not sure whether it's possible to redirect the output w/ (gnome) wayland, so this is only a solution if you've the/an output wired to the nvidia chip.

If you want to run on wayland and want to use the nvidia chip *only* the easiest way is probably to dectivate the IGP in the bios (if possible)
If you want to run an optimus system the "normal" way (w/ "prime-run superturboturkeypuncher3"), you're probably (still) better off using X11

Online

#4 2023-01-22 18:13:42

D3vil0p3r
Member
Registered: 2022-11-05
Posts: 34

Re: [SOLVED] NVIDIA GPU not shown in Settings -> About section

Thank you @seth. I solved the issue by installing optimus-manager-qt, and of course deleting xorg.conf file.

Offline

Board footer

Powered by FluxBB