I installed Nvidia Optimus and after that the system starts with a black screen
When executing startx, an error appears in the log:
[ 907.317]
X.Org X Server 1.21.1.8
X Protocol Version 11, Revision 0
[ 907.317] Current Operating System: Linux NHP-ASUS 6.2.12-1-MANJARO #1 SMP PREEMPT_DYNAMIC Thu Apr 20 14:17:37 UTC 2023 x86_64
[ 907.317] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.2-x86_64 root=UUID=253cc066-566a-4a5d-b299-7609ee2ff51a rw quiet splash udev.log_priority=3
[ 907.317]
[ 907.317] Current version of pixman: 0.42.2
[ 907.317] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 907.318] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 907.318] (==) Log file: "/home/ww1150/.local/share/xorg/Xorg.0.log", Time: Tue Apr 25 02:13:56 2023
[ 907.318] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 907.318] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 907.318] (==) ServerLayout "layout"
[ 907.318] (**) |-->Screen "iGPU" (0)
[ 907.318] (**) | |-->Monitor "<default monitor>"
[ 907.318] (**) | |-->Device "iGPU"
[ 907.318] (**) | |-->GPUDevice "dGPU"
[ 907.318] (**) | |-->GPUDevice "integrated"
[ 907.318] (==) No monitor specified for screen "iGPU".
Using a default monitor configuration.
[ 907.318] (==) Automatically adding devices
[ 907.318] (==) Automatically enabling devices
[ 907.318] (==) Automatically adding GPU devices
[ 907.318] (==) Automatically binding GPU devices
[ 907.318] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 907.318] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[ 907.318] Entry deleted from font path.
[ 907.318] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[ 907.318] Entry deleted from font path.
[ 907.318] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[ 907.318] Entry deleted from font path.
[ 907.318] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[ 907.318] Entry deleted from font path.
[ 907.318] (==) FontPath set to:
/usr/share/fonts/misc,
/usr/share/fonts/TTF
[ 907.318] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 907.318] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 907.318] (II) Module ABI versions:
[ 907.318] X.Org ANSI C Emulation: 0.4
[ 907.318] X.Org Video Driver: 25.2
[ 907.318] X.Org XInput driver : 24.4
[ 907.318] X.Org Server Extension : 10.0
[ 907.319] (++) using VT number 2
[ 907.321] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[ 907.321] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 907.321] (II) Platform probe for /sys/devices/pci0000:00/0000:00:08.1/0000:05:00.0/drm/card0
[ 907.322] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 13 paused 0
[ 907.324] (--) PCI: (1@0:0:0) 10de:1f95:1043:16df rev 161, Mem @ 0xfb000000/16777216, 0xb0000000/268435456, 0xc0000000/33554432, I/O @ 0x0000f000/128, BIOS @ 0x????????/524288
[ 907.324] (--) PCI:*(5@0:0:0) 1002:1636:1043:16df rev 198, Mem @ 0xd0000000/268435456, 0xe0000000/2097152, 0xfc500000/524288, I/O @ 0x0000d000/256
[ 907.324] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 907.324] (II) LoadModule: "glx"
[ 907.324] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 907.325] (II) Module glx: vendor="X.Org Foundation"
[ 907.325] compiled for 1.21.1.8, module version = 1.0.0
[ 907.325] ABI class: X.Org Server Extension, version 10.0
[ 907.325] (II) LoadModule: "modesetting"
[ 907.325] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 907.325] (II) Module modesetting: vendor="X.Org Foundation"
[ 907.325] compiled for 1.21.1.8, module version = 1.21.1
[ 907.325] Module class: X.Org Video Driver
[ 907.325] ABI class: X.Org Video Driver, version 25.2
[ 907.325] (II) LoadModule: "nvidia"
[ 907.325] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[ 907.325] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 907.325] compiled for 1.6.99.901, module version = 1.0.0
[ 907.325] Module class: X.Org Video Driver
[ 907.325] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 907.325] (II) NVIDIA dlloader X Driver 530.41.03 Thu Mar 16 19:25:45 UTC 2023
[ 907.325] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 907.325] (II) modeset(G0): using drv /dev/dri/card0
[ 907.325] (II) Loading sub module "fb"
[ 907.325] (II) LoadModule: "fb"
[ 907.325] (II) Module "fb" already built-in
[ 907.325] (II) Loading sub module "wfb"
[ 907.325] (II) LoadModule: "wfb"
[ 907.325] (II) Loading /usr/lib/xorg/modules/libwfb.so
[ 907.326] (II) Module wfb: vendor="X.Org Foundation"
[ 907.326] compiled for 1.21.1.8, module version = 1.0.0
[ 907.326] ABI class: X.Org ANSI C Emulation, version 0.4
[ 907.329] (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the
[ 907.329] (EE) NVIDIA: system's kernel log for additional error messages and
[ 907.329] (EE) NVIDIA: consult the NVIDIA README for details.
[ 907.329] (WW) Falling back to old probe method for modesetting
[ 907.333] (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the
[ 907.333] (EE) NVIDIA: system's kernel log for additional error messages and
[ 907.333] (EE) NVIDIA: consult the NVIDIA README for details.
[ 907.333] (EE) No devices detected.
[ 907.333] (EE)
Fatal server error:
[ 907.333] (EE) no screens found(EE)
[ 907.333] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 907.333] (EE) Please also check the log file at "/home/ww1150/.local/share/xorg/Xorg.0.log" for additional information.
[ 907.333] (EE)
[ 907.339] (EE) Server terminated with error (1). Closing log file.