https://bugs.kde.org/show_bug.cgi?id=503750
Bug ID: 503750 Summary: KWin (X11) crashes after resuming from sleep on hybrid graphics (Intel+NVIDIA) with proprietary NVIDIA driver, resulting in a blank screen and "Graphics reset" notification Classification: Plasma Product: kwin Version: 6.3.4 Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: X11 Integration Assignee: kwin-bugs-n...@kde.org Reporter: emanuelci...@gmail.com Target Milestone: --- OS Distribution: EndeavourOS Linux Description: After updating my system recently (specifically around the update that installed NVIDIA driver 570.144), my KDE Plasma desktop in an X11 session fails to resume correctly after the computer enters and wakes up from sleep (suspend-to-RAM, S3 state). When waking the computer, the screen remains blank or dull, although the display backlight might power up. The desktop environment is unresponsive. I am forced to switch to a TTY (e.g., using Ctrl+Alt+F3, then back to Ctrl+Alt+F2), which allows a cursor to appear. I can then blindly type my password to log in to the graphical session. Upon successfully logging back in, the desktop appears functional, and I receive a notification from "KWin Window Manager" stating "Desktop effects were restarted due to a graphics reset." This issue did not occur with previous updates and appears directly related to the graphics stack failing or resetting during resume. My system has hybrid graphics, Intel UHD Graphics and NVIDIA GeForce RTX 3050 Mobile. The proprietary NVIDIA driver version 570.144 is installed and in use. The logs indicate a graphics context loss affecting KWin and plasmashell after resume. Steps to Reproduce: Ensure you are running a KDE Plasma session using the X11 windowing system. Log in to the KDE Plasma session. Put the computer to sleep (suspend-to-RAM, S3). This can be done via the power/session management menu or by closing the laptop lid (if configured for suspend). Wait for the system to enter sleep mode. Wake the computer up (e.g., open the lid, press the power button). Observe the blank or unresponsive screen. (Optional recovery step) Switch to a TTY (Ctrl+Alt+F3), then switch back (Ctrl+Alt+F2). A cursor may appear. Log in blindly by typing the password. Observe the desktop session restoring and the KWin notification "Desktop effects were restarted due to a graphics reset." Expected Behavior: The screen should wake up and display the lock screen or your session correctly, with the graphical environment fully functional. Actual Behavior: The screen remains blank/dull after resume. The graphical session is unresponsive until manual recovery via TTY login. KWin reports a graphics reset. System Information: Operating System: EndeavourOS Linux x86_64 Host: 82S9 IdeaPad Gaming 3 15IAH7 Kernel: 6.12.26-1-lts Desktop Environment: Plasma 6.3.4 Window Manager: KWin (running in X11 mode) Resolution: 1920x1080, 1920x1080 (As reported by neofetch) CPU: 12th Gen Intel i5-12450H (12) @ 4.400GHz GPU 1: NVIDIA GeForce RTX 3050 Mobile GPU 2: Intel Alder Lake-P GT1 [UHD Graphics] NVIDIA Driver Version: 570.144 (from journalctl) Relevant Log Output (from journalctl -b -X, where -X is the boot from May 4th): máj 04 13:38:34 emanuel-82s9 kernel: i915 0000:00:02.0: [drm] ... (Intel resume messages) ... máj 04 13:38:35 emanuel-82s9 systemd[1]: Finished NVIDIA system resume actions. ... máj 04 13:39:09 emanuel-82s9 plasmashell[1391]: QRhiGles2: Context is lost. máj 04 13:39:09 emanuel-82s9 plasmashell[1391]: Graphics device lost, cleaning up scenegraph and releasing RHI ... máj 04 13:39:44 emanuel-82s9 kwin_x11[1359]: kwin_scene_opengl: A graphics reset attributable to the current GL context occurred. máj 04 13:39:44 emanuel-82s9 plasmashell[1391]: QRhiGles2: Context is lost. máj 04 13:39:44 emanuel-82s9 plasmashell[1391]: Graphics device lost, cleaning up scenegraph and releasing RHI máj 04 13:39:45 emanuel-82s9 kwin_x11[1359]: kwin_scene_opengl: Could not delete framebuffer because no context is current -- You are receiving this mail because: You are watching all bug changes.