10de:0dfa Desktop/windows painted incorrectly in dual monitor configuration

Bug #1382462 reported by Piotr Kołaczkowski
134
This bug affects 26 people
Affects Status Importance Assigned to Milestone
xorg (Ubuntu)
Expired
Low
Unassigned

Bug Description

My setup: Dell M4600 laptop with Dell U3011 2560x1600 monitor attached to DisplayPort.

I was using Nvidia 331.38 prioprietary driver for quite a long time with Ubuntu 14.04 LTS and everything worked perfectly. Today I upgraded to Ubuntu 14.10, which comes with Nvidia 331.89 and observed the following problem:

1. When I boot up the computer with the monitor connected, the login screen looks fine. Both displays get detected properly and resolutions are ok (1920x1080 on the builtin laptop display and 2560x1600 on U3011) and screen contents scaled properly.

2. Then I log into my account, for 3 seconds U3011 displays some rubbish (but it was always like that) and when it finally logs in, it displays everything stretched horizontally through both my screens. It looks as if it tried to paint the contents of a single display on two of them, by stretching the content horizontally, so everything (icons, windows, wallpaper) has wrong aspect-ratio. Funny, the top status bar seem to render correctly and the resolution/size of the top menu is correct. Physical resolution of both screens is ok. I'll attach a photo, because it is hard to describe how it looks.

3. I cannot use system in this state - mouse click position seems to not be synchronized with what's on the display - e.g. I can start applications, but then they don't react to mouseclicks.

However: booting up without the second display connected, logging in and *then* connecting the second display works fine.

If I boot up with connected monitor and log in (desktop distorted), disconnecting and connecting monitor does *not* help. After disconnecting the U3011, the builtin display is painted ok, but after connecting, it returns back to the incorrect state and both are rendered incorrectly.
The only thing that helps recovering from this state seems to be disconnecting the second monitor, reboot, logging in and then connecting.

Suspending to memory and waking up does not change the layout of the screen (neither fixes the "broken" one nor destroys the "good" one).

Using a Guest session instead of my account does not fix my problem (I was hoping this was something screwed up in my .config).

Switching to a Guest user account while I'm using both monitors in the good layout creates a session with a broken layout. Then logging out from Guest and switching back to my original session restores the good layout. The good layout seems to not be forgotten until I finish the session and logout. The bad layout is "created" whenever I start a new session with both monitors plugged in.

BTW: I'm using a docking station - not sure if it is related - if you think it might be, I can try with connecting the monitor directly.

I tried deleting ~/.compiz and ~/.config/compiz-1 directories but the problem remains.
I also tried to go into the Displays configuration when everything is ok, apply the settings there (without any changes) in hope it will persist them somehow, but after restart it is broken again.

I also tried reinstalling nvidia 331.89 drivers, because it complained about not being able to install nvidia-uvm during the upgrade process (reported separately), and now all nvidia packages installed cleanly. Before that I also got rid of all the ppa mainline kernels I had, just in case they mess something up.

I remember the same problem happened on Ubuntu 14.04 when I tried to upgrade nvidia from ppa/xorg-edgers to 331.89, but then the easy workaround was to downgrade back to official 331.38. Now I have no choice :(

Some other observations that may or may not be related to the problem, but I disclose them anyway, maybe they are helpful:

* Notifications (e.g. network connection) displayed on the login screen in dual screen mode seem to be misplaced and instead of being painted in the upper right corner of one of the displays they get painted in some hard to logically explain position - neither at the center, nor in any corner.

* The splash screen of IntelliJ IDEA (this is using Java / AWT probably) is also rendered in a strange position - below the center of the laptop screen, moved to the right (but not touching the edge), instead of exact center as it should be.

* GMail notification just displayed at the moment when I'm writing it exactly at the left-lower corner of the bigger screen (U3011).

* Nvidia settings lists only U3011 in the list of the devices (attached screenshot).

* Ubuntu Display configuration dialog detects both displays correctly and their positions and resolutions are ok (attached screenshot). However I could not check that when the problem was active.

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: xorg 1:7.7+7ubuntu2
ProcVersionSignature: Ubuntu 3.16.0-22.29-generic 3.16.4
Uname: Linux 3.16.0-22-generic x86_64
NonfreeKernelModules: nvidia
.proc.driver.nvidia.gpus.0: Error: [Errno 21] Is a directory: '/proc/driver/nvidia/gpus/0'
.proc.driver.nvidia.registry: Binary: ""
.proc.driver.nvidia.version:
 NVRM version: NVIDIA UNIX x86_64 Kernel Module 331.89 Tue Jul 1 13:30:18 PDT 2014
 GCC version: gcc version 4.9.1 (Ubuntu 4.9.1-16ubuntu6)
.tmp.unity.support.test.0:

ApportVersion: 2.14.7-0ubuntu7
Architecture: amd64
CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
CompositorRunning: compiz
CompositorUnredirectDriverBlacklist: '(nouveau|Intel).*Mesa 8.0'
CompositorUnredirectFSW: true
CurrentDesktop: Unity
CurrentDmesg: Error: command ['sh', '-c', 'dmesg | comm -13 --nocheck-order /var/log/dmesg -'] failed with exit code 1: comm: /var/log/dmesg: Permission denied
Date: Fri Oct 17 11:02:50 2014
DistUpgraded: 2014-10-17 10:20:38,145 DEBUG enabling apt cron job
DistroCodename: utopic
DistroVariant: ubuntu
ExtraDebuggingInterest: Yes, including running git bisection searches
GraphicsCard:
 Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0126] (rev 09) (prog-if 00 [VGA controller])
   Subsystem: Dell Device [1028:04a3]
 NVIDIA Corporation GF108GLM [Quadro 1000M] [10de:0dfa] (rev a1) (prog-if 00 [VGA controller])
   Subsystem: Dell Device [1028:14a3]
