I’m running KDE on two different systems, and one of them exhibits the following problem very often, and the other just did for the first time:
Windows stop updating their content, and perhaps flicker a bit. Switching to a different window and back causes the window contents to be updated, but still frozen. Which means that the application itself is not crashed.
The following command fixes this:
kwin --replace
You can run this from the run command prompt (Alt+F2) (also called Plasma search or krunner), or you could run it in a terminal. (You’d have to make sure the process doesn’t exit when you close the terminal though.)
If everything appears to be frozen and you can’t get to the run command prompt, you could still switch to a console, log in, and try running the following:
DISPLAY=:0 kwin --replace
Both systems have internal Intel graphics (quite different chipsets though) and KDE5.
The above commands will fix the problem for that time. Your open applications should not be affected by the change. I haven’t looked much into permanent fixes, but changing the rendering backend (System Settings → Display and Monitor → Compositor) may change the frequency the problem is triggered or maybe even get rid of it altogether. (I felt that OpenGL 2.0 probably triggered the problem fewer times than OpenGL 3.1.)
I’ve noticed a fair amount of traffic to my KDE-related posts. If you run into any weird KDE problems that you don’t know how to fix, feel free to leave a comment and ask.
Thanks, I have this problem too on my Mint 18 with KDE. Still looking for a permanent fix.
I wonder if it could be related to the renderer backend? I started having this issue after doing a lot of troubleshooting regarding graphics drivers and OpenCL installations. I am curious if I messed something up, or moved to a less stable version of something.
Yay, thank you! Found even better solution! Used your suggestion to check compositor settings, and fixed the flickering with this:
Go:
System Settings → Display and Monitor → Compositor
Set:
Tearing prevention (“vsync”) → Never
Apply.