Summary: | Flickering and hanging on Nvidia starting at kwin_x11 5.22.90 | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | nyanpasu64 <nyanpasu64> |
Component: | compositing | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | arojas, nate |
Priority: | NOR | Keywords: | regression |
Version: | 5.22.90 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
See Also: |
https://bugs.kde.org/show_bug.cgi?id=443277 https://bugs.kde.org/show_bug.cgi?id=443951 |
||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Screenshot of a partly black screen, taken while the screen was flickering. |
Description
nyanpasu64
2021-10-05 08:33:54 UTC
> Around the time I upgraded to Plasma beta 5.22.90 (and nvidia 470.74)
Can you downgrade nvidia driver?
The bug still occurs on 470.63, which I uninstalled a few days before installing Plasma 5.23 Beta. (For some reason Arch ships *many* different package releases of the same version, and I installed the last one I had installed.) I did not test downgrading kwin to 5.22.x. Revised instructions: 1. Turn off compositing using alt+shift+f12 or by unchecking "Enable compositor on startup". 2. Sleep, wake, unlock. 3. Turn on compositing using alt+shift+f12, and the screen never redraws with compositing on (is hung at the last frame with compositing off, without shadows). I've reproduced the bug multiple times in a row with these instructions, on both OpenGL 2.0 and 3.1. The bug does not occur if I sleep/wake with compositing on, nor if I sleep/wake and then toggle compositing off/on afterwards, nor if I toggle compositing off/on and then sleep/wake. (In reply to nyanpasu64 from comment #2) > For some reason Arch ships *many* different > package releases of the same version, and I installed the last one I had > installed. The reason being that the driver needs to be recompiled for every kernel update. You can't just downgrade nvidia as the kernel will just not load it, you need to also downgrade the kernel to the matching version (the one nvidia was compiled against). > The reason being that the driver needs to be recompiled for every kernel
> update. You can't just downgrade nvidia as the kernel will just not load it,
> you need to also downgrade the kernel to the matching version (the one
> nvidia was compiled against).
Welp, I'm using linux-zen rather than linux, and on every kernel/nvidia update, nvidia-dkms recompiles nvidia (for linux-zen I think?). So I suppose I dodged a bullet here.
Yep, if you're using dkms then you're fine I'm on Plasma 5.23.1 now, on nvidia-dkms 470.74-1. When I sleep and resume with compositing off (which corrupts VRAM because lol nvidia http://download.nvidia.com/XFree86/Linux-x86_64/470.74/README/powermanagement.html), I cannot enable compositing anymore. If I run kwin_x11 in a terminal, I get the following output (but no display hang) when attempting to enable compositing after sleep-wake: OpenGL vendor string: NVIDIA Corporation OpenGL renderer string: NVIDIA GeForce GT 730/PCIe/SSE2 OpenGL version string: 3.1.0 NVIDIA 470.74 OpenGL shading language version string: 1.40 NVIDIA via Cg compiler Driver: NVIDIA Driver version: 470.74 GPU class: Unknown OpenGL version: 3.1 GLSL version: 1.40 X server version: 1.20.13 Linux kernel version: 5.14.14 Requires strict binding: no GLSL shaders: yes Texture NPOT support: yes Virtual Machine: no libkwinglutils: GL error: context lost kwin_scene_opengl: OpenGL 2 compositing setup failed kwin_scene_opengl: OpenGL driver recommends QPainter based compositing. Falling back to QPainter. kwin_scene_opengl: To overwrite the detection use the environment variable KWIN_COMPOSE kwin_scene_opengl: For more information see https://community.kde.org/KWin/Environment_Variables#KWIN_COMPOSE kwin_core: Failed to initialize compositing, compositing disabled qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 5156, resource id: 671, major code: 3 (GetWindowAttributes), minor code: 0 qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 5157, resource id: 671, major code: 14 (GetGeometry), minor code: 0 qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 5163, resource id: 65011714, major code: 18 (ChangeProperty), minor code: 0 Oddly it mentions "OpenGL 2 compositing setup failed" regardless if I'm in OpenGL 2.0 or 3.1 mode. If I kill and restart kwin_x11, I *can* enable compositing. If I enable compositing then sleep/wake, compositing seems to continue working properly, and I can then disable and reenable compositing *after* sleep-wake. I haven't reproduced the flickering so far in my limited testing, so I'm not sure if it can still happen. I've also gotten corrupted VRAM when sleeping my system. I fixed it by creating `/etc/modprobe.d/nvidia.conf` with contents `NVreg_PreserveVideoMemoryAllocations=1`, then running `sudo systemctl enable nvidia-suspend` and rebooting. However I still can't enable compositing after sleep-wake with compositing off, with the same error: libkwinglutils: GL error: context lost kwin_scene_opengl: OpenGL 2 compositing setup failed ... Additionally, if I sleep and wake with compositing on or off, Firefox and System Settings (the "Quick Settings" screen's bottom bar, or the entire window) sometimes still turn or flicker black. I'm not sure if it's a KWin or Nvidia issue. Created attachment 142804 [details]
Screenshot of a partly black screen, taken while the screen was flickering.
The flickering black screen bug is still present.
*** This bug has been marked as a duplicate of bug 443951 *** |