Ubuntu – Dual Monitor Setup, One Monitor has Double Width and scrolls into other monitor

multiple-monitorsresolutionxrandr

I've looked around and cannot find this issue anywhere…

So I have a two-monitor setup on my Ubunutu 14.04 desktop. I had just solved a strange mouse issue by switching to Proprietary NVIDIA drivers for my video card through the software & updates tool, and rebooted my computer. I fixed the issue but a new one came up for me.

I have a two-monitor setup, both are 1920×1080 resolution. They both seem to do what they should, but when I attempt to move my mouse to the screen on the right, my left monitor scrolls right along with it. I don't know quite how to describe it but when I move my mouse all the way to the right, I end up having a mirrored display! Then, when I move the mouse back to the left, the left monitor scrolls back until it's back to two separate monitors.

Whenever I start any program, the window appears in the middle, straddling the two screens. It leads me to believe somehow the left screen's resolution got set too high, but when I look in System Settings under Display, the resolution on both of them is the same, 1920 x 1080. Not really sure why this is. The right screen behaves perfectly as it should.

UPDATE: After fiddling with xrandr settings, I've determined that I want to have two 1920×1080 screens acting like one 3840×1080 desktop, with no panning on either monitor. I am currently stymied by how to accomplish this (I'm very new to xrandr). The commands I've been trying are mostly variations on:

xrandr --output DVI-I-0 --size 1920x1080+1920 --panning 1920x1080 --output HDMI1 --size 1920x1080+1920 --panning 1920x1080

DVI-I-0 is my left (and primary) monitor; HDMI1 is my right one.

I have no idea if this will help, but here's the output of xrandr:

    Screen 0: minimum 8 x 8, current 3840 x 1080, maximum 16384 x 16384
DVI-I-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 521mm x 293mm panning 3840x1080+0+0
   1920x1080      60.0*+   59.9     50.0     60.1     60.0     50.0  
   1680x1050      60.0  
   1600x1200      60.0  
   1440x900       59.9  
   1280x1024      75.0     60.0  
   1280x720       60.0     59.9     50.0  
   1024x768       75.0     60.0  
   800x600        75.0     60.3  
   720x576        50.0     50.1  
   720x480        59.9     60.1  
   640x480        75.0     59.9     59.9  
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-0 disconnected (normal left inverted right x axis y axis)
DVI-D-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
VGA1 disconnected
HDMI1 connected 1920x1080+0+0 509mm x 286mm panning 1920x1080+0+0
   1920x1080      60.0*+
   1680x1050      59.9  
   1280x1024      75.0     60.0  
   1440x900       59.9  
   1280x960       60.0  
   1280x800       59.9  
   1152x864       75.0  
   1280x720       60.0  
   1024x768       75.1     70.1     60.0  
   832x624        74.6  
   800x600        72.2     75.0     60.3     56.2  
   640x480        75.0     66.7     60.0  
   720x400        70.1  
HDMI2 disconnected
HDMI3 disconnected
VIRTUAL1 disconnected
  1920x1080 (0x49)  148.5MHz
        h: width  1920 start 2008 end 2052 total 2200 skew    0 clock   67.5KHz
        v: height 1080 start 1084 end 1089 total 1125           clock   60.0Hz
  1280x1024 (0x2c2)  135.0MHz
        h: width  1280 start 1296 end 1440 total 1688 skew    0 clock   80.0KHz
        v: height 1024 start 1025 end 1028 total 1066           clock   75.0Hz
  1280x1024 (0x2c3)  108.0MHz
        h: width  1280 start 1328 end 1440 total 1688 skew    0 clock   64.0KHz
        v: height 1024 start 1025 end 1028 total 1066           clock   60.0Hz
  1024x768 (0x2c8)   65.0MHz
        h: width  1024 start 1048 end 1184 total 1344 skew    0 clock   48.4KHz
        v: height  768 start  771 end  777 total  806           clock   60.0Hz
  800x600 (0x2c9)   49.5MHz
        h: width   800 start  816 end  896 total 1056 skew    0 clock   46.9KHz
        v: height  600 start  601 end  604 total  625           clock   75.0Hz
  800x600 (0x2ca)   40.0MHz
        h: width   800 start  840 end  968 total 1056 skew    0 clock   37.9KHz
        v: height  600 start  601 end  605 total  628           clock   60.3Hz
  640x480 (0x2cf)   31.5MHz
        h: width   640 start  656 end  720 total  840 skew    0 clock   37.5KHz
        v: height  480 start  481 end  484 total  500           clock   75.0Hz

Best Answer

I've figured out what was wrong after trying a few things. I had to plug both monitors into the same kind of port, on the same graphics card. I had a hard time digging up the cables at home but once I got my hands on a pair of HDMI cables, I was able to set up the monitors correctly without much trouble.

It seems obvious now in retrospect but this didn't occur to me, especially since my Windows install on the same machine seemed to handle the original setup (two types of ports, two different devices) well enough. This makes perfect sense though.