Bug 414803 - Losing/corrupted multi-monitor configuration with TB 3.0 dock
Summary: Losing/corrupted multi-monitor configuration with TB 3.0 dock
Status: RESOLVED FIXED
Alias: None
Product: KScreen
Classification: Plasma
Component: common (show other bugs)
Version: 5.16.5
Platform: Fedora RPMs Linux
: NOR grave
Target Milestone: 1.0
Assignee: kscreen-bugs-null@kde.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-03 19:10 UTC by Arcadiy Ivanov
Modified: 2022-11-09 21:08 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arcadiy Ivanov 2019-12-03 19:10:57 UTC
I'm on a laptop (Dell Precision 5540, Intel + NVidia w/Optimus) that plugs into Dell WD19TB dock that is hooked up to 2x4k monitors. I am plagued by constant failures to configure/restore monitor configuration. 

The topology is usually in a form of DP2(4K@60Hz) + DP1-1(4K@60Hz) + eDP1 (1080P@60Hz). 


The scenario usually goes like this:

1. Laptop is plugged into the TB dock. Displays are adjusted to desired configuration.
2. Laptop is unplugged, used with eDP1.
3. Laptop is plugged back into the TB dock. 

After #3 there are the following scenarios:

a. Configuration and layout restores.
b. Configuration and layout restores, but one of the monitors fails to turn on, the framebuffer seems to indicate that it is turned on properly but monitor shows up as not enabled and checking enable and clicking apply does nothing.
c. Both external monitors fail to turn on, enabling them in Displays fails completely: Enable boxes are cleared after apply, there isn't even an attempt to enable them, framebuffer is seemingly adjusted as if they were enabled (but sometimes not).


I'm sick and tired of this to the point I'm willing to debug and fix this myself (looks like timings etc and improper xrandr commands issued).

Can someone please advise me which modules I need to look at and how to enable debug logging for monitor configuration?

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 31
(available in About System)
KDE Plasma Version: 5.16.5 
KDE Frameworks Version: 5.64.0
Qt Version: 5.12.5

Possibly related to 365213
Comment 1 Nate Graham 2021-08-16 23:41:36 UTC
If monitors aren't turning on or being recognized, the action is all going to be in KScreen. Moving there.
Comment 2 Nate Graham 2022-11-08 22:12:00 UTC
Thank you for the bug report. Unfortunately we were not able to get to it yet. Can we ask you to please check if this is still an issue with Plasma 5.25 or 5.26?

If it is, please change the status to CONFIRMED when replying. If not, or if you can't because you no longer use this setup, you can change the status to RESOLVED WORKSFORME. Thanks a lot!
Comment 3 Arcadiy Ivanov 2022-11-09 02:39:39 UTC
This issue still happens occasionally.

This is a working configuration. Once I bump into an issue of it no longer working I'll post it in the broken configuration:

$ kscreen-doctor -o
Output: 67 eDP1 enabled connected primary Panel Modes: 76:1920x1080@60! 1408:1920x1080@60* 1409:1680x1050@60 1410:1400x1050@60 1411:1600x900@60 1412:1600x900@60 1413:1600x900@60 1414:1280x1024@60 1415:1400x900@60 1416:1400x900@60 1417:1280x960@60 1418:1368x768@60 1419:1368x768@60 1420:1368x768@60 1421:1280x800@60 1422:1280x800@60 1423:1280x720@60 1424:1280x720@60 1425:1280x720@60 1426:1024x768@60 1427:1024x576@60 1428:1024x576@60 1429:1024x576@60 1430:960x540@60 1431:960x540@60 1432:960x540@60 1433:800x600@60 1434:800x600@56 1435:864x486@60 1436:864x486@60 1437:864x486@60 1438:640x480@60 1439:720x405@60 1440:720x405@60 1441:720x405@59 1442:640x360@60 1443:640x360@59 1444:640x360@60 Geometry: 2160,2760 1920x1080 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown primary
Output: 68 DP1 disabled disconnected  DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown 
Output: 69 DP1-1 disabled disconnected  DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown 
Output: 70 DP1-2 enabled connected  DisplayPort Modes: 77:1920x1080@60 1414:1280x1024@60 1421:1280x800@60 1426:1024x768@60 1433:800x600@60 1434:800x600@56 1438:640x480@60 1445:3840x2160@60*! 1446:3840x2160@30 1447:3840x2160@30 1448:2560x1440@60 1449:1920x1080@60 1450:1680x1050@60 1451:1600x900@60 1452:1280x1024@75 1453:1440x900@60 1454:1152x864@75 1455:1280x720@60 1456:1280x720@60 1457:1024x768@75 1458:1024x768@70 1459:832x624@75 1460:800x600@72 1461:800x600@75 1462:640x480@75 1463:640x480@73 1464:640x480@67 1465:640x480@60 1466:720x400@70 Geometry: 0,0 2160x3840 Scale: 1 Rotation: 8 Overscan: 0 Vrr: incapable RgbRange: unknown 
Output: 71 DP1-3 disabled disconnected  DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown 
Output: 72 DP2 enabled connected  DisplayPort Modes: 77:1920x1080@60 1414:1280x1024@60 1421:1280x800@60 1426:1024x768@60 1433:800x600@60 1434:800x600@56 1438:640x480@60 1446:3840x2160@30 1447:3840x2160@30 1448:2560x1440@60 1449:1920x1080@60 1450:1680x1050@60 1451:1600x900@60 1452:1280x1024@75 1453:1440x900@60 1454:1152x864@75 1455:1280x720@60 1456:1280x720@60 1457:1024x768@75 1458:1024x768@70 1459:832x624@75 1460:800x600@72 1461:800x600@75 1462:640x480@75 1463:640x480@73 1464:640x480@67 1465:640x480@60 1466:720x400@70 1467:3840x2160@60*! Geometry: 2160,600 3840x2160 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown 
Output: 73 DP3 disabled disconnected  DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown 
Output: 74 VIRTUAL1 disabled disconnected  Unknown Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Comment 4 Arcadiy Ivanov 2022-11-09 16:35:20 UTC
Just lost configuration again:

