DisplayLink displays are black after Mesa update

Bug #1931547 reported by Łukasz Spintzyk
54
This bug affects 9 people
Affects Status Importance Assigned to Milestone
X.Org X server
Fix Released
Unknown
xorg-server (Ubuntu)
Fix Released
High
Timo Aaltonen
Focal
Fix Released
Undecided
Timo Aaltonen
Hirsute
Fix Released
Undecided
Timo Aaltonen
Impish
Fix Released
High
Timo Aaltonen

Bug Description

[Impact]

On Mesa versions before 21.0.x glamor_egl_init failed which then (luckily)
disabled reverse_prime_offload_mode. But now with the new Mesa the GL_RENDERER has changed and glamor_egl_init succeeds and then enables reverse_prime_offload_mode. This backported commit disables reverse_prime_offload_mode for good for DisplayLink (udl, evdi) devices.

[Test case]

Update xserver, check that DisplayLink device (udl and/or evdi as available) works fine.

[Where things could go wrong]
This commit only disables reverse_prime_offload_mode for udl, evdi devices, other devices will not be affected.

'udl' is used by old USB2 based DisplayLink devices that have a native kernel driver
'evdi' is used by newer USB3 based devices that use an out-of-tree driver provided by Displaylink

both need the same change, as they are otherwise similar

at least evdi devices (as found on some laptop docks) have been tested to work with this

--

Please incorporate xorg-server fix for issue:
https://gitlab.freedesktop.org/xorg/xserver/-/issues/1183

It was already merged in to xserver master and xserver-1.20-branch branches.
https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/681
https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/683

This is reported by our users reports on Ubuntu 20.10 with Xserver-1.20.9
and on Ubuntu 21.04 with XServer-1.20.11

If it is required i am willing to help with anything.

affects: mokutil (Ubuntu) → xorg-server (Ubuntu)
tags: added: displaylink hirsute
tags: added: impish
tags: added: fixed-in-1.20.12 fixed-upstream
tags: added: fixed-in-1.21
Changed in xorg-server (Ubuntu):
importance: Undecided → High
status: New → Triaged
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Note we may skip 20.10 because it is EOL next month.

Revision history for this message
cement_head (andorjkiss) wrote :

Please DO NOT skip 20.04 HWE (Kernel 5.11.x +) as many us use only LTS releases. This particularly affects System76 users, who are all on 5.11 series kernels with 20.04 and Pop_OS 20.04 and higher.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Nobody was talking about skipping 20.04, only 20.10 which reaches end-of-life next month.

  https://wiki.ubuntu.com/Releases

Anyway, I'm not working on this bug so it's not up to me.

Revision history for this message
Igor Lopez (igor-lopez) wrote :

I might be affected by this and am willing to test if it solves my problem.
What happened was that about maybe two weeks ago the DisplayPorts from my DELL D6000 Dock stopped working (but works when connecting a Windows Laptop)
Where do I find instructions on testing?

Revision history for this message
cement_head (andorjkiss) wrote :

Looks like this is in the master for XOrg server: https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/683

Can some build this for Ubuntu 20.04 LTS?

Or provide instructions (link) on how I can do it?

Revision history for this message
Iain Lane (laney) wrote :

Timo, please can you take care of this one, sounds like a regression?

Changed in xorg-server (Ubuntu):
assignee: nobody → Timo Aaltonen (tjaalton)
Changed in xorg-server (Ubuntu Focal):
assignee: nobody → Timo Aaltonen (tjaalton)
Changed in xorg-server (Ubuntu Hirsute):
assignee: nobody → Timo Aaltonen (tjaalton)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Probably zero effort required. We'll get the fix in the next point release: 1.20.12

Revision history for this message
cement_head (andorjkiss) wrote :

@vanvugt What's the ETA for the point release?

Revision history for this message
cement_head (andorjkiss) wrote :

Any chance of getting this patched before the end of time?

Revision history for this message
cement_head (andorjkiss) wrote :

Here's the comment by a Hirsute user - the newest XServer package fixes the issue: https://github.com/DisplayLink/evdi/issues/279

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

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

Changed in xorg-server (Ubuntu Focal):
status: New → Confirmed
Changed in xorg-server (Ubuntu Hirsute):
status: New → Confirmed
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

1.20.12 should arrive soon, but I'll include the patch in the meantime

Timo Aaltonen (tjaalton)
description: updated
Timo Aaltonen (tjaalton)
description: updated
Revision history for this message
Robie Basak (racb) wrote : Please test proposed package

Hello Łukasz, or anyone else affected,

Accepted xorg-server into hirsute-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/xorg-server/2:1.20.11-1ubuntu1.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-hirsute to verification-done-hirsute. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-hirsute. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in xorg-server (Ubuntu Hirsute):
status: Confirmed → Fix Committed
tags: added: verification-needed verification-needed-hirsute
Changed in xorg-server (Ubuntu Focal):
status: Confirmed → Fix Committed
tags: added: verification-needed-focal
Revision history for this message
Robie Basak (racb) wrote :

Hello Łukasz, or anyone else affected,

Accepted xorg-server into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/xorg-server/2:1.20.11-1ubuntu1~20.04.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Also Fix Committed to impish:

xorg-server (2:1.20.11-1ubuntu2) impish; urgency=medium

