I have just installed Clear Linux and stumbled upon a problem with my display output. I have a desktop PC with an integrated Intel GPU (iGPU) and a discrete Nvidia GPU (dGPU). I have two displays. One is connected to the iGPU through VGA and the other one to the dGPU through HDMI. At the login screen, main login screen is shown on the dGPU and both displays are active. After logging in, desktop is only shown on the dGPU and the iGPU does not give any output anymore. Primary display is set to AUTO in UEFI. If I set it to the iGPU, the login screen is still presented on the dGPU, but desktop is only shown on the iGPU after logging in. Only one display is always shown in settings.
Unplugging and plugging in again does not have any effect.
Default xorg.conf file did not exist, so I tried configuring Xorg by creating new as per manual. Unfortunately to no avail. I have tried putting it into ‘/etc/X11/’ and ‘/usr/share/X11/’ folders.
Do you think it would help if I install Nvidia drivers?
After running a second command more inputs appeared in xrandr and setings. Now I have multiple screens, but I have to do this each time I log in. Any idea how to make this permanent?
you could save it in a little script somewhere in your home dir and register in System / Preferences / Startup Applications in gnome settings. Alternatively you could use gnome terminal gnome-terminal --tab-with-profile=DUAL_MONITOR or similar.
Fine. I will move everything to ‘etc’ and try again.
Yes, it was my intention to force rendering on discrete GPU, otherwise I get white screen. I need my integrated GPU to stay as primary in the UEFI settings for some other reasons. It would be great though if I could avoid that white error screen by not rendering everything on discrete GPU and allowing to also show login screen on the other display, which is connected to integrated GPU.
It’s theoretically possible.
You can have your iGPU render the normal display and only pass certain heavy works to NVIDIA GPU. It’s called offloading and can be found in NVIDIA proprietary driver’s manual.