InstallationDate: Installed on 2012-03-21 (939 days ago)
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
MachineType: Dell Inc. Precision M4600
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.16.0-22-generic root=UUID=37dce0bb-1e68-402b-8cba-78a6e04193de ro quiet splash reboot=pci acpi_backlight=vendor resume=UUID=4b9dc764-1ab9-4d9f-b661-1561bfe83648
SourcePackage: xorg
Symptom: display
UpgradeStatus: Upgraded to utopic on 2014-10-17 (0 days ago)
dmi.bios.date: 10/18/2011
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A08
dmi.board.name: 08V9YG
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 9
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvrA08:bd10/18/2011:svnDellInc.:pnPrecisionM4600:pvr01:rvnDellInc.:rn08V9YG:rvrA00:cvnDellInc.:ct9:cvr:
dmi.product.name: Precision M4600
dmi.product.version: 01
dmi.sys.vendor: Dell Inc.
version.compiz: compiz 1:0.9.12+14.10.20140918-0ubuntu1
version.ia32-libs: ia32-libs 20090808ubuntu36
version.libdrm2: libdrm2 2.4.56+git20140920.77dce9a0-0ubuntu0ricotz~trusty
version.libgl1-mesa-dri: libgl1-mesa-dri 10.4.0~git20140925.23247e80-0ubuntu0ricotz~trusty
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 10.4.0~git20140925.23247e80-0ubuntu0ricotz~trusty
version.nvidia-graphics-drivers: nvidia-graphics-drivers N/A
version.xserver-xorg-core: xserver-xorg-core 2:1.16.0-1ubuntu1
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.9.0-1ubuntu2
version.xserver-xorg-video-ati: xserver-xorg-video-ati N/A
version.xserver-xorg-video-intel: xserver-xorg-video-intel N/A
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau N/A

Revision history for this message
Piotr Kołaczkowski (pkolaczk-u) wrote :
Revision history for this message
Piotr Kołaczkowski (pkolaczk-u) wrote :
Revision history for this message
Piotr Kołaczkowski (pkolaczk-u) wrote :
Revision history for this message
Piotr Kołaczkowski (pkolaczk-u) wrote :
description: updated
description: updated
Revision history for this message
Piotr Kołaczkowski (pkolaczk-u) wrote :
description: updated
Revision history for this message
Piotr Kołaczkowski (pkolaczk-u) wrote :
Revision history for this message
Piotr Kołaczkowski (pkolaczk-u) wrote :

By clicking and dragging at the desktop, I found another interesting observation:

Mouse clicks are translated in the following way:
* Y coordinate is always correct.
* X coordinate is only correct if I click on the right edge of U3011 display - then it is mapped to the right edge of the U3011 display.
* If I click near the left edge of U3011 display, but not the launcher, the click is applied to the object displayed at the left edge of the builtin display.
* Wherever I click at the builtin display (which doesn't display the launcher, BTW), the result of the click is not visible (I don't know where it goes).

Knowing this I managed to move windows and open Ubuntu display settings, which are correct. Resolutions and displays relative positions are correct.

I also manged to display a context menu and, *surprise*, it is rendered correctly (no stretching).