$ kscreen-doctor -o
Output: 67 eDP1 enabled connected primary Panel Modes: 76:1920x1080@60! 1408:1920x1080@60* 1409:1680x1050@60 1410:1400x1050@60 1411:1600x900@60 1412:1600x900@60 1413:1600x900@60 1414:1280x1024@60 1415:1400x900@60 1416:1400x900@60 1417:1280x960@60 1418:1368x768@60 1419:1368x768@60 1420:1368x768@60 1421:1280x800@60 1422:1280x800@60 1423:1280x720@60 1424:1280x720@60 1425:1280x720@60 1426:1024x768@60 1427:1024x576@60 1428:1024x576@60 1429:1024x576@60 1430:960x540@60 1431:960x540@60 1432:960x540@60 1433:800x600@60 1434:800x600@56 1435:864x486@60 1436:864x486@60 1437:864x486@60 1438:640x480@60 1439:720x405@60 1440:720x405@60 1441:720x405@59 1442:640x360@60 1443:640x360@59 1444:640x360@60 Geometry: 2160,2760 1920x1080 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown primary
Output: 68 DP1 disabled disconnected  DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown 
Output: 69 DP1-1 disabled disconnected  DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown 
Output: 70 DP1-2 disabled connected  DisplayPort Modes: 77:1920x1080@60 1414:1280x1024@60 1421:1280x800@60 1426:1024x768@60 1433:800x600@60 1434:800x600@56 1438:640x480@60 1445:3840x2160@60! 1446:3840x2160@30 1447:3840x2160@30 1448:2560x1440@60 1449:1920x1080@60 1450:1680x1050@60 1451:1600x900@60 1452:1280x1024@75 1453:1440x900@60 1454:1152x864@75 1455:1280x720@60 1456:1280x720@60 1457:1024x768@75 1458:1024x768@70 1459:832x624@75 1460:800x600@72 1461:800x600@75 1462:640x480@75 1463:640x480@73 1464:640x480@67 1465:640x480@60 1466:720x400@70 Geometry: 0,0 3840x2160 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown 
Output: 71 DP1-3 disabled disconnected  DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown 
Output: 72 DP2 enabled connected  DisplayPort Modes: 77:1920x1080@60 1414:1280x1024@60 1421:1280x800@60 1426:1024x768@60 1433:800x600@60 1434:800x600@56 1438:640x480@60 1446:3840x2160@30 1447:3840x2160@30 1448:2560x1440@60 1449:1920x1080@60 1450:1680x1050@60 1451:1600x900@60 1452:1280x1024@75 1453:1440x900@60 1454:1152x864@75 1455:1280x720@60 1456:1280x720@60 1457:1024x768@75 1458:1024x768@70 1459:832x624@75 1460:800x600@72 1461:800x600@75 1462:640x480@75 1463:640x480@73 1464:640x480@67 1465:640x480@60 1466:720x400@70 1467:3840x2160@60*! Geometry: 2160,600 3840x2160 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown 
Output: 73 DP3 disabled disconnected  DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown 
Output: 74 VIRTUAL1 disabled disconnected  Unknown Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Comment 5 Arcadiy Ivanov 2022-11-09 16:36:13 UTC
Configuration restored manually:

