twinview issue switching dual monitor to single monitor

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
sgz

twinview issue switching dual monitor to single monitor

Post by sgz »

Hello,

I have a desktop with two 1920x1080 monitors. Actually my xorg.conf contains this configuration ( my main monitor DFP-0 is on the right side and my secondary monitor, detected as DFP-2, is on the left side. ) :

Code: Select all

  Option  "TwinView" "1"
  Option  "TwinViewXineramaInfoOrder" "DFP-0"
  Option  "metamodes" "DFP-0: 1920x1080 +1920+0, DFP-2: 1920x1080 +0+0; DFP-0: 1920x1080 +0+0, NULL"
All is working fine as soon as I want a special single monitor metamode to run games. I tried the trick involving additional metamode with a NULL display ( "DFP-0: 1920x1080 +0+0, NULL" in the above configuration ).

When I switch to this secondary metamode ( with ctrl alt + ), my secondary monitor correctly shuts down, but I still get a very large 3840x1080 virtual screen on my main monitor, being able to scroll it with my mouse. Every window has the same position on the virtual screen as previously with dual monitor. I don't know how to fix to get a real single monitor resolution...

Here is my xorg's display related configuration :

Code: Select all

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 560 Ti"
    Option          "PrimaryMonitor"            "DFP-0"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    ModelName      "Idek Iiyama PLE2407HDS"
    Option         "DPMS"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "TwinView" "1"
    Option         "TwinViewXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "DFP-0: 1920x1080 +1920+0, DFP-2: 1920x1080 +0+0; DFP-0: 1920x1080 +0+0,NULL"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
sgz

Re: twinview issue switching dual monitor to single monitor

Post by sgz »

found a workaround to switch to true single monitor display, calling :

Code: Select all

xrandr -s 1
This shutdown twinview and I retrieve a real single monitor view without a virtual resolution bigger than display.

To go back to twinview :

Code: Select all

xrandr -s 0
This does not restart X, so every launched application gets back to initial position.
Locked

Return to “MATE”