Summary: | Regression: VR headset is detected as display on a Wayland session and keeps disconnecting and re-appearing | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Bart Ribbers <bribbers> |
Component: | multi-screen | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | nicolas.fella, xaver.hugl |
Priority: | NOR | ||
Version First Reported In: | 5.20.90 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/kwin/commit/031924b4d23e0a7cb5c68e43791f748b79a91ee1 | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: | Screenshot of insane amount of crash messages |
Description
Bart Ribbers
2021-01-23 10:09:19 UTC
Are you using the latest firmware? It may be that it doesn't offer you the latest on Linux, so try updating it with Windows if you have a working partiiton. Also, are you using any kernel flags concerning amdgpu? I have a hunch that you're using "amdgpu.dc=0" because in 5.20 VR headsets were treated as normal monitors and not ignored. The latest firmware is installed yes, that shouldn't be a problem. I am indeed running with "amdgpu.dc=0", but I was in 5.20 too. I'll try without that flag, but why would behaviour be different in this latest release? Created attachment 135097 [details]
Screenshot of insane amount of crash messages
Removing "amdgpu.dc=1" did indeed resolve the issue, thanks. I'm not entirely sure anymore why I added it originally, I believe because of multi-monitor issues (often when turning all screens off and later back on again causes Plasma to not be able to initialize the screens properly and I have to reboot to make it work again).
However, the plasmashell crashed twice in like the 2 minutes that I had the session running. Not sure if related? See screenshot for the awful amount of crash popups I got.
I have no clue why it would behave differently; the driver AFAIK just completely doesn't tell KWin about VR headsets with amdgpu.dc=0 (or it wouldn't have ignored it in 5.20) and that shouldn't change with KWin versions.
> However, the plasmashell crashed twice in like the 2 minutes that I had the session running. Not sure if related? See screenshot for the awful amount of crash popups I got.
It appears that a few more people have that problem with the beta, it's probably unrelated.
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/625 Turns out we can detect VR headsets without atomic modesetting. I didn't test with amdgpu.dc=0 specifically but if it still doesn't work with amdgpu.dc=0 and that patch then that's a driver problem we can't do anything about. Git commit 9f4a1433e416944fa26b8580eaad4a8f48fd61d8 by Xaver Hugl. Committed on 26/01/2021 at 20:23. Pushed by zamundaaa into branch 'master'. Also initialize properties when not using AMS M +3 -3 autotests/drm/objecttest.cpp M +9 -11 plugins/platforms/drm/drm_gpu.cpp M +1 -1 plugins/platforms/drm/drm_object.h M +1 -1 plugins/platforms/drm/drm_object_connector.cpp M +1 -1 plugins/platforms/drm/drm_object_connector.h M +2 -2 plugins/platforms/drm/drm_object_crtc.cpp M +1 -1 plugins/platforms/drm/drm_object_crtc.h M +1 -1 plugins/platforms/drm/drm_object_plane.cpp M +1 -1 plugins/platforms/drm/drm_object_plane.h https://invent.kde.org/plasma/kwin/commit/9f4a1433e416944fa26b8580eaad4a8f48fd61d8 Git commit 031924b4d23e0a7cb5c68e43791f748b79a91ee1 by Xaver Hugl. Committed on 26/01/2021 at 21:14. Pushed by zamundaaa into branch 'Plasma/5.21'. Also initialize properties when not using AMS (cherry picked from commit 9f4a1433e416944fa26b8580eaad4a8f48fd61d8) M +3 -3 autotests/drm/objecttest.cpp M +9 -11 plugins/platforms/drm/drm_gpu.cpp M +1 -1 plugins/platforms/drm/drm_object.h M +1 -1 plugins/platforms/drm/drm_object_connector.cpp M +1 -1 plugins/platforms/drm/drm_object_connector.h M +2 -2 plugins/platforms/drm/drm_object_crtc.cpp M +1 -1 plugins/platforms/drm/drm_object_crtc.h M +1 -1 plugins/platforms/drm/drm_object_plane.cpp M +1 -1 plugins/platforms/drm/drm_object_plane.h https://invent.kde.org/plasma/kwin/commit/031924b4d23e0a7cb5c68e43791f748b79a91ee1 |