$ kscreen-doctor -o
Output: 67 eDP1 enabled connected primary Panel Modes: 76:1920x1080@60! 1408:1920x1080@60* 1409:1680x1050@60 1410:1400x1050@60 1411:1600x900@60 1412:1600x900@60 1413:1600x900@60 1414:1280x1024@60 1415:1400x900@60 1416:1400x900@60 1417:1280x960@60 1418:1368x768@60 1419:1368x768@60 1420:1368x768@60 1421:1280x800@60 1422:1280x800@60 1423:1280x720@60 1424:1280x720@60 1425:1280x720@60 1426:1024x768@60 1427:1024x576@60 1428:1024x576@60 1429:1024x576@60 1430:960x540@60 1431:960x540@60 1432:960x540@60 1433:800x600@60 1434:800x600@56 1435:864x486@60 1436:864x486@60 1437:864x486@60 1438:640x480@60 1439:720x405@60 1440:720x405@60 1441:720x405@59 1442:640x360@60 1443:640x360@59 1444:640x360@60 Geometry: 2160,2760 1920x1080 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown primary
Output: 68 DP1 disabled disconnected  DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown 
Output: 69 DP1-1 disabled disconnected  DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown 
Output: 70 DP1-2 enabled connected  DisplayPort Modes: 77:1920x1080@60 1414:1280x1024@60 1421:1280x800@60 1426:1024x768@60 1433:800x600@60 1434:800x600@56 1438:640x480@60 1445:3840x2160@60*! 1446:3840x2160@30 1447:3840x2160@30 1448:2560x1440@60 1449:1920x1080@60 1450:1680x1050@60 1451:1600x900@60 1452:1280x1024@75 1453:1440x900@60 1454:1152x864@75 1455:1280x720@60 1456:1280x720@60 1457:1024x768@75 1458:1024x768@70 1459:832x624@75 1460:800x600@72 1461:800x600@75 1462:640x480@75 1463:640x480@73 1464:640x480@67 1465:640x480@60 1466:720x400@70 Geometry: 0,0 2160x3840 Scale: 1 Rotation: 8 Overscan: 0 Vrr: incapable RgbRange: unknown 
Output: 71 DP1-3 disabled disconnected  DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown 
Output: 72 DP2 enabled connected  DisplayPort Modes: 77:1920x1080@60 1414:1280x1024@60 1421:1280x800@60 1426:1024x768@60 1433:800x600@60 1434:800x600@56 1438:640x480@60 1446:3840x2160@30 1447:3840x2160@30 1448:2560x1440@60 1449:1920x1080@60 1450:1680x1050@60 1451:1600x900@60 1452:1280x1024@75 1453:1440x900@60 1454:1152x864@75 1455:1280x720@60 1456:1280x720@60 1457:1024x768@75 1458:1024x768@70 1459:832x624@75 1460:800x600@72 1461:800x600@75 1462:640x480@75 1463:640x480@73 1464:640x480@67 1465:640x480@60 1466:720x400@70 1467:3840x2160@60*! Geometry: 2160,600 3840x2160 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown 
Output: 73 DP3 disabled disconnected  DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown 
Output: 74 VIRTUAL1 disabled disconnected  Unknown Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Comment 6 Nate Graham 2022-11-09 20:52:41 UTC
Thanks. diffing those outputs reveals that the DP1-2 output has changed from "enabled connected" to "disabled connected".

Are you using X11 or Wayland? If you're using X11, then this is bug 460341, and I suspect the original issue was fixed and replaced with that one.

If you're using Wayland, it's maybe something else.
Comment 7 Arcadiy Ivanov 2022-11-09 20:54:02 UTC
I'm on X.
Comment 8 Arcadiy Ivanov 2022-11-09 20:54:50 UTC
Importantly. It doesn't ALWAYS happen. It happens **often** but not every time.
Comment 9 Nate Graham 2022-11-09 21:08:06 UTC
Thanks. I'm 99% sure this is now Bug 460341.

*** This bug has been marked as a duplicate of bug 460341 ***
Comment 10 Nate Graham 2022-11-09 21:08:43 UTC
Well, rather, the original issue was fixed but the issue you're having now is Bug 460341.