XORG keep crashing and kicking me to tty

Ever since I’ve installed Manjaro on my machine, I’ve got crashes for XORG and kwin_x11 every once in a while. It kicks me to tty and I can’t get plasma to work again, until I restart the machine.
Here is the journalcountrol from the last crash:

Oct 24 16:01:36 guym-tobefilledbyoem kwin_x11[584]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence>
Oct 24 16:01:36 guym-tobefilledbyoem kwin_x11[584]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequen>
Oct 24 16:01:41 guym-tobefilledbyoem kwin_x11[584]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence>
Oct 24 16:01:41 guym-tobefilledbyoem kwin_x11[584]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequen>
Oct 24 16:01:41 guym-tobefilledbyoem kwin_x11[584]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence>
Oct 24 16:01:41 guym-tobefilledbyoem kwin_x11[584]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequen>
Oct 24 16:01:42 guym-tobefilledbyoem kernel: nouveau 0000:01:00.0: gr: TRAP ch 4 [00ff95e000 Xorg[408]]
Oct 24 16:01:42 guym-tobefilledbyoem kernel: nouveau 0000:01:00.0: gr: GPC0/TPC0/TEX: 80000049
Oct 24 16:01:42 guym-tobefilledbyoem kernel: nouveau 0000:01:00.0: gr: GPC0/TPC1/TEX: 80000049
Oct 24 16:01:42 guym-tobefilledbyoem kernel: nouveau 0000:01:00.0: gr: GPC0/TPC2/TEX: 80000049
Oct 24 16:01:42 guym-tobefilledbyoem kernel: nouveau 0000:01:00.0: gr: GPC0/TPC3/TEX: 80000049
Oct 24 16:01:42 guym-tobefilledbyoem kernel: nouveau 0000:01:00.0: fifo: read fault at 0018012000 engine 00 [PGRAP>
Oct 24 16:01:42 guym-tobefilledbyoem kernel: nouveau 0000:01:00.0: fifo: gr engine fault on channel 4, recovering.>
Oct 24 16:01:42 guym-tobefilledbyoem kernel: nouveau 0000:01:00.0: Xorg[408]: channel 4 killed!
Oct 24 16:01:42 guym-tobefilledbyoem kwin_x11[584]: nouveau: kernel rejected pushbuf: No such device
Oct 24 16:01:42 guym-tobefilledbyoem kwin_x11[584]: nouveau: ch4: krec 0 pushes 1 bufs 30 relocs 0
Oct 24 16:01:42 guym-tobefilledbyoem kwin_x11[584]: nouveau: ch4: buf 00000000 00000005 00000004 00000004 00000000>
Oct 24 16:01:42 guym-tobefilledbyoem kwin_x11[584]: nouveau: ch4: buf 00000001 0000002b 00000002 00000002 00000000>
Oct 24 16:01:42 guym-tobefilledbyoem kwin_x11[584]: nouveau: ch4: buf 00000002 00000016 00000004 00000004 00000000>
Oct 24 16:01:42 guym-tobefilledbyoem kwin_x11[584]: nouveau: ch4: buf 00000003 00000008 00000002 00000002 00000002>
Oct 24 16:01:42 guym-tobefilledbyoem kwin_x11[584]: nouveau: ch4: buf 00000004 0000000b 00000002 00000002 00000002>
Oct 24 16:01:42 guym-tobefilledbyoem kwin_x11[584]: nouveau: ch4: buf 00000005 0000000a 00000002 00000002 00000002>
Oct 24 16:01:42 guym-tobefilledbyoem kwin_x11[584]: nouveau: ch4: buf 00000006 00000006 00000004 00000000 00000004>
Oct 24 16:01:42 guym-tobefilledbyoem kwin_x11[584]: nouveau: ch4: buf 00000007 00000015 00000002 00000002 00000002>
Oct 24 16:01:42 guym-tobefilledbyoem kwin_x11[584]: nouveau: ch4: buf 00000008 00000018 00000002 00000002 00000000>
Oct 24 16:01:42 guym-tobefilledbyoem kwin_x11[584]: nouveau: ch4: buf 00000009 00000007 00000002 00000002 00000000>
Oct 24 16:01:42 guym-tobefilledbyoem kwin_x11[584]: nouveau: ch4: buf 0000000a 0000001b 00000002 00000002 00000000>
Oct 24 16:01:42 guym-tobefilledbyoem kwin_x11[584]: nouveau: ch4: buf 0000000b 0000003c 00000002 00000002 00000000>
Oct 24 16:01:42 guym-tobefilledbyoem kwin_x11[584]: nouveau: ch4: buf 0000000c 00000046 00000002 00000002 00000000>
Oct 24 16:01:42 guym-tobefilledbyoem kwin_x11[584]: nouveau: ch4: buf 0000000d 0000004b 00000002 00000002 00000000>
Oct 24 16:01:42 guym-tobefilledbyoem kwin_x11[584]: nouveau: ch4: buf 0000000e 0000001d 00000002 00000002 00000000>
Oct 24 16:01:42 guym-tobefilledbyoem kwin_x11[584]: nouveau: ch4: buf 0000000f 00000066 00000002 00000002 00000000>
Oct 24 16:01:42 guym-tobefilledbyoem kwin_x11[584]: nouveau: ch4: buf 00000010 0000006b 00000002 00000002 00000000>
Oct 24 16:01:42 guym-tobefilledbyoem kwin_x11[584]: nouveau: ch4: buf 00000011 0000007a 00000002 00000002 00000000>
Oct 24 16:01:42 guym-tobefilledbyoem kwin_x11[584]: nouveau: ch4: buf 00000012 00000079 00000002 00000002 00000000>
Oct 24 16:01:42 guym-tobefilledbyoem kwin_x11[584]: nouveau: ch4: buf 00000013 00000084 00000002 00000002 00000000>
Oct 24 16:01:42 guym-tobefilledbyoem kwin_x11[584]: nouveau: ch4: buf 00000014 00000087 00000002 00000002 00000000>
Oct 24 16:01:42 guym-tobefilledbyoem kwin_x11[584]: nouveau: ch4: buf 00000015 0000008d 00000002 00000002 00000000>
Oct 24 16:01:42 guym-tobefilledbyoem kwin_x11[584]: nouveau: ch4: buf 00000016 0000009f 00000002 00000002 00000000>
Oct 24 16:01:42 guym-tobefilledbyoem kwin_x11[584]: nouveau: ch4: buf 00000017 00000026 00000002 00000002 00000000>
Oct 24 16:01:42 guym-tobefilledbyoem kwin_x11[584]: nouveau: ch4: buf 00000018 0000002c 00000002 00000002 00000000>
Oct 24 16:01:42 guym-tobefilledbyoem kwin_x11[584]: nouveau: ch4: buf 00000019 0000003d 00000002 00000002 00000000>
Oct 24 16:01:42 guym-tobefilledbyoem kwin_x11[584]: nouveau: ch4: buf 0000001a 0000001e 00000002 00000002 00000000>
Oct 24 16:01:42 guym-tobefilledbyoem kwin_x11[584]: nouveau: ch4: buf 0000001b 00000089 00000002 00000002 00000000>
Oct 24 16:01:42 guym-tobefilledbyoem kwin_x11[584]: nouveau: ch4: buf 0000001c 00000013 00000002 00000002 00000002>
Oct 24 16:01:42 guym-tobefilledbyoem kwin_x11[584]: nouveau: ch4: buf 0000001d 0000000e 00000002 00000000 00000002>
Oct 24 16:01:42 guym-tobefilledbyoem kwin_x11[584]: nouveau: ch4: psh 00000000 000007eb84 000007ffd0

and inxi -Fxxxza --no-host::

System:
  Kernel: 5.15.74-3-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
    root=UUID=2fba42fa-2149-4093-b5bb-2610c4d31f0c rw quiet
    resume=UUID=c79eabfa-a5f7-44e1-afc7-2e2f1a4417e9 udev.log_priority=3
  Desktop: KDE Plasma v: 5.25.5 tk: Qt v: 5.15.6 info: latte-dock
    wm: kwin_x11 vt: 1 dm: SDDM Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Desktop System: Gigabyte product: N/A v: N/A
    serial: <superuser required> Chassis: type: 3 serial: <superuser required>
  Mobo: Gigabyte model: H61M-S2PV REV 2.2 v: x.x
    serial: <superuser required> BIOS: American Megatrends v: FB
    date: 02/25/2013
CPU:
  Info: model: Intel Pentium G2030 bits: 64 type: MCP arch: Ivy Bridge
    level: v2 built: 2012-15 process: Intel 22nm family: 6 model-id: 0x3A (58)
    stepping: 9 microcode: 0x21
  Topology: cpus: 1x cores: 2 smt: <unsupported> cache: L1: 128 KiB
    desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB L3: 3 MiB
    desc: 1x3 MiB
  Speed (MHz): avg: 1644 high: 1674 min/max: 1600/3000 scaling:
    driver: intel_cpufreq governor: schedutil cores: 1: 1614 2: 1674
    bogomips: 11978
  Flags: ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX unsupported
  Type: l1tf mitigation: PTE Inversion
  Type: mds mitigation: Clear CPU buffers; SMT disabled
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data status: Unknown: No mitigations
  Type: retbleed status: Not affected
  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: Retpolines, IBPB: conditional, IBRS_FW,
    STIBP: disabled, RSB filling, PBRSB-eIBRS: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA GM206 [GeForce GTX 960] driver: nouveau v: kernel
    non-free: 515.xx+ status: current (as of 2022-10) arch: Maxwell code: GMxxx
    process: TSMC 28nm built: 2014-19 pcie: gen: 1 speed: 2.5 GT/s lanes: 16
    ports: active: HDMI-A-1 empty: DVI-I-1,DVI-I-2 bus-ID: 01:00.0
    chip-ID: 10de:1401 class-ID: 0300 temp: 42.0 C
  Display: x11 server: X.Org v: 21.1.4 with: Xwayland v: 22.1.3
    compositor: kwin_x11 driver: X: loaded: modesetting unloaded: vesa
    alternate: fbdev dri: nouveau gpu: nouveau display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1200 s-dpi: 96 s-size: 508x317mm (20.00x12.48")
    s-diag: 599mm (23.57")
  Monitor-1: HDMI-A-1 mapped: HDMI-1 model: Samsung SyncMaster built: 2009
    res: 1920x1200 hz: 60 dpi: 305 gamma: 1.2 size: 160x90mm (6.3x3.54")
    diag: 184mm (7.2") ratio: 16:9 modes: max: 1920x1200 min: 720x400
  OpenGL: renderer: NVC3 v: 4.3 Mesa 22.1.7 direct render: Yes
Audio:
  Device-1: Intel 6 Series/C200 Series Family High Definition Audio
    vendor: Gigabyte driver: snd_hda_intel v: kernel bus-ID: 00:1b.0
    chip-ID: 8086:1c20 class-ID: 0403
  Device-2: NVIDIA GF106 High Definition Audio driver: snd_hda_intel
    v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 16 bus-ID: 01:00.1
    chip-ID: 10de:0be9 class-ID: 0403
  Sound API: ALSA v: k5.15.74-3-MANJARO running: yes
  Sound Server-1: JACK v: 1.9.21 running: no
  Sound Server-2: PulseAudio v: 16.1 running: yes
  Sound Server-3: PipeWire v: 0.3.58 running: yes
Network:
  Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: gen: 2
    speed: 5 GT/s lanes: 1 bus-ID: 02:00.0 chip-ID: 8086:2723 class-ID: 0280
  IF: wlp2s0 state: up mac: <filter>
  Device-2: 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: 03:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp3s0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8
    bus-ID: 2-1.3:5 chip-ID: 8087:0029 class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 0 state: up address: see --recommends
Drives:
  Local Storage: total: 1.43 TiB used: 61.25 GiB (4.2%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Western Digital
    model: WDS100T2G0A-00JH30 size: 931.51 GiB block-size: physical: 512 B
    logical: 512 B speed: <unknown> type: SSD serial: <filter> rev: 0400
    scheme: MBR
  ID-2: /dev/sdb maj-min: 8:16 vendor: Toshiba model: DT01ACA050
    size: 465.76 GiB block-size: physical: 4096 B logical: 512 B
    speed: 3.0 Gb/s type: HDD rpm: 7200 serial: <filter> rev: A750
    scheme: GPT
  ID-3: /dev/sdc maj-min: 8:32 type: USB vendor: SanDisk model: USB 3.2Gen1
    size: 57.3 GiB block-size: physical: 512 B logical: 512 B type: N/A
    serial: <filter> rev: 1.00 scheme: MBR
  SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
  ID-4: /dev/sdd maj-min: 8:48 type: USB vendor: SanDisk
    model: Cruzer Blade size: 14.32 GiB block-size: physical: 512 B
    logical: 512 B type: N/A serial: <filter> rev: 1.00 scheme: MBR
  SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
Partition:
  ID-1: / raw-size: 918.83 GiB size: 903.34 GiB (98.31%) used: 60.84 GiB
    (6.7%) fs: ext4 dev: /dev/sda1 maj-min: 8:1
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 12.68 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/sda2 maj-min: 8:2
Sensors:
  System Temperatures: cpu: 41.0 C mobo: N/A gpu: nouveau temp: 42.0 C
  Fan Speeds (RPM): N/A gpu: nouveau fan: 0
Info:
  Processes: 186 Uptime: 24m wakeups: 0 Memory: 7.73 GiB used: 2.53 GiB
  (32.8%) Init: systemd v: 251 default: graphical tool: systemctl
  Compilers: gcc: 12.2.0 clang: 14.0.6 Packages: pm: pacman pkgs: 1283
  libs: 319 tools: pamac pm: flatpak pkgs: 0 Shell: Zsh v: 5.9 default: Bash
  v: 5.1.16 running-in: konsole inxi: 3.3.22

Looks like you’re using the open-source nouveau driver, may I suggest maybe trying the nvidia driver. I suggest using Manjaro settings manager to install it, and then if successful, reboot, be sure to select X11 session before you login (you can try Wayland, but in my opinion it’s not ready for prime time).

I’ve tried using them but I got black screen every single time. I’ve tried to find how to turn on DRM for it, and after reading around trying to understand it, I just became more confused. Do you have an idea how to turn it on?

nvidia-drm is part of the modules, you do not have to do anything, except install the drivers/modules the proper way, and eventually, if your system “requires” it, to enable early KMS.

Open MHWD and remove all the installed drivers except video-nvidia then run from terminal:
sudo mhwd -f -i pci video-nvidia

I followed your steps but it only got worse. Accordin to grubs it gets stuck on

[  OK  ] Reached target Graphical Interface

And according to info -Fxxxi the drivers are N/A
By the way my card is Nvidia GTX960

I should stop giving advice then …

That can only mean that the driver was now properly installed, or something that was not mentioned was done on your system.

Already noticed that, have the same GPU and no issues regardless the kernel or DE.
Please provide from terminal:
mhwd -li
ls -a /etc/X11/*
cat /etc/X11/mhwd.d/nvidia.conf

First of all I would like apologize about it, I freaked out because it’s not my machine, but my work’s machine. You are helping me alot and I would have reinstalled the entire machine if it were for you.

Secondly, the commands you asked for

mhwd -li
e[1me[31m> e[mInstalled PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
          video-nvidia            2021.11.04               false            PCI


e[1me[31mWarning: e[mNo installed USB configs!

ls -a /etc/X11/*

/etc/X11/mhwd.d:
.
..
nvidia.conf
nvidia.conf.nvidia-xconfig-original

/etc/X11/xinit:
.
..
xinitrc
xinitrc.d
xserverrc

/etc/X11/xorg.conf.d:
.
..
00-keyboard.conf
30-touchpad.conf
90-mhwd.conf
cat /etc/X11/mhwd.d/nvidia.conf

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

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"
	Option "NoLogo" "1"
EndSection

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

Section "Extensions"
    Option         "COMPOSITE" "Enable"
EndSection

 
Section "InputClass"
    Identifier          "Keyboard Defaults"
    MatchIsKeyboard        "yes"
    Option              "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection
 

Ok, all this looks somehow in order. But now i wonder about this files:
/etc/modprobe.d/mhwd-gpu.conf
that should have:

blacklist nouveau
blacklist ttm
blacklist drm_kms_helper
blacklist drm

and /etc/modules-load.d/mhwd-gpu.conf that should have:

nvidia
nvidia-drm

And all to be in order, i would go by:
sudo mhwd -r pci video-linux
sudo mhwd -r pci video-modesetting
sudo mhwd -r pci video-vesa

just to be sure, and then run

sudo pacman-mirrors -f5 && sudo pacman -Syyu
and then
sudo mhwd -f -i pci video-nvidia
sudo mhwd-kernel -i linux60
Reboot into that kernel and see if things improved.

What intrigues me is this part of your conf:

No HorizSync and no VertRefresh ?!?! Might want to try different port for the main Monitor before doing the above.
Then you could try to use this /etc/X11/mhwd.d/nvidia.conf instead, but pay attention to the note in Section “Monitor” !!!

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

Section "Files"
EndSection

Section "Module"
    Load           "dbe"
    Load           "extmod"
    Load           "type1"
    Load           "freetype"
    Load           "glx"
EndSection

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

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor" #This should be replaced by the values you get after changing the Main Monitor port
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    Option  "ConnectToAcpid"    "Off"
    Option "metamodes" "nvidia-auto-select +0+0 {ForceCompositionPipeline=On}"
EndSection

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

Section "Extensions"
    Option         "COMPOSITE" "Enable"
EndSection

 
Section "InputClass"
    Identifier          "Keyboard Defaults"
    MatchIsKeyboard        "yes"
    Option              "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

Hi, I have done what you had asked me and here are the results:

For both mhwd-gpu.conf files, all the text had already been there but I had removed a space above both of them.
For all the mhwd -r files, I got that the config is not were not installed before the command.
Pacman had nothing to update, I’ve changed to linux60 and removed bothe the kernel and the nvidia-linux515 from my system.
I’ve copied pasted the entire config file you had sent, but sadly I currently can’t change port, because I only have hdmi cables at home. I’ll ask to borrow a VGA or DVI cable tommorow morning from my local computer store. I’ve changed the port on the screen and it did nothing.
The screen doesn’t have neither HorizSync nor VertRefresh because it’s an old Samsung SyncMaster T260HD. It’s an old but great 16:10 screen.
I had noticed that I ran into the same problem even if I try to load the non free drivers for the Manjaro Kde live enviroment.
But I had noticed that sudo mhwd -f -i pci video-nvidia do give some errors while installing. Maybe this from this the problems come from?
The things that caught my eye were mostly that modprobe couldn’t insert neither nvidia nor nvidia_drm to the system.

e[1me[31m> e[mRemoving video-nvidia...
e[0;32mSourcing /etc/mhwd-x86_64.conf
e[me[0;32mHas lib32 support: true
e[me[0;32mSourcing /var/lib/mhwd/local/pci/video-nvidia/MHWDCONFIG
e[me[0;32mProcessing classid: 0300
e[me[0;32mSourcing /var/lib/mhwd/scripts/include/0300
e[me[0;32mProcessing classid: 0302
e[me[0;32mchecking dependencies...
e[me[0;32m:: ffmpeg optionally requires nvidia-utils: Nvidia NVDEC/NVENC support
e[me[0;32m:: ffmpeg4.4 optionally requires nvidia-utils: Nvidia NVDEC/NVENC support
e[me[0;32m:: lib32-vulkan-icd-loader optionally requires lib32-vulkan-driver: packaged vulkan driver
e[me[0;32m:: vulkan-icd-loader optionally requires vulkan-driver: packaged vulkan driver
e[me[0;32mwarning: dependency cycle detected:
e[me[0;32mwarning: eglexternalplatform will be removed after its nvidia-utils dependency
e[me[0;32m
e[me[0;32mPackages (7) egl-wayland-2:1.1.11-2  eglexternalplatform-1.1-2  libxnvctrl-520.56.06-1  lib32-nvidia-utils-520.56.06-1  linux515-nvidia-520.56.06-3  linux60-nvidia-520.56.06-4  nvidia-utils-520.56.06-2
e[me[0;32m
e[me[0;32mTotal Removed Size:  889.33 MiB
e[me[0;32m
e[me[0;32m:: Do you want to remove these packages? [Y/n] 
e[me[0;32m:: Processing package changes...
e[me[0;32mremoving linux60-nvidia...
e[me[0;32mremoving linux515-nvidia...
e[me[0;32mremoving lib32-nvidia-utils...
e[me[0;32mxorg configuration symlink valid...
e[me[0;32mremoving nvidia-utils...
e[me[0;32mxorg configuration symlink valid...
e[me[0;32mremoving libxnvctrl...
e[me[0;32mremoving egl-wayland...
e[me[0;32mremoving eglexternalplatform...
e[me[0;32m:: Running post-transaction hooks...
e[me[0;32m(1/7) Reloading system manager configuration...
e[me[0;32m(2/7) Reloading device manager configuration...
e[me[0;32m(3/7) Arming ConditionNeedsUpdate...
e[me[0;32m(4/7) Updating module dependencies...
e[me[0;32m(5/7) Refreshing PackageKit...
e[me[0;32m(6/7) Reloading system bus configuration...
e[me[0;32m(7/7) Updating the desktop file MIME type cache...
e[me[0;32mrm: cannot remove '/etc/X11/mhwd.d/nvidia.conf': Is a directory
e[me[0;32mxorg configuration symlink valid...
e[me[1me[31m> e[mSuccessfully removed video-nvidia
e[1me[31m> e[mInstalling video-nvidia...
e[0;32mSourcing /etc/mhwd-x86_64.conf
e[me[0;32mHas lib32 support: true
e[me[0;32mSourcing /var/lib/mhwd/db/pci/graphic_drivers/nvidia/MHWDCONFIG
e[me[0;32mProcessing classid: 0300
e[me[0;32mSourcing /var/lib/mhwd/scripts/include/0300
e[me[0;32mProcessing classid: 0302
e[me[0;32m:: Synchronizing package databases...
e[me[0;32m core downloading...
e[me[0;32m extra downloading...
e[me[0;32m community downloading...
e[me[0;32m multilib downloading...
e[me[0;32mresolving dependencies...
e[me[0;32mlooking for conflicting packages...
e[me[0;32mwarning: dependency cycle detected:
e[me[0;32mwarning: eglexternalplatform will be installed before its nvidia-utils dependency
e[me[0;32m
e[me[0;32mPackages (7) egl-wayland-2:1.1.11-2  eglexternalplatform-1.1-2  libxnvctrl-520.56.06-1  lib32-nvidia-utils-520.56.06-1  linux515-nvidia-520.56.06-3  linux60-nvidia-520.56.06-4  nvidia-utils-520.56.06-2
e[me[0;32m
e[me[0;32mTotal Installed Size:  889.33 MiB
e[me[0;32m
e[me[0;32m:: Proceed with installation? [Y/n] 
e[me[0;32mchecking keyring...
e[me[0;32mchecking package integrity...
e[me[0;32mloading package files...
e[me[0;32mchecking for file conflicts...
e[me[0;32mchecking available disk space...
e[me[0;32m:: Processing package changes...
e[me[0;32minstalling eglexternalplatform...
e[me[0;32minstalling egl-wayland...
e[me[0;32minstalling libxnvctrl...
e[me[0;32minstalling nvidia-utils...
e[me[0;32mxorg configuration symlink valid...
e[me[0;32mIf you run into trouble with CUDA not being available, run nvidia-modprobe first.
e[me[0;32mIf you use GDM on Wayland, you might have to run systemctl enable --now nvidia-resume.service
e[me[0;32mOptional dependencies for nvidia-utils
e[me[0;32m    xorg-server-devel: nvidia-xconfig [installed]
e[me[0;32m    opencl-nvidia: OpenCL support
e[me[0;32minstalling lib32-nvidia-utils...
e[me[0;32mxorg configuration symlink valid...
e[me[0;32mOptional dependencies for lib32-nvidia-utils
e[me[0;32m    lib32-opencl-nvidia
e[me[0;32minstalling linux515-nvidia...
e[me[0;32minstalling linux60-nvidia...
e[me[0;32m:: Running post-transaction hooks...
e[me[0;32m(1/9) Creating system user accounts...
e[me[0;32m(2/9) Reloading system manager configuration...
e[me[0;32m(3/9) Reloading device manager configuration...
e[me[0;32m(4/9) Arming ConditionNeedsUpdate...
e[me[0;32m(5/9) Updating module dependencies...
e[me[0;32m(6/9) Updating Kernel initcpios for Nvidia-DRM...
e[me[0;32m==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: 'default'
e[me[0;32m  -> -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64.img
e[me[0;32m==> Starting build: 5.15.74-3-MANJARO
e[me[0;32m  -> Running build hook: [base]
e[me[0;32m  -> Running build hook: [udev]
e[me[0;32m  -> Running build hook: [autodetect]
e[me[0;32m  -> Running build hook: [modconf]
e[me[0;32m  -> Running build hook: [block]
e[me[0;32m  -> Running build hook: [keyboard]
e[me[0;32m  -> Running build hook: [keymap]
e[me[0;32m  -> Running build hook: [consolefont]
e[me[0;32m==> WARNING: consolefont: no font found in configuration
e[me[0;32m  -> Running build hook: [resume]
e[me[0;32m  -> Running build hook: [filesystems]
e[me[0;32m  -> Running build hook: [fsck]
e[me[0;32m==> Generating module dependencies
e[me[0;32m==> Creating gzip-compressed initcpio image: /boot/initramfs-5.15-x86_64.img
e[me[0;32m==> Image generation successful
e[me[0;32m==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: 'fallback'
e[me[0;32m  -> -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64-fallback.img -S autodetect
e[me[0;32m==> Starting build: 5.15.74-3-MANJARO
e[me[0;32m  -> Running build hook: [base]
e[me[0;32m  -> Running build hook: [udev]
e[me[0;32m  -> Running build hook: [modconf]
e[me[0;32m  -> Running build hook: [block]
e[me[0;32m==> WARNING: Possibly missing firmware for module: qed
e[me[0;32m==> WARNING: Possibly missing firmware for module: bfa
e[me[0;32m==> WARNING: Possibly missing firmware for module: qla1280
e[me[0;32m==> WARNING: Possibly missing firmware for module: qla2xxx
e[me[0;32m  -> Running build hook: [keyboard]
e[me[0;32m  -> Running build hook: [keymap]
e[me[0;32m  -> Running build hook: [consolefont]
e[me[0;32m==> WARNING: consolefont: no font found in configuration
e[me[0;32m  -> Running build hook: [resume]
e[me[0;32m  -> Running build hook: [filesystems]
e[me[0;32m  -> Running build hook: [fsck]
e[me[0;32m==> Generating module dependencies
e[me[0;32m==> Creating gzip-compressed initcpio image: /boot/initramfs-5.15-x86_64-fallback.img
e[me[0;32m==> Image generation successful
e[me[0;32m==> Building image from preset: /etc/mkinitcpio.d/linux60.preset: 'default'
e[me[0;32m  -> -k /boot/vmlinuz-6.0-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-6.0-x86_64.img
e[me[0;32m==> Starting build: 6.0.2-2-MANJARO
e[me[0;32m  -> Running build hook: [base]
e[me[0;32m  -> Running build hook: [udev]
e[me[0;32m  -> Running build hook: [autodetect]
e[me[0;32m  -> Running build hook: [modconf]
e[me[0;32m  -> Running build hook: [block]
e[me[0;32m  -> Running build hook: [keyboard]
e[me[0;32m  -> Running build hook: [keymap]
e[me[0;32m  -> Running build hook: [consolefont]
e[me[0;32m==> WARNING: consolefont: no font found in configuration
e[me[0;32m  -> Running build hook: [resume]
e[me[0;32m  -> Running build hook: [filesystems]
e[me[0;32m  -> Running build hook: [fsck]
e[me[0;32m==> Generating module dependencies
e[me[0;32m==> Creating gzip-compressed initcpio image: /boot/initramfs-6.0-x86_64.img
e[me[0;32m==> Image generation successful
e[me[0;32m==> Building image from preset: /etc/mkinitcpio.d/linux60.preset: 'fallback'
e[me[0;32m  -> -k /boot/vmlinuz-6.0-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-6.0-x86_64-fallback.img -S autodetect
e[me[0;32m==> Starting build: 6.0.2-2-MANJARO
e[me[0;32m  -> Running build hook: [base]
e[me[0;32m  -> Running build hook: [udev]
e[me[0;32m  -> Running build hook: [modconf]
e[me[0;32m  -> Running build hook: [block]
e[me[0;32m==> WARNING: Possibly missing firmware for module: qed
e[me[0;32m==> WARNING: Possibly missing firmware for module: bfa
e[me[0;32m==> WARNING: Possibly missing firmware for module: qla2xxx
e[me[0;32m==> WARNING: Possibly missing firmware for module: qla1280
e[me[0;32m==> WARNING: Possibly missing firmware for module: xhci_pci
e[me[0;32m  -> Running build hook: [keyboard]
e[me[0;32m  -> Running build hook: [keymap]
e[me[0;32m  -> Running build hook: [consolefont]
e[me[0;32m==> WARNING: consolefont: no font found in configuration
e[me[0;32m  -> Running build hook: [resume]
e[me[0;32m  -> Running build hook: [filesystems]
e[me[0;32m  -> Running build hook: [fsck]
e[me[0;32m==> Generating module dependencies
e[me[0;32m==> Creating gzip-compressed initcpio image: /boot/initramfs-6.0-x86_64-fallback.img
e[me[0;32m==> Image generation successful
e[me[0;32m(7/9) Refreshing PackageKit...
e[me[0;32m(8/9) Reloading system bus configuration...
e[me[0;32m(9/9) Updating the desktop file MIME type cache...
e[me[0;32mnvidia-utils: install reason has been set to 'explicitly installed'
e[me[0;32mlib32-nvidia-utils: install reason has been set to 'explicitly installed'
e[me[0;32mlinux515-nvidia: install reason has been set to 'explicitly installed'
e[me[0;32mlinux60-nvidia: install reason has been set to 'explicitly installed'
e[me[0;32m/var/lib/mhwd/scripts/include/0300: line 82: /etc/X11/mhwd.d/nvidia.conf: Is a directory
e[me[0;32m/var/lib/mhwd/scripts/include/0300: line 83: /etc/X11/mhwd.d/nvidia.conf: Is a directory
e[me[0;32m/var/lib/mhwd/scripts/include/0300: line 84: /etc/X11/mhwd.d/nvidia.conf: Is a directory
e[me[0;32m/var/lib/mhwd/scripts/include/0300: line 85: /etc/X11/mhwd.d/nvidia.conf: Is a directory
e[me[0;32m/var/lib/mhwd/scripts/include/0300: line 86: /etc/X11/mhwd.d/nvidia.conf: Is a directory
e[me[0;32m/var/lib/mhwd/scripts/include/0300: line 87: /etc/X11/mhwd.d/nvidia.conf: Is a directory
e[me[0;32m/var/lib/mhwd/scripts/include/0300: line 88: /etc/X11/mhwd.d/nvidia.conf: Is a directory
e[me[0;32msed: couldn't edit /etc/X11/mhwd.d/nvidia.conf: not a regular file
e[me[0;32mrmmod: ERROR: could not remove 'nouveau': No such file or directory
e[me[0;32mrmmod: ERROR: could not remove module nouveau: No such file or directory
e[me[0;32mrmmod: ERROR: could not remove 'ttm': No such file or directory
e[me[0;32mrmmod: ERROR: could not remove module ttm: No such file or directory
e[me[0;32mrmmod: ERROR: could not remove 'drm_kms_helper': No such file or directory
e[me[0;32mrmmod: ERROR: could not remove module drm_kms_helper: No such file or directory
e[me[0;32mrmmod: ERROR: could not remove 'drm': No such file or directory
e[me[0;32mrmmod: ERROR: could not remove module drm: No such file or directory
e[me[0;32mmodprobe: ERROR: could not insert 'nvidia': No such device
e[me[0;32mxorg configuration file: '/etc/X11/mhwd.d/nvidia.conf'
e[me[0;32mmodprobe: ERROR: could not insert 'nvidia_drm': No such device
e[me[1me[31m> e[mSuccessfully installed video-nvidia

Is there a chance it’s not working because I have don’t activate KMS?

try adding the ibt parameter:
open this file:
kate /etc/default/grub
and in this line: GRUB_CMDLINE_LINUX_DEFAULT inside the quotes add this parameter:
ibt=off
dont remove anything from there!, just add it to existing parameters, save the file, update grub:
sudo update-grub


now open this file:
kate /etc/mkinitcpio.conf
and edit the modules section to look like this:

MODULES=(nvidia nvidia_drm nvidia_uvm nvidia_modeset)

save it and run this:
sudo mkinitcpio -P

reboot and see if you can boot with nvidia

grub already had ibt=off in it

GRUB_DEFAULT=saved
GRUB_TIMEOUT=5
#GRUB_TIMEOUT_STYLE=hidden
GRUB_DISTRIBUTOR="Manjaro"
GRUB_CMDLINE_LINUX_DEFAULT="resume=UUID=c79eabfa-a5f7-44e1-afc7-2e2f1a4417e9 udev.log_priority=3 ibt=off"
GRUB_CMDLINE_LINUX="nouveau.modeset=0"

# If you want to enable the save default function, uncomment the following
# line, and set GRUB_DEFAULT to saved.
GRUB_SAVEDEFAULT=true

# Uncomment to disable submenus in boot menu
#GRUB_DISABLE_SUBMENU=y

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK=y

# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command 'videoinfo'
GRUB_GFXMODE=auto

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true

# Uncomment this option to enable os-prober execution in the grub-mkconfig command
GRUB_DISABLE_OS_PROBER=false

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper
# modes only.  Entries specified as foreground/background.
GRUB_COLOR_NORMAL="light-gray/black"
GRUB_COLOR_HIGHLIGHT="green/black"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/usr/share/grub/background.png"
GRUB_THEME="/usr/share/grub/themes/manjaro/theme.txt"

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

# Uncomment to ensure that the root filesystem is mounted read-only so that
# systemd-fsck can run the check automatically. We use 'fsck' by default, which
# needs 'rw' as boot parameter, to avoid delay in boot-time. 'fsck' needs to be
# removed from 'mkinitcpio.conf' to make 'systemd-fsck' work.
# See also Arch-Wiki: https://wiki.archlinux.org/index.php/Fsck#Boot_time_checking
#GRUB_ROOT_FS_RO=true

I’ve added the modules you asked to mkinitcpio.conf

# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run.  Advanced users may wish to specify all system modules
# in this array.  For instance:
#     MODULES=(piix ide_disk reiserfs)
MODULES=(nvidia nvidia_drm nvidia_uvm nvidia_modeset)

# BINARIES
# This setting includes any additional binaries a given user may
# wish into the CPIO image.  This is run last, so it may be used to
# override the actual binaries included by a given hook
# BINARIES are dependency parsed, so you may safely ignore libraries
BINARIES=()

# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in any way.  This is useful for config files.
FILES=""

# HOOKS
# This is the most important setting in this file.  The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added.  Run 'mkinitcpio -H <hook name>' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
# Examples:
##   This setup specifies all modules in the MODULES setting above.
##   No raid, lvm2, or encrypted root is needed.
#    HOOKS=(base)
#
##   This setup will autodetect all modules for your system and should
##   work as a sane default
#    HOOKS=(base udev autodetect block filesystems)
#
##   This setup will generate a 'full' image which supports most systems.
##   No autodetection is done.
#    HOOKS=(base udev block filesystems)
#
##   This setup assembles a pata mdadm array with an encrypted root FS.
##   Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
#    HOOKS=(base udev block mdadm encrypt filesystems)
#
##   This setup loads an lvm2 volume group on a usb device.
#    HOOKS=(base udev block lvm2 filesystems)
#
##   NOTE: If you have /usr on a separate partition, you MUST include the
#    usr, fsck and shutdown hooks.
HOOKS="base udev autodetect modconf block keyboard keymap consolefont resume filesystems fsck"

# COMPRESSION
# Use this to compress the initramfs image. By default, gzip compression
# is used. Use 'cat' to create an uncompressed image.
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"
#COMPRESSION="lz4"
#COMPRESSION="zstd"

# COMPRESSION_OPTIONS
# Additional options for the compressor
#COMPRESSION_OPTIONS=()

# MODULES_DECOMPRESS
# Decompress kernel modules during initramfs creation.
# Enable to speedup boot process, disable to save RAM
# during early userspace. Switch (yes/no).
#MODULES_DECOMPRESS="yes"

But got few error while running mkinitcpio -P

==> Building image from preset: /etc/mkinitcpio.d/linux60.preset: 'default'
  -> -k /boot/vmlinuz-6.0-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-6.0-x86_64.img
==> Starting build: 6.0.2-2-MANJARO
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
  -> Running build hook: [resume]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-6.0-x86_64.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux60.preset: 'fallback'
  -> -k /boot/vmlinuz-6.0-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-6.0-x86_64-fallback.img -S autodetect
==> Starting build: 6.0.2-2-MANJARO
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
  -> Running build hook: [resume]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-6.0-x86_64-fallback.img
==> Image generation successful

I’ve got to the same place that I was stuck in ([ OK ] Reached target Graphical Interface)
and when I tried to start with startx I got this error



X.Org X Server 1.21.1.4
X Protocol Version 11, Revision 0
Current Operating System: Linux guym-tobefilledbyoem 6.0.2-2-MANJARO #1 SMP PREEMPT_DYNAMIC Sat Oct 15 13:31:58 UTC 2022 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.0-x86_64 root=UUID=2fba42fa-2149-4093-b5bb-2610c4d31f0c rw nouveau.modeset=0 resume=UUID=c79eabfa-a5f7-44e1-afc7-2e2f1a4417e9 udev.log_priority=3 ibt=off
 
Current version of pixman: 0.40.0
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Oct 26 17:43:19 2022
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
vesa: Refusing to run, Framebuffer or dri device present
(EE) 
Fatal server error:
(EE) no screens found(EE) 
(EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE) 
(EE) Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: unexpected signal 2

and this log

[   144.261] 
X.Org X Server 1.21.1.4
X Protocol Version 11, Revision 0
[   144.283] Current Operating System: Linux guym-tobefilledbyoem 6.0.2-2-MANJARO #1 SMP PREEMPT_DYNAMIC Sat Oct 15 13:31:58 UTC 2022 x86_64
[   144.284] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.0-x86_64 root=UUID=2fba42fa-2149-4093-b5bb-2610c4d31f0c rw nouveau.modeset=0 resume=UUID=c79eabfa-a5f7-44e1-afc7-2e2f1a4417e9 udev.log_priority=3 ibt=off
[   144.309]  
[   144.315] Current version of pixman: 0.40.0
[   144.328] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   144.328] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   144.356] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Oct 26 17:43:31 2022
[   144.363] (==) Using config directory: "/etc/X11/xorg.conf.d"
[   144.371] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   144.371] (==) ServerLayout "layout"
[   144.371] (==) No screen section available. Using defaults.
[   144.371] (**) |-->Screen "Default Screen Section" (0)
[   144.371] (**) |   |-->Monitor "<default monitor>"
[   144.371] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[   144.371] (==) Automatically adding devices
[   144.371] (==) Automatically enabling devices
[   144.371] (==) Automatically adding GPU devices
[   144.371] (==) Automatically binding GPU devices
[   144.371] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   144.371] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[   144.371] 	Entry deleted from font path.
[   144.371] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[   144.371] 	Entry deleted from font path.
[   144.371] (==) FontPath set to:
	/usr/share/fonts/misc,
	/usr/share/fonts/TTF,
	/usr/share/fonts/100dpi,
	/usr/share/fonts/75dpi
[   144.371] (==) ModulePath set to "/usr/lib/xorg/modules"
[   144.371] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[   144.371] (II) Module ABI versions:
[   144.371] 	X.Org ANSI C Emulation: 0.4
[   144.371] 	X.Org Video Driver: 25.2
[   144.371] 	X.Org XInput driver : 24.4
[   144.371] 	X.Org Server Extension : 10.0
[   144.372] (++) using VT number 2

[   144.374] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[   144.376] (--) PCI:*(1@0:0:0) 10de:1401:0000:0000 rev 161, Mem @ 0xf4000000/33554432, 0xe0000000/134217728, 0xe8000000/67108864, I/O @ 0x0000e000/128, BIOS @ 0x????????/131072
[   144.376] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[   144.376] (II) LoadModule: "glx"
[   144.376] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   144.377] (II) Module glx: vendor="X.Org Foundation"
[   144.377] 	compiled for 1.21.1.4, module version = 1.0.0
[   144.377] 	ABI class: X.Org Server Extension, version 10.0
[   144.378] (==) Matched nouveau as autoconfigured driver 0
[   144.378] (==) Matched nv as autoconfigured driver 1
[   144.378] (==) Matched modesetting as autoconfigured driver 2
[   144.378] (==) Matched fbdev as autoconfigured driver 3
[   144.378] (==) Matched vesa as autoconfigured driver 4
[   144.378] (==) Assigned the driver to the xf86ConfigLayout
[   144.378] (II) LoadModule: "nouveau"
[   144.378] (WW) Warning, couldn't open module nouveau
[   144.378] (EE) Failed to load module "nouveau" (module does not exist, 0)
[   144.378] (II) LoadModule: "nv"
[   144.378] (WW) Warning, couldn't open module nv
[   144.378] (EE) Failed to load module "nv" (module does not exist, 0)
[   144.378] (II) LoadModule: "modesetting"
[   144.379] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[   144.379] (II) Module modesetting: vendor="X.Org Foundation"
[   144.379] 	compiled for 1.21.1.4, module version = 1.21.1
[   144.379] 	Module class: X.Org Video Driver
[   144.379] 	ABI class: X.Org Video Driver, version 25.2
[   144.379] (II) LoadModule: "fbdev"
[   144.379] (WW) Warning, couldn't open module fbdev
[   144.379] (EE) Failed to load module "fbdev" (module does not exist, 0)
[   144.379] (II) LoadModule: "vesa"
[   144.379] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[   144.379] (II) Module vesa: vendor="X.Org Foundation"
[   144.379] 	compiled for 1.21.1.3, module version = 2.5.0
[   144.379] 	Module class: X.Org Video Driver
[   144.379] 	ABI class: X.Org Video Driver, version 25.2
[   144.379] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   144.379] (II) VESA: driver for VESA chipsets: vesa
[   144.379] (EE) open /dev/dri/card0: No such file or directory
[   144.379] (WW) Falling back to old probe method for modesetting
[   144.379] (EE) open /dev/dri/card0: No such file or directory
[   144.380] vesa: Refusing to run, Framebuffer or dri device present
[   144.380] (EE) Screen 0 deleted because of no matching config section.
[   144.380] (II) UnloadModule: "modesetting"
[   144.380] (EE) Device(s) detected, but none match those in the config file.
[   144.380] (EE) 
Fatal server error:
[   144.380] (EE) no screens found(EE) 
[   144.380] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[   144.380] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   144.380] (EE) 
[   144.393] (EE) Server terminated with error (1). Closing log file.

do you have vesa installed?
post output from:
mhwd -l && mhwd -li
ls /etc/modprobe.d
find /etc/X11/ -name "*.conf"

I think I removed vesa

mhwd -l && mhwd -li
e[1me[31m> e[m0000:03:00.0 (0200:10ec:8168) Network controller Realtek Semiconductor Co., Ltd.:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
         network-r8168            2016.04.20                true            PCI


e[1me[31m> e[m0000:01:00.0 (0300:10de:1401) Display controller nVidia Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
          video-nvidia            2021.11.04               false            PCI
    video-nvidia-470xx            2021.11.04               false            PCI
    video-nvidia-390xx            2021.11.26               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI


e[1me[31m> e[mInstalled PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
          video-nvidia            2021.11.04               false            PCI


e[1me[31mWarning: e[mNo installed USB configs!
ls /etc/modprobe.d
mhwd-gpu.conf
find /etc/X11 -name "*conf"
/etc/X11/mhwd.d/nvidia.conf
/etc/X11/mhwd.d/nvidia.conf/nvidia.conf
/etc/X11/mhwd.d/nvidia.conf/redUsb/winpython/WPy64-31080b5/python-3.10.8.amd64/Lib/site-packages/alabaster/theme.conf
/etc/X11/xorg.conf.d/00-keyboard.conf
/etc/X11/xorg.conf.d/30-touchpad.conf
/etc/X11/xorg.conf.d/90-mhwd.conf

post output from:
cat /etc/modprobe.d/mhwd-gpu.conf
cat /etc/X11/xorg.conf.d/90-mhwd.conf

cat /etc/modprobe.d/mhwd-gpu.conf
##
## Generated by mhwd - Manjaro Hardware Detection
##
 
blacklist nouveau
blacklist ttm
blacklist drm_kms_helper
blacklist drm

But the second one is weird

cat: /etc/X11/xorg.conf.d/90-mhwd.conf: Is a directory

well it is weird, the command looks ok…
but now remove these:

sudo rm /etc/X11/mhwd.d/nvidia.conf
sudo rm /etc/X11/mhwd.d/nvidia.conf/nvidia.conf
sudo rm /etc/X11/mhwd.d/nvidia.conf/redUsb/winpython/WPy64-31080b5/python-3.10.8.amd64/Lib/site-packages/alabaster/theme.conf

uninstall nvidia:
sudo mhwd -r pci video-nvidia
install it again:
sudo mhwd -i pci video-nvidia
reboot:
systemctl reboot

Should I had removed the entire nvidia.conf directory?
I’ve done all the commands but I still get stuck on

[  OK  ] Reached target Graphical Interface

what do you mean directory? the

sudo rm /etc/X11/mhwd.d/nvidia.conf

is not a config file, but a folder?

Yes it was a directory for some reason