Bug 503750 - 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
Summary: KWin (X11) crashes after resuming from sleep on hybrid graphics (Intel+NVIDIA...
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: X11 Integration (other bugs)
Version First Reported In: 6.3.4
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: X11-only
Depends on:
Blocks:
 
Reported: 2025-05-04 12:11 UTC by Emanuel
Modified: 2025-11-18 23:51 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Emanuel 2025-05-04 12:11:59 UTC
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