Black screen after installing optimus-manager

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.

Should we guess this means what the title says: ‘optimus-manager’?
What did you install exactly and how?

And what profile is/was in use by mhwd?

mhwd -l -d

I tried to activate hybrid graphics, for this I installed optimus-manager, using the pacman -S optimus-manager command

mhwd -l -d
--------------------------------------------------------------------------------
e[1me[31m> e[mPCI Device: /devices/pci0000:00/0000:00:02.1/0000:02:00.0 (0200:10ec:8168)
  Network controller Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
--------------------------------------------------------------------------------
  > AVAILABLE:

   NAME:	network-r8168
   ATTACHED:	PCI
   VERSION:	2016.04.20
   INFO:	RealTek RTL-8168 Gigabit Ethernet driver
   PRIORITY:	0
   FREEDRIVER:	true
   DEPENDS:	-
   CONFLICTS:	-
   CLASSIDS:	0200 
   VENDORIDS:	1186 10ec 


--------------------------------------------------------------------------------
e[1me[31m> e[mPCI Device: /devices/pci0000:00/0000:00:01.1/0000:01:00.0 (0300:10de:1f95)
  Display controller nVidia Corporation TU117M [GeForce GTX 1650 Ti Mobile]
--------------------------------------------------------------------------------
  > INSTALLED:

   NAME:	video-hybrid-amd-nvidia-prime
   ATTACHED:	PCI
   VERSION:	2023.03.23
   INFO:	Hybrid prime solution for NVIDIA Optimus Technology - Closed source NVIDIA driver & open source amd driver.
   PRIORITY:	8
   FREEDRIVER:	false
   DEPENDS:	video-linux 
   CONFLICTS:	video*nvidia* 
   CLASSIDS:	0300 0302 0300 
   VENDORIDS:	10de 1002 

   NAME:	video-linux
   ATTACHED:	PCI
   VERSION:	2018.05.04
   INFO:	Standard open source drivers.
   PRIORITY:	2
   FREEDRIVER:	true
   DEPENDS:	-
   CONFLICTS:	-
   CLASSIDS:	0300 0380 0302 
   VENDORIDS:	1002 8086 10de 



  > AVAILABLE:

   NAME:	video-hybrid-amd-nvidia-prime
   ATTACHED:	PCI
   VERSION:	2023.03.23
   INFO:	Hybrid prime solution for NVIDIA Optimus Technology - Closed source NVIDIA driver & open source amd driver.
   PRIORITY:	8
   FREEDRIVER:	false
   DEPENDS:	video-linux 
   CONFLICTS:	video*nvidia* 
   CLASSIDS:	0300 0302 0300 
   VENDORIDS:	10de 1002 

   NAME:	video-hybrid-amd-nvidia-470xx-prime
   ATTACHED:	PCI
   VERSION:	2023.03.23
   INFO:	Hybrid prime solution for NVIDIA Optimus Technology - Closed source NVIDIA driver & open source amd driver.
   PRIORITY:	7
   FREEDRIVER:	false
   DEPENDS:	video-linux 
   CONFLICTS:	video*nvidia* 
   CLASSIDS:	0300 0302 0300 
   VENDORIDS:	10de 1002 

   NAME:	video-nvidia
   ATTACHED:	PCI
   VERSION:	2023.03.23
   INFO:	Closed source NVIDIA drivers for linux.
   PRIORITY:	5
   FREEDRIVER:	false
   DEPENDS:	-
   CONFLICTS:	video*nvidia* 
   CLASSIDS:	0300 0302 
   VENDORIDS:	10de 

   NAME:	video-nvidia-470xx
   ATTACHED:	PCI
   VERSION:	2023.03.23
   INFO:	Closed source NVIDIA drivers for linux.
   PRIORITY:	4
   FREEDRIVER:	false
   DEPENDS:	-
   CONFLICTS:	video*nvidia* 
   CLASSIDS:	0300 0302 
   VENDORIDS:	10de 

   NAME:	video-linux
   ATTACHED:	PCI
   VERSION:	2018.05.04
   INFO:	Standard open source drivers.
   PRIORITY:	2
   FREEDRIVER:	true
   DEPENDS:	-
   CONFLICTS:	-
   CLASSIDS:	0300 0380 0302 
   VENDORIDS:	1002 8086 10de 

   NAME:	video-modesetting
   ATTACHED:	PCI
   VERSION:	2020.01.13
   INFO:	X.org modesetting video driver.
   PRIORITY:	1
   FREEDRIVER:	true
   DEPENDS:	-
   CONFLICTS:	-
   CLASSIDS:	0300 
   VENDORIDS:	* 

   NAME:	video-vesa
   ATTACHED:	PCI
   VERSION:	2017.03.12
   INFO:	X.org vesa video driver.
   PRIORITY:	0
   FREEDRIVER:	true
   DEPENDS:	-
   CONFLICTS:	-
   CLASSIDS:	0300 
   VENDORIDS:	* 


--------------------------------------------------------------------------------
e[1me[31m> e[mPCI Device: /devices/pci0000:00/0000:00:08.1/0000:05:00.0 (0300:1002:1636)
  Display controller ATI Technologies Inc Renoir
--------------------------------------------------------------------------------
  > INSTALLED:

   NAME:	video-hybrid-amd-nvidia-prime
   ATTACHED:	PCI
   VERSION:	2023.03.23
   INFO:	Hybrid prime solution for NVIDIA Optimus Technology - Closed source NVIDIA driver & open source amd driver.
   PRIORITY:	8
   FREEDRIVER:	false
   DEPENDS:	video-linux 
   CONFLICTS:	video*nvidia* 
   CLASSIDS:	0300 0302 0300 
   VENDORIDS:	10de 1002 

   NAME:	video-linux
   ATTACHED:	PCI
   VERSION:	2018.05.04
   INFO:	Standard open source drivers.
   PRIORITY:	2
   FREEDRIVER:	true
   DEPENDS:	-
   CONFLICTS:	-
   CLASSIDS:	0300 0380 0302 
   VENDORIDS:	1002 8086 10de 



  > AVAILABLE:

   NAME:	video-hybrid-amd-nvidia-prime
   ATTACHED:	PCI
   VERSION:	2023.03.23
   INFO:	Hybrid prime solution for NVIDIA Optimus Technology - Closed source NVIDIA driver & open source amd driver.
   PRIORITY:	8
   FREEDRIVER:	false
   DEPENDS:	video-linux 
   CONFLICTS:	video*nvidia* 
   CLASSIDS:	0300 0302 0300 
   VENDORIDS:	10de 1002 

   NAME:	video-hybrid-amd-nvidia-470xx-prime
   ATTACHED:	PCI
   VERSION:	2023.03.23
   INFO:	Hybrid prime solution for NVIDIA Optimus Technology - Closed source NVIDIA driver & open source amd driver.
   PRIORITY:	7
   FREEDRIVER:	false
   DEPENDS:	video-linux 
   CONFLICTS:	video*nvidia* 
   CLASSIDS:	0300 0302 0300 
   VENDORIDS:	10de 1002 

   NAME:	video-linux
   ATTACHED:	PCI
   VERSION:	2018.05.04
   INFO:	Standard open source drivers.
   PRIORITY:	2
   FREEDRIVER:	true
   DEPENDS:	-
   CONFLICTS:	-
   CLASSIDS:	0300 0380 0302 
   VENDORIDS:	1002 8086 10de 

   NAME:	video-modesetting
   ATTACHED:	PCI
   VERSION:	2020.01.13
   INFO:	X.org modesetting video driver.
   PRIORITY:	1
   FREEDRIVER:	true
   DEPENDS:	-
   CONFLICTS:	-
   CLASSIDS:	0300 
   VENDORIDS:	* 

   NAME:	video-vesa
   ATTACHED:	PCI
   VERSION:	2017.03.12
   INFO:	X.org vesa video driver.
   PRIORITY:	0
   FREEDRIVER:	true
   DEPENDS:	-
   CONFLICTS:	-
   CLASSIDS:	0300 
   VENDORIDS:	* 


e[1me[31mWarning: e[mno configs for USB devices found!

I made the settings according to the instructions from https://github.com/Askannz/optimus-manager for Manjaro KDE Users

It seems you already had it.

Optimus-manager is not a requirement for hybrid graphics.
It is a utility that is supposed to give you the ability to choose to run the system as only-iGPU, only-dGPU, or hybrid-mode.

I had thought optimus-manager did not support amd+nvidia, but It appears it does purport to work.

Your hybrid amd+nvidia setup should have already been working in hyrbid mode using the listed profile there. Meaning amd by default, and then utilise DRI_PRIME=1 environment variable to make use of nvidia.
Example:

glxinfo | grep "renderer string"
DRI_PRIME=1 glxinfo | grep "renderer string"

I dont regard optimus-manager very highly… but I am also not sure you actually need it.
The only reason, as stated above, is if you want to sometimes boot into 1 card or the other (non-switchable) using its GUI toggle.

An important thing to note as well … is you should always be up-to-date while installing new packages. So you may want to make sure of that.

Of course to reverse the changes you may want to remove it for now, along with any other modifications you made by hand, and refresh your drivers:

sudo pacman -Rns optimus-manager
sudo mhwd -f -i pci video-hybrid-amd-nvidia-prime

Remember to undo whatever instructions you followed … iirc optimus-manager instructs users to edit sddm.conf by hand. :melting_face:

It looks like I rolled back the changes listed in the instruction
I get an error when executing the second command:

e[1me[31m> e[mRemoving video-hybrid-amd-nvidia-prime...
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-hybrid-amd-nvidia-prime/MHWDCONFIG
e[me[0;32mProcessing classid: 0300
e[me[0;32mSourcing /var/lib/mhwd/scripts/include/0300
e[me[0;32mпроверка зависимостей...
e[me[0;32mошибка: не удалось подготовить транзакцию (не удалось удовлетворить зависимости)
e[me[0;32m:: removing nvidia-utils breaks dependency 'nvidia-utils=530.41.03' required by nvidia-dkms
e[me[0;32mError: pacman failed!
e[me[1me[31mError: e[mscript failed!

Still unable to start startx

[    25.410] 
X.Org X Server 1.21.1.8
X Protocol Version 11, Revision 0
[    25.410] 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
[    25.410] 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
[    25.410]  
[    25.410] Current version of pixman: 0.42.2
[    25.410] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[    25.410] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    25.411] (==) Log file: "/home/ww1150/.local/share/xorg/Xorg.0.log", Time: Tue Apr 25 03:30:26 2023
[    25.411] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    25.411] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    25.412] (==) ServerLayout "layout"
[    25.412] (**) |-->Screen "iGPU" (0)
[    25.412] (**) |   |-->Monitor "<default monitor>"
[    25.412] (**) |   |-->Device "iGPU"
[    25.412] (**) |   |-->GPUDevice "dGPU"
[    25.412] (==) No monitor specified for screen "iGPU".
	Using a default monitor configuration.
[    25.412] (==) Automatically adding devices
[    25.412] (==) Automatically enabling devices
[    25.412] (==) Automatically adding GPU devices
[    25.412] (==) Automatically binding GPU devices
[    25.412] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    25.412] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[    25.412] 	Entry deleted from font path.
[    25.412] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[    25.412] 	Entry deleted from font path.
[    25.412] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[    25.412] 	Entry deleted from font path.
[    25.412] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[    25.412] 	Entry deleted from font path.
[    25.412] (==) FontPath set to:
	/usr/share/fonts/misc,
	/usr/share/fonts/TTF
[    25.412] (==) ModulePath set to "/usr/lib/xorg/modules"
[    25.412] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[    25.412] (II) Module ABI versions:
[    25.412] 	X.Org ANSI C Emulation: 0.4
[    25.412] 	X.Org Video Driver: 25.2
[    25.412] 	X.Org XInput driver : 24.4
[    25.412] 	X.Org Server Extension : 10.0
[    25.413] (++) using VT number 2

[    25.415] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[    25.416] (II) xfree86: Adding drm device (/dev/dri/card0)
[    25.416] (II) Platform probe for /sys/devices/pci0000:00/0000:00:08.1/0000:05:00.0/drm/card0
[    25.417] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 13 paused 0
[    25.422] (--) 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
[    25.422] (--) PCI:*(5@0:0:0) 1002:1636:1043:16df rev 198, Mem @ 0xd0000000/268435456, 0xe0000000/2097152, 0xfc500000/524288, I/O @ 0x0000d000/256
[    25.422] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[    25.422] (II) LoadModule: "glx"
[    25.422] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    25.424] (II) Module glx: vendor="X.Org Foundation"
[    25.424] 	compiled for 1.21.1.8, module version = 1.0.0
[    25.424] 	ABI class: X.Org Server Extension, version 10.0
[    25.424] (II) LoadModule: "modesetting"
[    25.424] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[    25.425] (II) Module modesetting: vendor="X.Org Foundation"
[    25.425] 	compiled for 1.21.1.8, module version = 1.21.1
[    25.425] 	Module class: X.Org Video Driver
[    25.425] 	ABI class: X.Org Video Driver, version 25.2
[    25.425] (II) LoadModule: "nvidia"
[    25.425] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[    25.426] (II) Module nvidia: vendor="NVIDIA Corporation"
[    25.426] 	compiled for 1.6.99.901, module version = 1.0.0
[    25.426] 	Module class: X.Org Video Driver
[    25.426] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    25.426] (II) NVIDIA dlloader X Driver  530.41.03  Thu Mar 16 19:25:45 UTC 2023
[    25.426] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[    25.426] (WW) Falling back to old probe method for modesetting
[    25.426] (II) modeset(0): using default device
[    25.427] (II) Loading sub module "fb"
[    25.427] (II) LoadModule: "fb"
[    25.427] (II) Module "fb" already built-in
[    25.427] (II) Loading sub module "wfb"
[    25.427] (II) LoadModule: "wfb"
[    25.427] (II) Loading /usr/lib/xorg/modules/libwfb.so
[    25.427] (II) Module wfb: vendor="X.Org Foundation"
[    25.427] 	compiled for 1.21.1.8, module version = 1.0.0
[    25.427] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    25.435] (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the
[    25.435] (EE) NVIDIA:     system's kernel log for additional error messages and
[    25.435] (EE) NVIDIA:     consult the NVIDIA README for details.
[    25.435] (II) modeset(G0): using drv /dev/dri/card0
[    25.435] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    25.435] (EE) 
Fatal server error:
[    25.436] (EE) Cannot run in framebuffer mode. Please specify busIDs        for all framebuffer devices
[    25.436] (EE) 
[    25.436] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[    25.436] (EE) Please also check the log file at "/home/ww1150/.local/share/xorg/Xorg.0.log" for additional information.
[    25.436] (EE) 
[    25.447] (EE) Server terminated with error (1). Closing log file.

Then remove nvidia-dkms first

The driver has reinstalled, but I still get the error

[   234.614] 
X.Org X Server 1.21.1.8
X Protocol Version 11, Revision 0
[   234.623] 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
[   234.623] 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
[   234.628]  
[   234.630] Current version of pixman: 0.42.2
[   234.635] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   234.635] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   234.643] (==) Log file: "/var/log/Xorg.0.log", Time: Tue Apr 25 04:01:34 2023
[   234.645] (==) Using config directory: "/etc/X11/xorg.conf.d"
[   234.646] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   234.646] (==) ServerLayout "layout"
[   234.646] (**) |-->Screen "iGPU" (0)
[   234.646] (**) |   |-->Monitor "<default monitor>"
[   234.646] (**) |   |-->Device "iGPU"
[   234.646] (**) |   |-->GPUDevice "dGPU"
[   234.646] (==) No monitor specified for screen "iGPU".
	Using a default monitor configuration.
[   234.646] (==) Automatically adding devices
[   234.646] (==) Automatically enabling devices
[   234.646] (==) Automatically adding GPU devices
[   234.646] (==) Automatically binding GPU devices
[   234.646] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   234.646] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[   234.646] 	Entry deleted from font path.
[   234.646] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[   234.646] 	Entry deleted from font path.
[   234.646] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[   234.646] 	Entry deleted from font path.
[   234.646] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[   234.646] 	Entry deleted from font path.
[   234.646] (==) FontPath set to:
	/usr/share/fonts/misc,
	/usr/share/fonts/TTF
[   234.646] (==) ModulePath set to "/usr/lib/xorg/modules"
[   234.646] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[   234.646] (II) Module ABI versions:
[   234.646] 	X.Org ANSI C Emulation: 0.4
[   234.646] 	X.Org Video Driver: 25.2
[   234.647] 	X.Org XInput driver : 24.4
[   234.647] 	X.Org Server Extension : 10.0
[   234.648] (++) using VT number 2

[   234.650] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[   234.651] (II) xfree86: Adding drm device (/dev/dri/card1)
[   234.651] (II) Platform probe for /sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/drm/card1
[   234.651] (II) systemd-logind: got fd for /dev/dri/card1 226:1 fd 13 paused 0
[   234.651] (II) xfree86: Adding drm device (/dev/dri/card0)
[   234.651] (II) Platform probe for /sys/devices/pci0000:00/0000:00:08.1/0000:05:00.0/drm/card0
[   234.652] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 14 paused 0
[   234.654] (**) OutputClass "nvidia" ModulePath extended to "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules,/usr/lib/xorg/modules"
[   234.654] (**) OutputClass "nvidia" ModulePath extended to "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules,/usr/lib/nvidia/xorg,/usr/lib/xorg/modules,/usr/lib/xorg/modules"
[   234.654] (**) OutputClass "dGPU" ModulePath extended to "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules,/usr/lib/nvidia/xorg,/usr/lib/xorg/modules,/usr/lib/nvidia/xorg,/usr/lib/xorg/modules,/usr/lib/xorg/modules"
[   234.654] (**) OutputClass "dGPU" setting /dev/dri/card1 as PrimaryGPU
[   234.958] (--) 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
[   234.958] (--) PCI: (5@0:0:0) 1002:1636:1043:16df rev 198, Mem @ 0xd0000000/268435456, 0xe0000000/2097152, 0xfc500000/524288, I/O @ 0x0000d000/256
[   234.959] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[   234.959] (II) LoadModule: "glx"
[   234.959] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   234.961] (II) Module glx: vendor="X.Org Foundation"
[   234.961] 	compiled for 1.21.1.8, module version = 1.0.0
[   234.961] 	ABI class: X.Org Server Extension, version 10.0
[   234.961] (II) LoadModule: "modesetting"
[   234.961] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[   234.962] (II) Module modesetting: vendor="X.Org Foundation"
[   234.962] 	compiled for 1.21.1.8, module version = 1.21.1
[   234.962] 	Module class: X.Org Video Driver
[   234.962] 	ABI class: X.Org Video Driver, version 25.2
[   234.962] (II) LoadModule: "nvidia"
[   234.962] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[   234.963] (II) Module nvidia: vendor="NVIDIA Corporation"
[   234.963] 	compiled for 1.6.99.901, module version = 1.0.0
[   234.963] 	Module class: X.Org Video Driver
[   234.963] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   234.963] (II) NVIDIA dlloader X Driver  530.41.03  Thu Mar 16 19:25:45 UTC 2023
[   234.963] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[   234.963] (WW) Falling back to old probe method for modesetting
[   234.964] (II) modeset(0): using default device
[   234.964] (II) systemd-logind: releasing fd for 226:1
[   234.965] (II) Loading sub module "fb"
[   234.965] (II) LoadModule: "fb"
[   234.965] (II) Module "fb" already built-in
[   234.965] (II) Loading sub module "wfb"
[   234.965] (II) LoadModule: "wfb"
[   234.965] (II) Loading /usr/lib/xorg/modules/libwfb.so
[   234.965] (II) Module wfb: vendor="X.Org Foundation"
[   234.965] 	compiled for 1.21.1.8, module version = 1.0.0
[   234.965] 	ABI class: X.Org ANSI C Emulation, version 0.4
[   234.966] (II) modeset(G1): using drv /dev/dri/card0
[   234.966] (EE) 
Fatal server error:
[   234.966] (EE) Cannot run in framebuffer mode. Please specify busIDs        for all framebuffer devices
[   234.966] (EE) 
[   234.966] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[   234.966] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   234.966] (EE) 
[   234.976] (EE) Server terminated with error (1). Closing log file.

When executing commands

glxinfo | grep "renderer string"
DRI_PRIME=1 glxinfo | grep "renderer string"

I get

Error: unable to open display

These are to demonstrate using PRIME when your system is functional.
(the first will run normally=amd, the second with prime=nvidia)

To the issue - are you sure you have removed everything extra?
Files in /etc/xorg.conf.d/ for example.

Only 00-keyboard.conf, 30-touchpad.conf, 90-mhwd.conf are stored in the directory

post output from:
mhwd -l -li
pacman -Qs nvidia

mhwd -l -li
e[1me[31m> e[mInstalled PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux            2018.05.04                true            PCI
video-hybrid-amd-nvidia-prime            2023.03.23               false            PCI


e[1me[31mWarning: e[mNo installed USB configs!
e[1me[31m> e[m0000:02: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:1f95) Display controller nVidia Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-amd-nvidia-prime            2023.03.23               false            PCI
video-hybrid-amd-nvidia-470xx-prime            2023.03.23               false            PCI
          video-nvidia            2023.03.23               false            PCI
    video-nvidia-470xx            2023.03.23               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[m0000:05:00.0 (0300:1002:1636) Display controller ATI Technologies Inc:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-amd-nvidia-prime            2023.03.23               false            PCI
video-hybrid-amd-nvidia-470xx-prime            2023.03.23               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI

pacman -Qs nvidia
local/egl-wayland 2:1.1.11-4
    EGLStream-based Wayland external platform
local/lib32-libvdpau 1.5-1
    Nvidia VDPAU library
local/lib32-nvidia-utils 530.41.03-1
    NVIDIA drivers utilities (32-bit)
local/lib32-opencl-nvidia 530.41.03-1
    OpenCL implemention for NVIDIA (32-bit)
local/libvdpau 1.5-1
    Nvidia VDPAU library
local/libxnvctrl 530.41.03-3
    NVIDIA NV-CONTROL X extension
local/linux61-nvidia 530.41.03-5 (linux61-extramodules)
    NVIDIA drivers for linux
local/linux62-nvidia 530.41.03-6 (linux62-extramodules)
    NVIDIA drivers for linux
local/mhwd-nvidia 530.41.03-4
    MHWD module-ids for nvidia 530.41.03
local/mhwd-nvidia-390xx 390.157-5
    MHWD module-ids for nvidia 390.157
local/mhwd-nvidia-470xx 470.182.03-1
    MHWD module-ids for nvidia 470.182.03
local/nvidia-prime 1.0-4
    NVIDIA Prime Render Offload configuration and utilities
local/nvidia-utils 530.41.03-4
    NVIDIA drivers utilities
local/opencl-nvidia 530.41.03-4
    OpenCL implemention for NVIDIA
local/prime 1.0-14
    Nvidia:PRIME Render Offload Launcher
local/xf86-video-nouveau 1.0.17-2 (xorg-drivers)
    Open Source 3D acceleration driver for nVidia cards

Here is the copy of my old notices of switching to optimus-manager, minus the graphics, that I had in the original post. Go step by step and see if you did the same. You can skip bumblebee part, because I doubt you had it in the first place. Since I have Intel, this won’t be exactly the same for you thou.

1. Installation

sudo pacman -S optimus-manager

2. Cleaning driver configuration to backups

sudo mv /etc/X11/nvidia-xorg.conf /etc/X11/nvidia-xorg.conf.bak

sudo mv /etc/X11/xorg.conf.d/20-intel.conf /etc/X11/xorg.conf.d/20-intel.conf.bak

sudo mv /etc/X11/xorg.conf.d/90-mhwd.conf /etc/X11/xorg.conf.d/90-mhwd.conf.bak

sudo mv /etc/X11/mhwd.d/intel.conf /etc/X11/mhwd.d/intel.conf.bak

3. Turning Bumblebee off (now and on boot)

sudo systemctl stop bumblebeed

sudo systemctl disable bumblebeed

4. Make sure the bbswitch module is not loaded at boot time

Check /etc/modules-load.d/

All my confs don’t have bbswitch there so I’m fine.

Make backups of the files to be able restore original settings manually, just in case:

sudo cp /etc/modules-load.d/linux414-virtualbox-host-modules.conf /etc/modules-load.d/linux414-virtualbox-host-modules.conf.bak

sudo cp /etc/modules-load.d/linux419-virtualbox-host-modules.conf /etc/modules-load.d/linux419-virtualbox-host-modules.conf.bak

sudo cp /etc/modules-load.d/mhwd-gpu.conf /etc/modules-load.d/mhwd-gpu.conf.bak

sudo cp /etc/modules-load.d/modules.conf /etc/modules-load.d/modules.conf.bak

5. Start optimus-manager (now and on boot):

sudo systemctl start optimus-manager.service

sudo systemctl enable optimus-manager.service

6. Check if optimus-manager.service is running:

sudo systemctl status optimus-manager

7. Reboot

8. Use

optimus-manager --switch nvidia

optimus-manager --switch intel

9. If it’s working, create .desktops file with above commands and add it to popup launcher in Plasma

Intel-mode.desktop

[Desktop Entry]

Comment=Switches session to use Intel GPU

Encoding=UTF-8

Exec=bash -c 'optimus-manager --switch intel --no-confirm'

Icon=/home/michaldybczak/Obrazy/ikony/intel.png

Name=Intel-GPU-mode

NoDisplay=false

Path[$e]=

StartupNotify=true

Terminal=0

TerminalOptions=

Type=Application

X-KDE-SubstituteUID=false

X-KDE-Username=

Nvidia-mode.desktop

[Desktop Entry]

Comment=Switches session to use Nvidia GPU

Encoding=UTF-8

Exec=bash -c 'optimus-manager --switch nvidia --no-confirm'

Icon=/usr/share/pixmaps/nvidia-settings.png

Name=Nvidia-GPU-mode

NoDisplay=false

Path[$e]=

StartupNotify=true

Terminal=0

TerminalOptions=

Type=Application

X-KDE-SubstituteUID=false

X-KDE-Username=

10. Reverting:

sudo systemctl stop optimus-manager.service

sudo systemctl disable optimus-manager.service

sudo optimus-manager --cleanup

sudo mv /etc/X11/nvidia-xorg.conf.bak /etc/X11/nvidia-xorg.conf

sudo mv /etc/X11/xorg.conf.d/20-intel.conf.bak /etc/X11/xorg.conf.d/20-intel.conf

sudo mv /etc/X11/xorg.conf.d/90-mhwd.conf.bak /etc/X11/xorg.conf.d/90-mhwd.conf

sudo mv /etc/X11/mhwd.d/intel.conf.bak /etc/X11/mhwd.d/intel.conf

sudo systemctl start bumblebeed

sudo systemctl enable bumblebeed

you have installed from AUR:

which is basically the same as this one from the official repos:


so remove the prime one from AUR, and install optimus as outlined here:

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