Summary: | kwin_wayland freeze loop on DisplayLink connection | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Norbert <sandwich> |
Component: | multi-screen | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED UPSTREAM | ||
Severity: | major | CC: | kde, nate, postix, sandwich, xaver.hugl |
Priority: | NOR | Keywords: | multiscreen, wayland |
Version: | 5.27.8 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
without the dock connected
with the dock connected drm_info when the docking station(lenovo dud9011d1) is pluged in on tthe plasma6 kwin wayland session drm_info when the docking station(lenovo dud9011d1) is pluged in on tthe plasma6 kwin x11 session drm_info on the plasma6 kwin wayland session without a dock drm_info when the docking station(lenovo dud9011d1) is pluged in on the plasma6 kwin wayland session and the session is working |
Description
Norbert
2023-10-21 12:54:01 UTC
Plasma 6 Beta 2 no improvements. Please attach the output of drm_info when the external screen is not frozen, and then again when it is frozen. I was not able to get the information in an unfrozen state in plasma6, I will attach two logs, once without the dock connected, and the second with the dock connected display enabled but frozen. The Logs are nearly identical, and it looks like it does not load the display at all. Created attachment 165604 [details]
without the dock connected
Created attachment 165605 [details]
with the dock connected
I think you got a wrong version of drm_info - it doesn't just not show the output, it doesn't show the DisplayLink adapter at all. Could you try again with https://gitlab.freedesktop.org/emersion/drm_info? Thank you, I will. Unfortunately I have access to the dock only once a week, I will be back on next Tuesday. Created attachment 165800 [details]
drm_info when the docking station(lenovo dud9011d1) is pluged in on tthe plasma6 kwin wayland session
I could not find a difference between Wayland with and without the dock, but there is more on the kwin session.
Displaylink is using the evdi module to work.
Created attachment 165801 [details]
drm_info when the docking station(lenovo dud9011d1) is pluged in on tthe plasma6 kwin x11 session
Created attachment 165802 [details]
drm_info on the plasma6 kwin wayland session without a dock
(In reply to Norbert from comment #8) > Created attachment 165800 [details] > drm_info when the docking station(lenovo dud9011d1) is pluged in on tthe > plasma6 kwin wayland session > > I could not find a difference between Wayland with and without the dock, but > there is more on the kwin session. > Displaylink is using the evdi module to work. I wanted to say, that there are more outputs visible on the kwin x11 sessions output. Which is weird because kscreen in the Wayland session is able to detect the DisplayLink Monitors. I will attach the kscreen output as well Created attachment 165803 [details]
drm_info when the docking station(lenovo dud9011d1) is pluged in on the plasma6 kwin wayland session and the session is working
This time, I've managed to get the drm_info output when the session is in an unfrozen state.
It froze after 2 seconds again.
This time I did not manage to get kscreen to detect the outputs. I hope the drm_info from the unfrozen state helps. Okay, the drm_info output shows no difference between KWin driving the output when it works vs when it doesn't. Something weird is that drm_info doesn't show the output being driven at all in the X11 session - but that might just be the X11 driver doing weird stuff outside of KMS. As there's no difference between it working and not working from KWin's perspective, I'm confident to say that this is a driver bug, which you can report at https://github.com/DisplayLink/evdi/issues. Maybe we can look at some workarounds though. It looks like KWin us choosing the ABGR8888 format for the output; Xorg is likely using XRGB8888. If you use `KWIN_DRM_NO_AMS=1` to make KWin do the same, does the issue go away? Hi, with `KWIN_DRM_NO_AMS=1` It works now without any issues, I noticed since the latest kwin update even without Variable, kwin does not freeze anymore on the working display outputs. It works even better than with xorg because the input latency is noticeably lower. To clear up my bad English. 1. With the `KWIN_DRM_NO_AMS=1` Variable, all Displays work correctly and does not freeze or reconnect anymore. This includes using all DP and HDMI ports on the docking station and the in build Laptop HDMI at once. 2. Some times ago(~Plasma6 Beta 2), one frozen Display would freeze the whole session, now only the causing Display is frozen. That's interesting, so ARGB8888 vs XRGB8888 does seem to cause the difference. Please create an issue about this at https://github.com/DisplayLink/evdi/issues, and link this bug report for more information. Thank you for your help, i am now able to work properly again. I have created an Issue on Evdi Github: https://github.com/DisplayLink/evdi/issues/459 Possible workaround: https://invent.kde.org/plasma/kwin/-/merge_requests/5513 If anyone experiencing this bug could test the above merge request that would be appreciated. I cannot reproduce the issue on my DisplayLink docking station so I’m wary of merging it without having verified it actually fixes the issue (and doesn’t make things worse) |