Changed in xorg-server (Ubuntu Impish):
status: Triaged → Fix Committed
Revision history for this message
Ubuntu SRU Bot (ubuntu-sru-bot) wrote : Autopkgtest regression report (xorg-server/2:1.20.11-1ubuntu1.1)

All autopkgtests for the newly accepted xorg-server (2:1.20.11-1ubuntu1.1) for hirsute have finished running.
The following regressions have been reported in tests triggered by the package:

libsoup2.4/2.72.0-3 (armhf)
aptdaemon/1.1.1+bzr982-0ubuntu36 (amd64, s390x, ppc64el)
gscan2pdf/2.11.0-1 (s390x)

Please visit the excuses page listed below and investigate the failures, proceeding afterwards as per the StableReleaseUpdates policy regarding autopkgtest regressions [1].

https://people.canonical.com/~ubuntu-archive/proposed-migration/hirsute/update_excuses.html#xorg-server

[1] https://wiki.ubuntu.com/StableReleaseUpdates#Autopkgtest_Regressions

Thank you!

Revision history for this message
Łukasz Spintzyk (lspintzy) wrote :

I have installed proposed focal package on Pop!_OS 20.10 - derivative of groovy
Issue is gone all works fine.
Added tag verification-done-focal

tags: added: verification-done-focal
removed: verification-needed-focal
Revision history for this message
Łukasz Spintzyk (lspintzy) wrote :

I have installed proposed hiruste packege on Ubuntu 21.04.
Package works fine, DisplayLink displays are working.

tags: added: verification-done-hirsute
removed: verification-needed-hirsute
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

thanks for testing, was this with evdi/udl or both?

Revision history for this message
Łukasz Spintzyk (lspintzy) wrote :

Yes.

Revision history for this message
Ubuntu SRU Bot (ubuntu-sru-bot) wrote : Autopkgtest regression report (xorg-server/2:1.20.11-1ubuntu1~20.04.2)

All autopkgtests for the newly accepted xorg-server (2:1.20.11-1ubuntu1~20.04.2) for focal have finished running.
The following regressions have been reported in tests triggered by the package:

gtk+3.0/3.24.20-0ubuntu1 (s390x)
notepadqq/2.0.0~beta1-1build1 (armhf)
apport/2.20.11-0ubuntu27.18 (amd64)
saods9/8.1+repack-1 (amd64)
xmobar/0.29.4-2build3 (arm64)
bambam/1.0.1+dfsg-1 (armhf)

Please visit the excuses page listed below and investigate the failures, proceeding afterwards as per the StableReleaseUpdates policy regarding autopkgtest regressions [1].

https://people.canonical.com/~ubuntu-archive/proposed-migration/focal/update_excuses.html#xorg-server

[1] https://wiki.ubuntu.com/StableReleaseUpdates#Autopkgtest_Regressions

Thank you!

Revision history for this message
cement_head (andorjkiss) wrote :

Fixed for me running Ubuntu 20.04 LTS with System76 PPAs, Kernel 5.11 & MESA 21.0

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

This bug was fixed in the package xorg-server - 2:1.20.11-1ubuntu2

---------------
xorg-server (2:1.20.11-1ubuntu2) impish; urgency=medium

  * modesetting-disable-reverse-prime-offload-udl.diff: Fix a regression
    on displaylink devices after mesa update. (LP: #1931547)

 -- Timo Aaltonen <email address hidden> Tue, 06 Jul 2021 13:17:51 +0300

Changed in xorg-server (Ubuntu Impish):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for xorg-server has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

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

This bug was fixed in the package xorg-server - 2:1.20.11-1ubuntu1.1

---------------
xorg-server (2:1.20.11-1ubuntu1.1) hirsute; urgency=medium

  * modesetting-disable-reverse-prime-offload-udl.diff: Fix a regression
    on displaylink devices after mesa update. (LP: #1931547)

 -- Timo Aaltonen <email address hidden> Tue, 06 Jul 2021 13:17:51 +0300

Changed in xorg-server (Ubuntu Hirsute):
status: Fix Committed → Fix Released
Revision history for this message
Svavar Kjarrval (svavar-kjarrval) wrote :

I was having problems for some time entailing that an empty screen (or a black screen with one underscore character on top-left) appeared when Ubuntu loaded the graphics driver, in my case nVidia, which made me unable to enter X without the Nouveau driver active. This patch seems to have fixed it.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

You might have been experiencing bug 1935818 and received the fix for that automatically this week.

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

This bug was fixed in the package xorg-server - 2:1.20.11-1ubuntu1~20.04.2

---------------
xorg-server (2:1.20.11-1ubuntu1~20.04.2) focal; urgency=medium

  * modesetting-disable-reverse-prime-offload-udl.diff: Fix a regression
    on displaylink devices after mesa update. (LP: #1931547)

xorg-server (2:1.20.11-1ubuntu1~20.04.1) focal; urgency=medium

  * Backport to focal. (LP: #1925320)
    - don't disable building xwayland

 -- Timo Aaltonen <email address hidden> Tue, 06 Jul 2021 13:17:51 +0300

Changed in xorg-server (Ubuntu Focal):
status: Fix Committed → Fix Released
Mathew Hodson (mhodson)
tags: added: patch-accepted-upstream
removed: fixed-upstream verification-needed
tags: added: regression-update
Changed in xorg-server:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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