<div dir="ltr"><div>Hi guys,</div><div><br></div><div>I'v configured my Xorg to use both intel & nvidia card on my laptop.</div><div><br></div><div>And I also have a dock with my Thinkpad T470.</div><div><br></div><div>When I disconnected the laptop from dock then connect the laptop to the dock again, the secondary monitor can not light-up.</div><div><br></div><div>There is an error with /var/log/Xorg.0.log :</div><div><br></div><div>```<br></div><div>[   152.296] (II) modeset(0): Allocate new frame buffer 3840x1080 stride<br>[   152.339] (EE) modeset(0): failed to set mode: Invalid argument<br>[   152.692] (II) modeset(0): Allocate new frame buffer 1920x1080 stride</div><div>```</div><div><br></div><div>3480 is just equal to my 2 monitors width (each 1920, 1920 x 2 = 3480) <br></div><div><br></div><div>And if I try to use xrandr to active the secondary monitor, there is an error too:</div><div><br></div><div>```</div><div>>> xrandr --output DP-2-1 --mode '1920x1080' --right-of eDP-1 --verbose<br>screen 0: 3840x1080 814x229 mm 119.79dpi<br>crtc 1:    1920x1080  60.00 +1920+0 "DP-2-1"<br>xrandr: Configure crtc 1 failed<br>crtc 0: disable<br>crtc 1: disable<br>crtc 2: disable<br>screen 0: revert<br>crtc 0: revert<br>crtc 1: revert<br>crtc 2: revert<br></div><div>```</div><div><br></div><div>It seems I didn't configure my screen correctly, is there anyone knows how to fix this problem ?</div><div><br></div><div>Below is my Xorg's monitor configuration:</div><div><br></div><div>```</div><div>Section "ServerLayout"<br> Identifier "layout"<br> Screen 0 "iGPU"<br>     Option "AllowNVIDIAGPUScreens"<br>EndSection<br><br>Section "Device"<br>    Identifier "iGPU"<br>   Driver "modesetting"<br>        BusID "PCI:0:2:0"<br>   Option "PrimaryGPU" "yes"<br> Option      "monitor-eDP-1" "LaptopMonitor"<br>    Option      "monitor-DP-2-1" "CompanyMonitor"<br>EndSection<br>Section "Screen"<br>  Identifier "iGPU"<br>   Device "iGPU"<br>EndSection<br>Section "Device"<br>       Identifier "dGPU"<br>   Driver "nvidia"<br>     Option "AllowEmptyInitialConfiguration" "true"<br>EndSection<br>Section "Monitor"<br>   Identifier "LaptopMonitor"<br>  #DisplaySize 541 304<br>  DisplaySize 406 229<br>   Option "Primary" "true"<br>   Option           "DPMS"<br>EndSection<br>Section "Monitor"<br>    Identifier "CompanyMonitor"<br> #DisplaySize 508 285<br>  DisplaySize 406 229<br>   Option           "DPMS"<br>     Option           "LeftOf" "LaptopMonitor"<br>EndSection<br></div><div>```<br></div></div>