No image on the second monitor when the nvidia driver is set,

About this config:

That is so called prime-reverse:

This is the prime setup:

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia"
    Inactive "intel"
EndSection

Section "Device"
	Identifier	"nvidia"
	driver		"nvidia"
	BusID		"PCI:1:0:0"
EndSection

Section "Screen"
    Identifier     "nvidia"
    Device         "nvidia"
    Option "AllowEmptyInitialConfiguration"
EndSection

Section "Device"
	Identifier	"intel"
	driver		"modesetting"
	BusID		"PCI:0:2:0"
EndSection

Section "Screen"
    Identifier     "intel"
    Device         "intel"
EndSection

Try this oneā€¦ but however if glxserver_nvidia cannot be found, then any 3D accelerations will not work.

1 Like

Remains as at the beginning

Why would he need to delete that one? The old config donā€™t work eitherā€¦

But I see there something strange going on with mhwdā€¦

he has 2 gpus, but no prime config has been offered.

1 Like

please post the output of

glxinfo | egrep -i server

still on intel ? i bet so

2 Likes

i read it here on forum, that xorg doesnt no longer save its xorg.conf in that folder, so if its there it should be removed, because it can cause all kinds of graphical issuesā€¦
he probably doesnt have any optimus hardware so thats why there is no prime

1 Like
glxinfo | egrep -i server
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:

thatā€™s your problem, you are on intel-driver. give me some minutes and iā€™ll post you the swiss-knife-method to force nvidia-mode

1 Like

Well that is actually not trueā€¦ it is just a matter of priority. So /etc/X11/xorg.conf is prioritized over /etc/X11/xorg.org.d/.

Well, it doesnā€™t matter. A prime setup needs 2 gpus. I donā€™t have a laptop here and the hybrid setup still works.

please check this first and post the output of

systemctl status optimus-manager
1 Like
systemctl status optimus-manager
Unit optimus-manager.service could not be found.

install it

can you use optimus manager on desktops without any optimus hardware?

In short: yes!

didnt know that, i thought its only for optimus laptops

you force the nvidia-mode as kernel parameter in grub. thatā€™s it.

ystemctl status optimus-manager
ā— optimus-manager.service - Optimus Manager Commands Daemon
     Loaded: loaded (/usr/lib/systemd/system/optimus-manager.service; enabled; preset: disabled)
     Active: active (running) since Mon 2022-07-18 10:45:04 -05; 1min 0s ago
    Process: 708 ExecStartPre=/usr/bin/python3 -u -m optimus_manager.hooks.pre_daemon_start (code=e>
    Process: 779 ExecStartPre=/usr/bin/python3 -u -m optimus_manager.hooks.pre_xorg_start (code=exi>
   Main PID: 910 (python3)
      Tasks: 1 (limit: 9410)
     Memory: 48.4M
        CPU: 2.309s
     CGroup: /system.slice/optimus-manager.service
             ā””ā”€910 /usr/bin/python3 -u -m optimus_manager.daemon

jul 18 10:45:03 mateo-lenovoh420 python3[779]: [5612] INFO: Unloading modules ['nvidia_drm', 'nvidi>
jul 18 10:45:03 mateo-lenovoh420 python3[779]: [5617] INFO: switching=none, nothing to do
jul 18 10:45:04 mateo-lenovoh420 python3[779]: [5770] INFO: Found MHWD-generated Xorg config file a```

On Windows, this method is restricted to the notebook driver and therefore only compatible with optimus hardware, but on linux it is not restricted. Therefore it can be used.

okay give me some minutes. meanwhile post the output of

echo $XDG_SESSION_TYPE

echo $XDG_SESSION_TYPE x11

open a terminal and run this command. post the output to check if youā€™re on x11 or wayland