| Summary: | Desktop effects were restarted due to a graphics reset | ||
|---|---|---|---|
| Product: | [Plasma] kwin | Reporter: | bradleyfourie |
| Component: | multi-screen | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | RESOLVED UPSTREAM | ||
| Severity: | normal | CC: | nate, vlad.zahorodnii, xaver.hugl |
| Priority: | NOR | Keywords: | multiscreen |
| Version First Reported In: | 5.27.10 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | Output of command | ||
|
Description
bradleyfourie
2023-12-09 23:56:24 UTC
Something else to note after testing, this issue only occurs with Wayland session. After further testing this definitely seems to be related to desktop effects and the task switcher. I cannot isolate it to one specific option, value or combination. If all are disabled then it works better and if I disable the two tick boxes under Window Management > Task Switcher > Visualisation this issue is pretty much non-existent. I say pretty much because there is still lag for a second or two which occurs when switching and I still get the "Desktop effects were restarted due to a graphics reset" pop-up (strangely only after quitting the game) even though I have disabled all desktop effect options in Workspace Behaviour > Desktop Effects. Other things that may be of note, the following message is spammed excessively (multiple times a second) in journal: "kf.plasma.core: findInCache with a lastModified timestamp of 0 is deprecated".
Another is "Could not find the Plasmoid for Plasma::FrameSvgItem(0x555df9ba0510) QQmlContext(0x555df6957370) QUrl("file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/global/Globals>"
Please attach the output of
> journalctl --user-unit plasma-kwin_wayland --boot 0
after the bug happens
Created attachment 164227 [details]
Output of command
Different installation (Arch) so slightly different KDE version and Steam is installed from Arch repo instead of Flatpak from when logged but I can reinstall Kinoite if necessary:
Operating System: Arch Linux
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.113.0
Qt Version: 5.15.11
Kernel Version: 6.6.7-arch1-1 (64-bit)
I have found other posts and bugs which seem to be related, they also post a temporary fix. https://bugs.kde.org/show_bug.cgi?id=457096 https://gitlab.freedesktop.org/drm/amd/-/issues/2075 I can confirm the following workaround works: Create .sh file in /etc/profile.d with the following: export KWIN_DRM_DEVICES=/dev/dri/card0:/dev/dri/card1 With this temporary fix the laptop monitor remains on, displays the SDDM login screen and I am unable to see it in display settings. However there is zero lag or delay when Alt+Tabbing from Dota and no notifications related to desktop effects. Okay, this is two driver bugs. Please report the graphics reset to https://gitlab.freedesktop.org/mesa/mesa/-/issues, and the other one you linked already. > KWIN_DRM_DEVICES=/dev/dri/card0:/dev/dri/card1 You probably need to use quotes, KWIN_DRM_DEVICES="/dev/dri/card0:/dev/dri/card1" should make both GPUs be used by KWin Just adding a comment here to say this does not only occur on Dota 2 so I must have misremembered testing it or something. I also incorrectly mentioned the "fix" in the wrong order and it should be the following: Create .sh file in /etc/profile.d with the following: export KWIN_DRM_DEVICES=/dev/dri/card1:/dev/dri/card0 (In reply to bradleyfourie from comment #8) > Just adding a comment here to say this does not only occur on Dota 2 so I > must have misremembered testing it or something. > > I also incorrectly mentioned the "fix" in the wrong order and it should be > the following: > > Create .sh file in /etc/profile.d with the following: > export KWIN_DRM_DEVICES=/dev/dri/card1:/dev/dri/card0 Whoops, don't seem to be able to edit this but it's: export KWIN_DRM_DEVICES="/dev/dri/card1:/dev/dri/card2" |