To summarize:
- top status bar and menus at the right top corner: OK
- context menus: OK
- launcher: renders OK and operational on U3011, but not displayed on builtin screen
- wallpaper: stretched horizontally across both screens
- windows: stretched horizontally across both screens

I guess the problem with mouse clicks is not that mouse events are broken, but the content of the screen is painted in wrong place. So what was to be painted only on U3011 was stretched and painted on both, and that's why it got out of sync with mouse.

Revision history for this message
Piotr Kołaczkowski (pkolaczk-u) wrote :

Yesterday evening I updated the kernel to 3.16.0-23-generic (tpogether with all the other updates) and the problem still exists.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xorg (Ubuntu):
status: New → Confirmed
Revision history for this message
Piotr Kołaczkowski (pkolaczk-u) wrote :

Installing Nvidia 340.46 driver does not fix the problem (and adds one more - incorrect rendering of menu highlight - but this driver is not officially supported by ubuntu yet, so never mind).

Revision history for this message
eike (eikekuehn42) wrote :

Not sure, I'm right when ticking "This bug affects me too"
I have a similar problem when booting in dual monitor configuration since the upgrade from trusty to utopic:

Configuration:
- ASUS UX31 with an external monitor attached
- no proprietary drivers used
- kernel 3.16.0-23-generic
- Ubuntu Utopic Unicorn
- no dock used

Sequence:
- GRUB2 uses the external monitor, so far so good
- during boot both monitors show activity
- after boot only the external monitor can be used (sometimes!) even though "System Settings" > "Screen Display" marks both monitors as active
- disabling and re-enabling the internal monitor doesn't effect anything
- after rebooting a couple of times dual monitor setup is recognized correctly and both screens are used

Changed in xorg (Ubuntu):
importance: Undecided → High
Revision history for this message
Piotr Kołaczkowski (pkolaczk-u) wrote :

Any updates? This issue is driving me crazy.

A few days ago I had a talk at Cassandra Summit and this bug almost ruined my presentation - it was not possible to use my laptop with an external wide-screen projector through HDMI, somehow the screen distortion problem happened always and I was not able to switch Ubuntu to "screen mirroring mode", becacuse before you connect the second monitor / projector that option is disabled. And although D-sub analog connection worked, the resolution was awfully low (not sure if that was Ubuntu or the D-Sub to DVI adapter problem). Good they had a replacement laptop (a Mac) and we managed to transfer the presantation there.

Revision history for this message
Piotr Kołaczkowski (pkolaczk-u) wrote :
Revision history for this message
Morten Hundevad (fannoj) wrote :

I Think i have the same problem i have no idea how to debug this ...

This is a major pain, is there way to revert to ubuntu 14.04 ?

Revision history for this message
Morten Hundevad (fannoj) wrote :

do anyone know of a unofficial fix ? =//

Revision history for this message
Piotr Kołaczkowski (pkolaczk-u) wrote :

An unofficial (and unacceptable) fix that finally worked for me was.... to switch to Linux Mint 17.1.
It is based on Ubuntu 14.04 LTS, so I wonder what they did better, particularly because they seem to be using exactly the same X org and graphics driver versions.
X.org 1.15.1
Nvidia: 331.113

Not sure of xorg, but nvidia is definitely from the Ubuntu repos.

Things that work correctly now:
- booting the system with the second monitor plugged in
- no strange temporary artifacts/glitches when changing graphics mode during startup of the x session (however, it also takes *longer* for mint to display the desktop, than for Ubuntu)
- booting the system with the laptop lid closed (!) by pressing the docking station power button and using only the big secondary screen (last time I checked this with Ubuntu, I got a permanent system freeze and both screens black)
- plugging/unplugging the laptop multiple times from the docking station with external monitor turned on
- suspending/hibernating, undocking, resuming (it picks up the new screen config after resume just fine)
- suspending/hibernating, docking, resuming

Revision history for this message
Charles Brunet (cbrunet) wrote :

ThinkPad W520 / Nvidia Quatro 1000M.

Similar problem when using Optimus mode in BIOS. DIsplay is fine when booting with Discrete graphics mode.

If I put windows on vertical arrangement, then horizontal resolution is fine and vertical resolution is bad. This is like if it tries to display only the laptop LCD stretched on both screens. However, unity launcher and title bar are displayed correctly.

Revision history for this message
Morten Hundevad (fannoj) wrote :

bump!!!!

Revision history for this message
Morten Hundevad (fannoj) wrote :

not enugh users has this problem for anyone to work on it ?

Revision history for this message
Jens Chorus (jens-chorus) wrote :

