Bug 464169 - Second monitor freezes with game launched on it. [NVIDIA HYBRID+WAYLAND]
Summary: Second monitor freezes with game launched on it. [NVIDIA HYBRID+WAYLAND]
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: multi-screen (show other bugs)
Version: 5.26.4
Platform: Other Linux
: NOR major
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: wayland-only
Depends on:
Blocks:
 
Reported: 2023-01-11 20:51 UTC by Egor
Modified: 2023-02-25 03:45 UTC (History)
2 users (show)

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


Attachments
drm_info (169.28 KB, text/plain)
2023-01-26 17:41 UTC, Egor
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Egor 2023-01-11 20:51:34 UTC
SUMMARY

STEPS TO REPRODUCE
1. Launch game using discrette nvidia gpu on second monitor with wayland

OBSERVED RESULT
second monitor totally freezes

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7
Nvidia: 525.60.11

ADDITIONAL INFORMATION
GPU: GTX 1650 in notebook
Fedora Kinoite 37
Wayland
Second monitor connected via HDMI

It works good on GNOME, but all freezes on Plasma. I tried to make second monitor primary, set 60hz, disable notebook screen. Games works perfect on notebook screen, but freezes when I drag it to second monitor.
Comment 1 Zamundaaa 2023-01-13 15:07:58 UTC
Does it still happen if you put KWIN_DRM_NO_DIRECT_SCANOUT=1 into /etc/environment and reboot?
Comment 2 Egor 2023-01-14 18:39:49 UTC
(In reply to Zamundaaa from comment #1)
> Does it still happen if you put KWIN_DRM_NO_DIRECT_SCANOUT=1 into
> /etc/environment and reboot?

No, games works good with it. Also I noticed games launched via gamescope are not affected
Comment 3 Zamundaaa 2023-01-14 19:24:38 UTC
Ok, then please attach the output of drm_info (https://gitlab.freedesktop.org/emersion/drm_info) and
> journalctl --user-unit plasma-kwin_wayland --boot 0
after reproducing the problem again.
Comment 4 Egor 2023-01-26 17:39:20 UTC
```
Jan 26 22:23:26 fedora systemd[1799]: Starting plasma-kwin_wayland.service - KDE Window Manager...
Jan 26 22:23:26 fedora systemd[1799]: Started plasma-kwin_wayland.service - KDE Window Manager.
Jan 26 22:23:26 fedora kwin_wayland[1866]: No backend specified, automatically choosing drm
Jan 26 22:23:26 fedora kwin_wayland[1866]: OpenGL vendor string:                   AMD
Jan 26 22:23:26 fedora kwin_wayland[1866]: OpenGL renderer string:                 AMD Radeon Graphics (renoir, LLVM 15.0.6, DRM 3.49, 6.1.7-200.fc37.x86_64)
Jan 26 22:23:26 fedora kwin_wayland[1866]: OpenGL version string:                  4.6 (Core Profile) Mesa 22.3.3
Jan 26 22:23:26 fedora kwin_wayland[1866]: OpenGL shading language version string: 4.60
Jan 26 22:23:26 fedora kwin_wayland[1866]: Driver:                                 Unknown
Jan 26 22:23:26 fedora kwin_wayland[1866]: GPU class:                              Unknown
Jan 26 22:23:26 fedora kwin_wayland[1866]: OpenGL version:                         4.6
Jan 26 22:23:26 fedora kwin_wayland[1866]: GLSL version:                           4.60
Jan 26 22:23:26 fedora kwin_wayland[1866]: Mesa version:                           22.3.3
Jan 26 22:23:26 fedora kwin_wayland[1866]: Linux kernel version:                   6.1.7
Jan 26 22:23:26 fedora kwin_wayland[1866]: Requires strict binding:                no
Jan 26 22:23:26 fedora kwin_wayland[1866]: GLSL shaders:                           yes
Jan 26 22:23:26 fedora kwin_wayland[1866]: Texture NPOT support:                   yes
Jan 26 22:23:26 fedora kwin_wayland[1866]: Virtual Machine:                        no
Jan 26 22:23:27 fedora kwin_wayland[1866]: kwin_wayland_drm: Failed to create framebuffer for multi-gpu: Invalid argument
Jan 26 22:23:27 fedora kwin_wayland[1866]: kwin_xkbcommon: XKB: inet:323:58: unrecognized keysym "XF86EmojiPicker"
Jan 26 22:23:27 fedora kwin_wayland[1866]: kwin_xkbcommon: XKB: inet:324:58: unrecognized keysym "XF86Dictate"
Jan 26 22:23:27 fedora kwin_wayland_wrapper[1939]: (WW) Option "-listen" for file descriptors is deprecated
Jan 26 22:23:27 fedora kwin_wayland_wrapper[1939]: Please use "-listenfd" instead.
Jan 26 22:23:27 fedora kwin_wayland_wrapper[1939]: (WW) Option "-listen" for file descriptors is deprecated
Jan 26 22:23:27 fedora kwin_wayland_wrapper[1939]: Please use "-listenfd" instead.
Jan 26 22:23:27 fedora kwin_wayland[1866]: kwin_wayland_drm: Failed to create gamma blob! Invalid argument
Jan 26 22:23:27 fedora kwin_wayland_wrapper[1971]: The XKEYBOARD keymap compiler (xkbcomp) reports:
Jan 26 22:23:27 fedora kwin_wayland_wrapper[1971]: > Warning:          Unsupported maximum keycode 708, clipping.
Jan 26 22:23:27 fedora kwin_wayland_wrapper[1971]: >                   X11 cannot support keycodes above 255.
Jan 26 22:23:27 fedora kwin_wayland_wrapper[1971]: Errors from xkbcomp are not fatal to the X server
Jan 26 22:23:33 fedora kwin_wayland[1866]: QQmlEngine::setContextForObject(): Object already has a QQmlContext
Jan 26 22:23:33 fedora kwin_wayland[1866]: file:///usr/lib64/qt5/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
Jan 26 22:23:33 fedora kwin_wayland[1866]: file:///usr/lib64/qt5/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
Jan 26 22:28:13 fedora kwin_wayland[1866]: kwin_core: Could not find window with uuid "{0ba0e2e1-8636-4e9f-80c3-13340f917bb6}"
Jan 26 22:28:13 fedora kwin_wayland[1866]: kwin_core: Could not find window with uuid "{0ba0e2e1-8636-4e9f-80c3-13340f917bb6}"
Jan 26 22:28:13 fedora kwin_wayland[1866]: kwin_core: Could not find window with uuid "{4be79f5b-aef3-47cb-939e-861c292b94ac}"
Jan 26 22:28:13 fedora kwin_wayland[1866]: kwin_core: Could not find window with uuid "{4be79f5b-aef3-47cb-939e-861c292b94ac}"
Jan 26 22:28:13 fedora kwin_wayland[1866]: kwin_core: Could not find window with uuid "{4be79f5b-aef3-47cb-939e-861c292b94ac}"
Jan 26 22:28:13 fedora kwin_wayland[1866]: kwin_core: Could not find window with uuid "{4be79f5b-aef3-47cb-939e-861c292b94ac}"
Jan 26 22:31:51 fedora kwin_wayland[1866]: kwin_core: Could not find window with uuid "{a837d157-8931-4666-af5f-4d8acb859f9e}"
Jan 26 22:31:51 fedora kwin_wayland[1866]: kwin_core: Could not find window with uuid "{a837d157-8931-4666-af5f-4d8acb859f9e}"
Jan 26 22:31:51 fedora kwin_wayland[1866]: kwin_core: Could not find window with uuid "{a837d157-8931-4666-af5f-4d8acb859f9e}"
Jan 26 22:31:51 fedora kwin_wayland[1866]: kwin_core: Could not find window with uuid "{a837d157-8931-4666-af5f-4d8acb859f9e}"
Jan 26 22:34:17 fedora kwin_wayland[1866]: kwin_core: Failed to focus 0x1400209 (error 8)
Jan 26 22:34:17 fedora kwin_wayland[1866]: kwin_core: Failed to restore focus. Activating 0x140002f
Jan 26 22:34:21 fedora kwin_wayland[1866]: kwin_core: Failed to focus 0x140026b (error 8)
Jan 26 22:34:21 fedora kwin_wayland[1866]: kwin_core: Failed to restore focus. Activating 0x1400261
Jan 26 22:34:25 fedora kwin_wayland[1866]: kwin_core: Failed to focus 0x1400261 (error 8)
Jan 26 22:34:25 fedora kwin_wayland[1866]: kwin_core: Failed to restore focus. Activating 0x140002f
Jan 26 22:34:27 fedora kwin_wayland[1866]: file:///usr/lib64/qt5/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
Jan 26 22:34:27 fedora kwin_wayland[1866]: file:///usr/lib64/qt5/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
Jan 26 22:34:55 fedora kwin_wayland[1866]: file:///usr/lib64/qt5/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
Jan 26 22:34:55 fedora kwin_wayland[1866]: file:///usr/lib64/qt5/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
```
Comment 5 Egor 2023-01-26 17:41:11 UTC
Created attachment 155673 [details]
drm_info
Comment 6 Bug Janitor Service 2023-02-10 03:51:57 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Bug Janitor Service 2023-02-25 03:45:40 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!