I had this problem that when I switched to NVIDIA mode and logged out, SDDM was just black and my screen was completely off (even its backlight was turned off). I had experience with nvidia-xrun and its default configuration always worked for me. The only way for optimus-manager to work, was to only use "integrated" and "hybrid" modes.
After comparing xorg configurations from optimus-manager and nvidia-xrun, it turned out that nvidia-xrun always uses modesetting as driver for "integrated" GPU, while optimus-manager had no option to "use intel driver when in integrated mode, use modesetting when in NVIDIA mode".
This pull request adds a "hybrid" driver for integrated GPUs that has solved the problem for me.
One would just set the driver option for intel to hybrid to enable this behavior. Also omitting DRI version may help too. (didn't check if it has any effect, but added this as an option too)
I had this problem that when I switched to NVIDIA mode and logged out, SDDM was just black and my screen was completely off (even its backlight was turned off). I had experience with
nvidia-xrun
and its default configuration always worked for me. The only way foroptimus-manager
to work, was to only use "integrated" and "hybrid" modes.After comparing xorg configurations from
optimus-manager
andnvidia-xrun
, it turned out thatnvidia-xrun
always usesmodesetting
as driver for "integrated" GPU, whileoptimus-manager
had no option to "use intel driver when in integrated mode, use modesetting when in NVIDIA mode".This pull request adds a "hybrid" driver for integrated GPUs that has solved the problem for me.
One would just set the
driver
option forintel
tohybrid
to enable this behavior. Also omitting DRI version may help too. (didn't check if it has any effect, but added this as an option too)