I can confirm this bug using Thinkpad T420 with nvidia optimus enabled and proprietary driver. Is there any update on this or any workaround?

Thanks

Revision history for this message
Daniel Günzel (m-daniel-m) wrote :

I have the same problem, also on a T520 on Ubuntu 14.04 with nvidia-331-updates. The nvidia-346 did not improve anything. I do not even have the option to boot on discrete graphics in BIOS since I end up with a black screen.

Revision history for this message
Morten Hundevad (fannoj) wrote :

why unsigned =(

Revision history for this message
Rockwalrus (rockwalrus) wrote :

If I switch WM to sawfish, this problem goes away. Switching back to Unity makes it come back.

Revision history for this message
Rockwalrus (rockwalrus) wrote :

I suspect this is related to #1394665.

Revision history for this message
Rockwalrus (rockwalrus) wrote :

If I set the outputs manually under CCSM using General Options/Display Settings, it displays fine.

Revision history for this message
Morten Hundevad (fannoj) wrote :

@Rockwalrus i would like to try that. can you be a bit more spesefic ? what is CCSM ? i dont see that option or a manual option .. maybe translation is off i am using danish.

-Thanks

Revision history for this message
Morten Hundevad (fannoj) wrote :

well i figured out what you meant by ccsm it is just the manager.. but i am still unable to find the setting you referee to ?

Is it "detect_outputs" ? if so.. what do i need to put in the output array ?

Currently it is:
1680x1050+0+0

left is
1920x1080 (built in)

right is
1920x1200 (external)

I do not know what to put in the array ? i cant find info about it anywhere. and if i change it and reboot or logout and back in .. it seems to be "reset" and not there anymore.

Revision history for this message
Morten Hundevad (fannoj) wrote :

ok i figured out how to use it..

I can confirm that unchecked "detect_outputs"

and configuring "outputs" to match screen revolution. Fix the overlapping issue.

Under ubunto system settings i also had to correct the settings to match config in "outputs"

-Thanks

penalvch (penalvch)
summary: - Desktop/windows painted incorrectly in dual monitor configuration
+ 10de:0dfa Desktop/windows painted incorrectly in dual monitor
+ configuration
tags: added: bios-outdated-a16
no longer affects: unity (Ubuntu)
Revision history for this message
penalvch (penalvch) wrote :

Piotr Kołaczkowski, as per http://www.dell.com/support/home/us/en/dhs/product-support/product/precision-m4600/drivers an update to your computer's buggy and outdated BIOS is available (A16). If you update to this following https://help.ubuntu.com/community/BIOSUpdate does it change anything? If it doesn't, could you please both specify what happened, and provide the output of the following terminal command:
sudo dmidecode -s bios-version && sudo dmidecode -s bios-release-date

For more on BIOS updates and linux, please see https://help.ubuntu.com/community/ReportingBugs#Bug_reporting_etiquette .

Please note your current BIOS is already in the Bug Description, so posting this on the old BIOS would not be helpful. As well, you don't have to create a new bug report.

Once the BIOS is updated, and the information above is provided, then please mark this report Status New.

Thank you for your understanding.

Changed in xorg (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Morten Hundevad (fannoj) wrote :

@penalvch i don't have same computer as him and i have the same compute, tho i still have dell, but i

I have a XPS l7020 and i have the latest bios.

i have attatched image showing my config.

Revision history for this message
Morten Hundevad (fannoj) wrote :

>>>@penalvch i don't have same computer as him and i have the same compute, tho i still have dell, but i

err brain fart i meant

@penalvch i don't have same computer as him and i have the newest bios, tho i still have dell

Revision history for this message
Daniel Günzel (m-daniel-m) wrote :

The ccsm fix does (partly) work. The screen is painted alright, but the mouse lags on the 2nd screen.

Revision history for this message
Morten Hundevad (fannoj) wrote :

I do not have that problem

Revision history for this message
penalvch (penalvch) wrote :

Morten Hundevad, it would help immensely if you filed a new report via a terminal:
ubuntu-bug xorg

Please ensure you have xdiagnose installed, and that you click the Yes button for attaching additional debugging information.

When opening up the new report, please feel free to subscribe me to it.

Revision history for this message
Francisco Gouveia (fgouveia87) wrote :

After days lost with replacing NVidia drivers and manually editing xorg.conf file, I finally found this!

Rockwalrus (rockwalrus) solution works!

On CompizConfig Settings Manager, go to "General Options", then "Display Settings" and do the following:

- Uncheck "Deteck Outputs"
- In the Outputs array, set the resolutions of each of your screens. The numbers after the resolution "1920x1080+0+0" are the offset. It's important to add this offset according to your needs. I have two full HD screens, so I added the following configuration:
1920x1080+0+0
1920x1080+1920+0

The second output has an offset of 1920, because it is on the right side of the first output, which has a width of 1920.

I was hopeless already, what a relief!

Revision history for this message
Francisco Gouveia (fgouveia87) wrote :

It is worth to mention that, with the noveau drivers that come with ubuntu, I didn't have to do any of this. It works out-of-the box (but, with a bad performance - that's why I needed the nvidia drivers).

Revision history for this message
CBrider (zaknafien13) wrote :

I had the same problem with a Dell M6700. The Compiz fix worked for me. It is interesting that I had no problems when connecting to an ASUS monitor at home. When I brought the laptop to my work desk, and connected to a Hyundai monitor (using the same HDMI to DVI cable), the problem would occur.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for xorg (Ubuntu) because there has been no activity for 60 days.]

