I’ve had a look around and I’ve found quite a few posts on this topic, but no matter what I try, I can’t get this to work. This is the first time that I’ve given up on a problem and resorted to creating a new post.
I have a laptop (DFP-0) with a docking station and a monitor (DFP-2). I like to use the laptop screen as a second monitor with TwinView. This all worked fine until one day I moved everything into a different room and decided the laptop would go better to the right of the monitor. I managed to swap them around easily enough using Nvidia Settings, but then the panel and desktop icons appeared on the laptop screen rather than the monitor. Clicking on “Make this the primary display for the X screen” solves the problem but only until the next restart, even though I click on “Save to X Configuration File”. When I look at the file (/etc/X11/xorg.conf), it does indeed say “TwinViewXineramaInfoOrder” “DFP-2” and “nvidiaXineramaInfoOrder” “DFP-2”, which means that the monitor (DFP-2) should be the primary display, right? But then when I restart, the panel and desktop icons are back on the laptop screen, and if I go to Nvidia Settings, “Make this the primary display for the X screen” is unchecked again.
I tried changing everything back to how it was before with the laptop on the left, but the problem persisted. Now I don’t care which side it’s on, as long as it works! If the laptop’s set up to be on the right then there’s the additional problem that when I use the laptop away from the docking station, the panel doesn’t appear at all. In other words, when I want it on the monitor, it appears on the laptop screen, and when I want it on the laptop screen, it doesn’t appear at all!
I’ve tried modifying the contents of xorg.conf directly but with no success. I haven’t been brave enough to change very much as I’m scared of completely losing my GUI.
Here’s the “Screen” section of xorg.conf with the laptop set up to be on the left:
Option “TwinView” “1”
Option “TwinViewXineramaInfoOrder” “DFP-2”
Option “Stereo” “0”
Option “nvidiaXineramaInfoOrder” “DFP-2”
Option “metamodes” “DFP-0: 1366x768_60 +0+0, DFP-2: 1920x1200_60 +1366+0; DFP-0: 1366x768_60 +0+0, DFP-2: nvidia-auto-select +1366+0; DFP-0: nvidia-auto-select +0+0, DFP-2: nvidia-auto-select +1366+0; DFP-0: 1366x768_60 +0+0; DFP-0: nvidia-auto-select +0+0”
If the laptop is set up to be on the right, the long line reads:
Option "metamodes" "DFP-0: 1366x768_60 +1920+0, DFP-2: 1920x1200_60 +0+0; DFP-0: 1366x768_60 +1920+0, DFP-2: nvidia-auto-select +0+0; DFP-0: nvidia-auto-select +1920+0, DFP-2: nvidia-auto-select +0+0; DFP-0: 1366x768_60 +0+0; DFP-0: nvidia-auto-select +0+0"
I would add a link to the whole file, but I can’t work out how.
Thanks in advance for any help!