https://bugs.kde.org/show_bug.cgi?id=454639

--- Comment #8 from Jan Rathmann <jan.rathm...@gmx.de> ---
Update: I recently got a new PC and I don't see the bug there anymore, without
changing anything on the installed OS.

For graphics now I use the integrated GPU of the Ryzen 7 5700G that also uses
the amdgpu driver, same as before. So this bug may be a special problem related
to my old graphics card, an Asus Radeon R7 240.

For other people still affected, I can present you a really ugly workaround
that nevertheless worked for me:

* Create  a systemd service roughly like this (Don't know if all of those
environment variables are actually necessary. Don't forget to insert your
actual user name/computer name etc.):
------------------------
[Unit]
Description=Workaround to fix flickering after suspend under Wayland
After=suspend.target hibernate.target hybrid-sleep.target
suspend-then-hibernate.target


[Service]
ExecStart=/path/to/kwin-suspend-fix-flicker.sh
User=YOUR_USER_NAME
Environment=DISPLAY=:1
Environment=DESKTOP_SESSION="plasmawayland"
Environment=DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/YOUR_NUMERICAL_USERID/bus"
Environment=SESSION_MANAGER="local/YOUR_COMPUTER_NAME:@/tmp/.ICE-unix/1467,unix/YOUR_COMPUTER_NAME:/tmp/.ICE-unix/1467"
Environment=XDG_RUNTIME_DIR="/run/user/YOUR_NUMERICAL_USERID"
Environment=DESKTOP_SESSION="plasmawayland"
declare -x DISPLAY=":1"
Environment=XDG_SEAT_PATH="/org/freedesktop/DisplayManager/Seat0"
Environment=XDG_SESSION_PATH="/org/freedesktop/DisplayManager/Session2"
Environment=XDG_SESSION_TYPE="wayland"
[Install]
WantedBy=suspend.target hibernate.target hybrid-sleep.target
suspend-then-hibernate.target
------------------------

* Then create a script kwin-suspend-fix-flicker.sh :
------------------------
#!/bin/bash
qdbus org.kde.KWin /component/kwin
org.kde.kglobalaccel.Component.invokeShortcut "MinimizeAll"
sleep 0.5
qdbus org.kde.KWin /component/kwin
org.kde.kglobalaccel.Component.invokeShortcut "MinimizeAll"
------------------------
This will run the Kwin effect "Minimize all" to stop the flickering, and the
run the same effect a second time to restore the original positions of all
windows.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to