Bug 417323

Summary: iGPU multi-monitor support missing
Product: [Plasma] KScreen Reporter: Zamundaaa <xaver.hugl>
Component: commonAssignee: kscreen-bugs-null <kscreen-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: nate, nowa, subdiff
Priority: NOR Keywords: wayland
Version: git   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In: 5.21
Sentry Crash Report:

Description Zamundaaa 2020-02-08 23:00:30 UTC
SUMMARY
As my desktop GPU doesn't have the ports for two of my 3 monitors and also not enough ports to connect all my devices (3 monitors, one TV, a Valve Index).
In order to use use all of my monitors I use the BIOS option "iGPU multi-monitor" that enables the internal GPU.

OBSERVED RESULT
The monitors connected to the internal GPU are disabled.

EXPECTED RESULT
The monitors connected to the internal GPU should be available in the Display Configurations and work normally. This is the case in a X11 session.

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux 
KDE Plasma Version: 5.18.80
KDE Frameworks Version: 5.67.0
Qt Version: 5.14.1
Kernel Version: 5.5.2-1-MANJARO
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-6700K CPU @ 4.00GHz
Memory: 15,5 GiB of RAM
Graphics Processor: AMD NAVI10 (rx 5700 XT)
Comment 1 Roman Gilg 2020-02-29 19:31:20 UTC
You are using wayland?
Comment 2 Zamundaaa 2020-03-01 02:03:52 UTC
Yes I am. I read on Phabricator that multi GPU support for Wayland in general is still on the TODO list, so I guess this issue is probably gonna be solved once that's done.
Comment 3 Bug Janitor Service 2020-09-06 12:39:02 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/243
Comment 4 David Edmundson 2020-10-05 21:06:08 UTC
Git commit b50f7478769c1b50b48d5f0e9201a8e4b7e275ef by David Edmundson, on behalf of Xaver Hugl.
Committed on 05/10/2020 at 21:05.
Pushed by davidedmundson into branch 'master'.

Multi-GPU output support on Wayland

This commit sets up udev and the DrmBackend to list and use all GPUs.
Related: bug 425586

M  +1    -0    plugins/platforms/drm/CMakeLists.txt
M  +88   -262  plugins/platforms/drm/drm_backend.cpp
M  +7    -54   plugins/platforms/drm/drm_backend.h
A  +273  -0    plugins/platforms/drm/drm_gpu.cpp     [License: GPL(v2.0+)]
A  +111  -0    plugins/platforms/drm/drm_gpu.h     [License: GPL(v2.0+)]
M  +9    -7    plugins/platforms/drm/drm_object_crtc.cpp
M  +7    -1    plugins/platforms/drm/drm_object_crtc.h
M  +39   -36   plugins/platforms/drm/drm_output.cpp
M  +11   -4    plugins/platforms/drm/drm_output.h
M  +10   -8    plugins/platforms/drm/egl_gbm_backend.cpp
M  +3    -1    plugins/platforms/drm/egl_gbm_backend.h
M  +10   -9    plugins/platforms/drm/egl_stream_backend.cpp
M  +3    -1    plugins/platforms/drm/egl_stream_backend.h
M  +7    -5    plugins/platforms/drm/scene_qpainter_drm_backend.cpp
M  +3    -1    plugins/platforms/drm/scene_qpainter_drm_backend.h
M  +1    -1    plugins/platforms/fbdev/fb_backend.cpp
M  +47   -32   udev.cpp
M  +5    -2    udev.h

https://invent.kde.org/plasma/kwin/commit/b50f7478769c1b50b48d5f0e9201a8e4b7e275ef
Comment 5 Nowa Ammerlaan 2021-02-16 19:39:56 UTC
After upgrading to 5.21.0 monitors connected to the iGPU are detected (yay), but all they display is the SDDM screen which stayed there after login. The cursor is visible, I can move windows onto those monitors, but the SDDM screen still gets displayed over them so they are not visible. 

Rearranging the monitors works, but still the SDDM screen is displayed on top of everything else (including the taskbar etc). Trying to change the resolution makes *everything* crash (kwin, plasmashell, xwayland, etc.) without re-spawning.

Operating System: Gentoo Linux
KDE Plasma Version: 5.21.0
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2
Kernel Version: 5.11.0-gentoo
OS Type: 64-bit
Graphics Platform: X11 (I reverted back to X for now)
Processors: 12 × Intel® Core™ i7-8700K CPU @ 3.70GHz
Memory: 31.2 GiB of RAM
Graphics Processor: Radeon RX 590 Series
Comment 6 Zamundaaa 2021-02-17 18:13:57 UTC
Please make a new bug report, add me to CC and attach ~/.local/share/sddm/wayland-session.log and the backtrace of kwin_wayland