You are not logged in.

#1 2020-08-16 22:09:35

jojomodding
Member
Registered: 2017-03-12
Posts: 28

Prime Render Offload & Dual Monitors is weird

Hello,

I have a laptop which has an GTX 1060 and an integrated Intel iGPU. The internal screen is connected to the iGPU, the HDMI port is connected to the GPU.

I'm using the official nvidia driver with prime offload which should in theory allow me to use the HDMI output.

In practice, this does not work quite how I want it to. Namely, when plugging an external monitor in, it does not show anything. Running `xrandr` gets the monitor to mirror the internal screen. Running `xrandr --output HDMI-1-0 --right-of eDP-1` gets the monitor somewhat to work how I want it to.

However, the X window system is still confused and does not recognize this monitor as another one. i3, for example, does not assign it its own virtual desktop. The mouse pointer still behaves as if the external screen would mirror the internal one - it appears twice when it's on the internal monitor, and not at all when it's supposed to appear on the external one.

Rebooting (or restarting X, or logging out and in again) fixes this. However, I do not want to reboot my laptop every time I plug in an external monitor.

Here's my xorg.conf:

Section "Device"
  Identifier "iGPU"
  Driver "modesetting"
  Screen 0
EndSection

Section "Screen"
  Identifier "iGPU"
  Device "iGPU"
EndSection

Section "Device"
  Identifier "dGPU"
  Driver "nvidia"
  Screen 1
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration" "on" #commenting this out does not help
    Option "IgnoreDisplayDevices" "CRT"        #dito
EndSection

Do you know what I can do to fix this?

Offline

Board footer

Powered by FluxBB