FS#58895 - [xorg-server] External monitor doesn't work since update to 1.20.0

Attached to Project: Arch Linux
Opened by Jorge Luis Martinez Gomez (jol) - Wednesday, 06 June 2018, 17:57 GMT
Last edited by Andreas Radke (AndyRTR) - Wednesday, 05 September 2018, 06:15 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Andreas Radke (AndyRTR)
Laurent Carlier (lordheavy)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 5
Private No

Details

Description:

Since the update of xorg-server from 1.19.6+13+gd0d1a694f-2 to 1.20.0-2, my monitor connected via VGA to an Nvidia card displays only the mouse but no windows. If I downgrade, I can create or drag windows into the monitor without any problems.

My setup is 1 monitor connected via VGA directly to motherboard to use intel's integrated graphics, and another monitor also connected via VGA to an Nvidia graphics card. I don't use a display manager. It's just `startx` at the tty1 prompt after logging in with getty. My window manager is i3, but this also happens with fluxbox. I haven't tried other window managers.

I wanted to attach a screenshot of the bug, but it turns out that, at least as captured by maim, everything looks fine. Therefore, I took a photo with my cellphone of the border between the 2 monitors with a window and mouse in between, and showing the mouse on both monitors, but not the window. I also set the root window color to blue to see if that was displayed on the external monitor, but it stayed black. The photo is attached.

Additional info:
* package version(s)

What doesn't work (these are the latest as of this writing, but it ceased to work since I tried updating when xorg-server was 1.20.0-2. I haven't tried building 1.20.0-1 and the corresponding xf86-video packages, but it should be the same):

- xorg-server: 1.20.0-5
- xf86-video-intel: 1:2.99.917+831+ge7bfc906-1
- xf86-video-nouveau: 1.0.15-3

What does work:

- xorg-server: 1.19.6+13+gd0d1a694f-2
- xf86-video-intel: 1:2.99.917+829+gd7dfab62-1
- xf86-video-nouveau: 1.0.15-2

* config and/or log files etc.

Of these packages, I have some configuration files in /etc/X11/xorg.conf.d/ for the keyboard and synaptics, but nothing pertaining to monitors or displays. I can attach on request.

I also have an .xinitrc, but this bug happens even with that configuration disabled.

I've attached the log of the failing Xorg.

Steps to reproduce:

1. Have 1 monitor connected via VGA to motherboard to use Intel's integrated graphics
2. Have another monitor connected via VGA to an Nvidia card
3. On a linux console like /dev/tty1, `startx /usr/bin/i3` or to another window manager (I checked and it also happens on fluxbox)
4. Enable the monitor connected to the card via `xrandr --output VGA-1-2 --auto --right-of VGA1` or similar
5. Try to move a window to the other monitor. Only the mouse will appear.
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Wednesday, 05 September 2018, 06:15 GMT
Reason for closing:  Fixed
Additional comments about closing:  patch applied
Comment by Jorge Luis Martinez Gomez (jol) - Wednesday, 06 June 2018, 18:01 GMT
The photo seems to have not been accepted, probably because of the size. I try to attach it again, here.
Comment by Jorge Luis Martinez Gomez (jol) - Wednesday, 06 June 2018, 18:17 GMT
The card is an Nvidia N8400GS-D512H.
Comment by loqs (loqs) - Wednesday, 06 June 2018, 18:38 GMT
Please try the following:
xf86-video-nouveau and any config references to it
xorg-server: 1.20.0-6 from testing
https://bbs.archlinux.org/viewtopic.php?pid=1786538#p1786538
https://bbs.archlinux.org/viewtopic.php?pid=1788096#p1788096
Comment by Jorge Luis Martinez Gomez (jol) - Wednesday, 06 June 2018, 18:39 GMT
On what I tried, 1.19.6+13+gd0d1a694f-2 had a patch that seems relevant to Nvidia but was removed in 1.20.0-1[1]. I tried to re-include it, but it seems it can't be applied to 1.20.0. Through git, I tried to resolve the resulting conflicts, but it seems they're due to the patch having already been integrated into the project, only with some modifications. Next time I have free time, I'll try to take a closer look at how the patch was integrated into the project, but that's probably going to be a while. That's why I'm posting this bug report, to see if anyone can help locate the source of bug. It might not even be because of the patch.

[1] https://git.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/xorg-server&id=42bf42476cf05ea49c54ddb5d5ba62179e68b45d
Comment by Jorge Luis Martinez Gomez (jol) - Wednesday, 06 June 2018, 18:50 GMT
I just built, installed, and tried 1.20.0-6, with the latest xf86-video-{intel,nouveau} packages and it had the same failure. I'm not sure what you meant by "and any config references to it," but I don't have any custom configuration specifically for xf86-video-nouveau.
Comment by loqs (loqs) - Wednesday, 06 June 2018, 19:02 GMT
I meant any config references to the driver nouveau that might cause X to fail with the removal of xf86-video-nouveau.
Comment by Jorge Luis Martinez Gomez (jol) - Wednesday, 06 June 2018, 19:13 GMT
I see, but yeah, I don't have any custom configuration that refers to nouveau. In /etc/X11/xorg.conf.d/, I have some configuration for the keyboard and synaptics, but that's all.
Comment by Bastian Beranek (totsilence) - Friday, 08 June 2018, 11:39 GMT
I'm quite confident that this bug is real and I see the same issues. I tried to bring this upstream as well, but there is confusion against which component the bug should be reported, etc.

https://bugs.freedesktop.org/show_bug.cgi?id=105812
https://bugs.freedesktop.org/show_bug.cgi?id=100086

The latter one refers to a crash that was fixed in a later 1.19.x release, but I think the related problem has arisen in 1.20 where the corresponding revert wasn't applied. The symptoms are different because there is no crash, but the dev has acknowledged that the xf86-video-intel driver needs a change which hasn't happened yet.
Comment by Peter Wu (Lekensteyn) - Tuesday, 14 August 2018, 09:02 GMT
The logs posted by Jorge contains "intel(0)" which suggests that the xf86-video-intel module is in use, thus the first link seems more appropriate: https://bugs.freedesktop.org/show_bug.cgi?id=100086

Please try the attached patch to xf86-video-intel (posted upstream and linked in the above bug). With 2.99.917-842-g3d395062 + that patch, multi monitor works again for me.
Comment by Jorge Luis Martinez Gomez (jol) - Friday, 17 August 2018, 15:45 GMT
I just tested the SNA patch Peter Wu shared and can confirm it works. :)
Comment by due11e (due11e) - Tuesday, 04 September 2018, 22:44 GMT
I can also confirm that installing xf86-video-intel built with the patch provided by Peter Wu seems to resolve the issue.

Loading...