Changed in xorg (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Gfish (gareth-goldswain) wrote :

Well I had almost given up. 2 weeks of pain, but finally can confirm that Rockwalrus' Compiz fix worked for me.
My setup: Dell Precision M4800 laptop on docking station with 2 x external Dell monitors attached to DisplayPorts.
Attacing ubuntu-bug xorg output for fixed and broken configs.

Revision history for this message
Gfish (gareth-goldswain) wrote :

broken config bug report details attached

Revision history for this message
Gfish (gareth-goldswain) wrote :

working config bug report details attached

Revision history for this message
penalvch (penalvch) wrote :

Gfish, it will be most helpful if you filed a new report via a terminal:
ubuntu-bug xorg

Please ensure you have xdiagnose installed, and that you click the Yes button for attaching additional debugging information.

Please feel free to subscribe me to it.

Revision history for this message
Ahmed Ibrahim (aibrahim) wrote :

I am having the same problem. I am using ThinkPad W530 with Ubuntu 14.04 64 bit and Nvidia driver 331.113
I confirm that the fix of Compiz did fixed my problem.

Revision history for this message
penalvch (penalvch) wrote :

Ahmed Ibrahim, if you would like your issue addressed, please file a new report via a terminal:
ubuntu-bug compiz

Revision history for this message
JGJones (jgjones) wrote :

I have this problem with two HD monitors plugged into the DVI ports on the docking port.

I have a 3rd monitor in the VGA port and on login screen - all 4 displays are showing (including laptop) although moving mouse around does cause some issues.

After logging in - I have two monitors (both HD, in DVI ports), and laptop/VGA is off.

I fixed my issues simply by removing nvidia-settings (sudo apt-get --purge remove nvidia-settings) and doing the rest in Display Settings.

When I had nvidia-settings installed, I often had issues:

1. nvidia-settings will only show two detected monitors (in DVI ports)
2. Display Settings will show 4 displayers (VGA and laptop included) however attempting to change any settings in this cause a lot of problems (ie - it'll freeze for a period of time, mess up the displays etc. After much pain I managed to disable laptop and VGA via this and it worked then)

However after I removed nvidia-settings:

Display Settings work just fine and show two monitors only (both DVI) and work perfectly.

So it appears that nvidia-settings is somehow conflicting with Display Settings in this particular case. My solution was simply to just uninstall nvidia-settings and it works.

I hope this works for others - if you could confirm the same thing?

Thanks!

Revision history for this message
penalvch (penalvch) wrote :

JGJones, it will help immensely if you filed a new report with Ubuntu via a terminal:
ubuntu-bug xorg

Please ensure you have the package xdiagnose installed, and that you click the Yes button for attaching additional debugging information.

Also, please feel free to subscribe me to it.

For more on why this is helpful, please see https://wiki.ubuntu.com/ReportingBugs.

sjp333 (sjp1796)
Changed in xorg (Ubuntu):
status: Expired → New
Revision history for this message
penalvch (penalvch) wrote :

sjp333, it will help immensely if you filed a new report with Ubuntu by ensuring you have the package xdiagnose installed, and that you click the Yes button for attaching additional debugging information running the following from a terminal:
ubuntu-bug xorg

Also, please feel free to subscribe me to it.

For more on why this is helpful, please see https://wiki.ubuntu.com/ReportingBugs.

Changed in xorg (Ubuntu):
importance: High → Low
status: New → Incomplete
Revision history for this message
sjp333 (sjp1796) wrote :

https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/1543872. I ran it after the bug occured and I was able to stablize the system.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for xorg (Ubuntu) because there has been no activity for 60 days.]

Changed in xorg (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.