Ubuntu – 14.04 nvidia dual display (external+laptop) stretched display, offset desktop


When I try to attach an external monitor to my laptop, the windows are stretched oddly horizontally and the click offset is off. The nvidia settings also doesn't seem to show the built-in laptop display, but the ubuntu display settings does.

If I add a third monitor, the two external monitors work fine with no stretching or misclicking, but the laptop monitor is blank. I can't drag windows to it but I can move the mouse there.

If I use any monitor by itself, it works fine.

This is a fresh (with the exception of crashplan) install of 14.04.1 LTS x86_64, using the latest tested driver in additional drivers (nvidia-331.113 and nvidia-prime). It's on a Dell M6800 with a Quadro K4100M. Displays are connected via display port from dock.

Since I can't post images, here is an album of screenshots:


update: purging nvidia drivers and using Nouveau works fine, but runs slow.

update: It is related to Nvidia Optimus. Turning that off in the BIOS fixes the issue, though I'd like to be able to switch to my integrated graphics in the future.

Best Answer

The standard Ubuntu NVidia drivers generate some problems on slightly older and slightly newer NVidia hardware.

If you want more then the standard Ubuntu repository drivers, install the xorg.edgers PPA.

sudo apt-add-repository ppa:xorg-edgers/ppa
sudo apt-get update

As the xorg.edgers group ask not to give installation instructions directly without linking to their page, this is the best I can do (for now).

If you don't know what a PPA is or need some guidance after reading their page, leave a comment below.

Related Question