Issues with the installation of Xorg

Hello,

I use Manjaro 21.3.0, with the Kernel Linux 5.15.48-1. I have trouble using my Nvidia Graphic card and particularly to use Vulkan. I’ve read on the Internet that proprietary Nvidia drivers had difficulties to work with the Windowing system Wayland and that I should use Xorg. Unfortunately, I can’t use it and I would like to know why. I’ve followed differents tutorials on the Arch forum to install and use it but I have not succeed (yet).

lspci -k | grep -A 2 -E "(VGA|3D)"
---------------------------------------------------------------------------
0000:00:02.0 VGA compatible controller: Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics] (rev 01)
	DeviceName: VGA
	Subsystem: ASUSTeK Computer Inc. Device 16e2
	Kernel driver in use: i915
--
0000:01:00.0 VGA compatible controller: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] (rev a1)
	DeviceName: Second VGA
	Subsystem: ASUSTeK Computer Inc. Device 16e2
	Kernel modules: nouveau
mhwd
------------------------------------------------------------------
> 0000:01:00.0 (0300:10de:2520) Display controller nVidia Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime            2021.12.18               false            PCI
video-hybrid-intel-nvidia-470xx-prime            2021.12.18               false            PCI
          video-nvidia            2021.12.18               false            PCI
    video-nvidia-470xx            2021.12.18               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI


> 0000:00:02.0 (0300:8086:9a49) Display controller Intel Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime            2021.12.18               false            PCI
video-hybrid-intel-nvidia-470xx-prime            2021.12.18               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI

This is the output of nvidia-xconfig (I installed proprietary drivers)

Using X configuration file: "/etc/X11/xorg.conf".

ERROR: Unable to find any GPUs in the system.

Backed up file '/etc/X11/xorg.conf' as '/etc/X11/xorg.conf.backup'
New X configuration file written to '/etc/X11/xorg.conf'

and here is the /etc/X11/xorg.conf file

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


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    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"
    VendorName     "NVIDIA Corporation"
    ChipId          0x0
    ChipRev         0x0
    IRQ             0
EndSection

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

I don’t understand why nvidia-xconfig is unable to find the GPUs.

Thank you for your help!

Nouveau doesn’t yet have Vulkan support, there’s a not-yet-merged patch for it, but yeah, not yet merged. And it’s damn new, like no older than a month ago.

Remove /etc/X11/xorg.conf, you have an optimus system, this is for a system solely driven by an Nvidia card. From the previous output, you haven’t yet used the proprietary driver. Spill the output of mhwd -li (li = list installed).

You have some reading homework to do:

The wiki says mhwd now defaults to PRIME, previously it was Bumblebee (which can be considered legacy and won’t work on any system after Pascal generation), but in case it still fails, I suggest following the route of GitHub - Askannz/optimus-manager: A Linux program to handle GPU switching on Optimus laptops.. This is the one that works on my system flawlessly. I can switch to Intel only, Nvidia only and hybrid back and forth with no issue. But, every system is different so there will be a little tinkering required to see which power management works best for your particular system. Otherwise, you might be using Intel only but your Nvidia card is still powered, which is a waste of battery.

Thank you for your answer!

This is the output of mhwd -li

mhwd -li                                                                                                                                                          ✔ 
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
     video-modesetting            2020.01.13                true            PCI
          video-nvidia            2021.12.18               false            PCI

I will try the solutions you proposed.