Bug 428603

Summary: Desktop effects are disabled after suspend. Can't set rendering backend to opengl.
Product: [Plasma] kwin Reporter: Mina <842mono>
Component: effects-variousAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UNMAINTAINED    
Severity: major CC: bugseforuns, hr.denzler, me, nate
Priority: NOR    
Version First Reported In: 5.20.1   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Trace (generated with the help of #kde-bugs on irc)
Better trace (after installing libepoxy0-dbgsym)
kwin.txt

Description Mina 2020-11-02 14:29:20 UTC
SUMMARY
Desktop effects are disabled with opengl after suspend, and cannot be re-enabled.

Sometimes this workaround fixes it. Go to compositor. Click the "re-enable opengl detection" button. Switch rendering backend to opengl.

This is what happens when the workaround doesn't work. After I switch rendering backend to opengl, kwin crashes again, and is reopened but desktop effects are still disabled.

It seems to be an Nvida driver issue. I have the latest Nvidia driver installed.

My laptop is an HP envy x360.

STEPS TO REPRODUCE
1. Suspend laptop
2. Wake it up from suspend

OBSERVED RESULT
Desktop effects are disabled and cannot be re-enabled with opengl as the rendering backend.

EXPECTED RESULT
Desktop effects are enabled.


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: KDE Neon 5.20
(available in About System)
KDE Plasma Version: 5.20.1
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.0

ADDITIONAL INFORMATION
Comment 1 Vlad Zahorodnii 2020-11-05 09:14:59 UTC
> kwin crashes again
Can you provide us the backtrace of the crash?
Comment 2 Mina 2020-11-05 10:41:40 UTC
Thank you for the reply.

There's a popup that I sometimes get that tries to collect the backtrace I think, but it fails. One thing that it fails to do is to install "debug symbols".

How else can I collect the backtrace? Please tell me what I need to do and I'll follow the steps.
Comment 3 Mina 2020-11-15 00:43:20 UTC
Created attachment 133345 [details]
Trace (generated with the help of #kde-bugs on irc)
Comment 4 Patrick Silva 2020-11-15 19:24:59 UTC
Backtrace was provided, changing status.
Comment 5 Mina 2020-11-28 03:36:18 UTC
Created attachment 133696 [details]
Better trace (after installing libepoxy0-dbgsym)
Comment 6 Hans-Rudi Denzler 2021-10-26 09:39:16 UTC
as root
gvim /var/log/messages
:v/kwin/d

now you can inspect all kwin kernel messages
Comment 7 Hans-Rudi Denzler 2021-11-01 07:37:00 UTC
Created attachment 143082 [details]
kwin.txt
Comment 8 Hans-Rudi Denzler 2021-12-10 14:28:12 UTC
With nvidia twinview, the KDE compositor is disabled now on startup much more often.
Enable compositor again
Logout and login
Now all desktop effects work again as expected
Comment 9 Iyán M. V. 2021-12-10 17:03:09 UTC
Maybe duplicate of https://bugs.kde.org/show_bug.cgi?id=446779?
Comment 10 Hans-Rudi Denzler 2022-02-02 10:44:02 UTC
The KDE compositor disabled bug with Nvidia TwinView, openSuse Leap 15.3, happens more often than ever after normal boot.
So I have to enable the compositor again, logout, enter Password, and than everything works as expected. This bug was present
in Leap 15.2 more than 1.5 years now. To go to standby doesn't work as a workaround.

If I have to do the above twice a day - desktop effects disabled and enabling the compositor.. - it's no tragedy.
It seems to be very difficult to locate the bug, happens often but not always.
Comment 11 David Edmundson 2023-09-06 10:38:01 UTC
This bug was reported against an outdated version of KWin. We have made many changes since the. 
If the issue persists in newer versions can you reopen the bug report updating the version number.