https://bugs.kde.org/show_bug.cgi?id=505201

            Bug ID: 505201
           Summary: Black screen with cursor periodically on resume from
                    suspend
    Classification: Plasma
           Product: plasmashell
      Version First master
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: plasma-b...@kde.org
          Reporter: herms...@gmail.com
                CC: k...@davidedmundson.co.uk
  Target Milestone: 1.0

Created attachment 182020
  --> https://bugs.kde.org/attachment.cgi?id=182020&action=edit
logs-zip

## Summary

This happens intermittently and I am not sure why. About one in ten times when
resuming  from suspend, KDE Plasma on Wayland shows a black screen with a
visible and movable cursor and backlight. Restarting Plasma (`kwin_wayland
--replace` and `plasmashell --replace`) brings up the login screen, but the
desktop session is lost. No GPU panic, kernel oops, or obvious coredump is
generated.

## System Information

- Operating System: Arch Linux
- KDE Plasma Version: 6.3.5
- KDE Frameworks Version: 6.14.0
- Qt Version: 6.9.0
- Kernel Version: 6.14.9-arch1-1 (64-bit)
- Graphics Platform: Wayland
- Processors: 8 × 11th Gen Intel® Core™ i5-1135G7 @ 2.40GHz
- Memory: 23.2 GiB of RAM
- Graphics Processor: Intel® Iris® Xe Graphics
- Manufacturer: LENOVO
- Product Name: 20W5S61M00
- System Version: ThinkPad T15 Gen 2i
- All packages up to date as of 2025-05-31
- GPU drivers: i915 in use, xe module present but not used

## Steps to Reproduce (it occurs intermittently, about 1 in 10 times)

1. Start Plasma Wayland session.
2. Suspend the laptop (close lid or run `systemctl suspend`).
3. Resume from suspend.
4. Observe: black screen, backlight on, cursor visible and movable, but no
desktop.
5. Switch to TTY (Ctrl+Alt+F3), run:
   ```sh
   DISPLAY=:0 XDG_SESSION_TYPE=wayland /usr/bin/kwin_wayland --replace &
   DISPLAY=:0 /usr/bin/plasmashell --replace &
   ```
6. Plasma restarts, but user is dumped to login screen (SDDM).

## What Happens

- Black screen with backlight and cursor after resume.
- Desktop environment is unresponsive.
- Restarting Plasma returns to login screen, session is lost.

## What Should Happen

- Desktop should restore correctly after resume, with all windows and session
state intact.

## Logs
Please find attached zip file containing logs to 2 events as described above.
Here is the script I have used to collect the relevant logs:

#!/bin/bash

TS=$(date +"%Y-%m-%d_%H-%M-%S")
OUTDIR="$HOME/suspend-debug-logs/$TS"
mkdir -p "$OUTDIR"

echo "Collecting logs to $OUTDIR ..."

sudo dmesg > "$OUTDIR/dmesg_after_resume.txt"
sudo journalctl -b -n 1000 > "$OUTDIR/journalctl_last1000.txt"
sudo journalctl --user -n 1000 > "$OUTDIR/journalctl_user_after_resume.txt"
lsmod > "$OUTDIR/lsmod.txt"
lspci -nnk > "$OUTDIR/lspci.txt"
ps auxf > "$OUTDIR/ps_auxf.txt"
loginctl session-status > "$OUTDIR/loginctl_session_status.txt"
loginctl list-sessions > "$OUTDIR/loginctl_list_sessions.txt"
who > "$OUTDIR/who.txt"
coredumpctl list > "$OUTDIR/coredumpctl_list.txt"
loginctl show-session $(loginctl | grep "$(whoami)" | awk '{print $1}') >
"$OUTDIR/loginctl_show_session.txt"
loginctl user-status > "$OUTDIR/loginctl_user_status.txt"
cat /proc/driver/rtc > "$OUTDIR/rtc.txt" 2>/dev/null || true

echo "Done! Logs collected in: $OUTDIR"
echo "You can now upload this folder for further analysis."


## Additional Info

- No evidence of GPU, compositor, or kernel crash in logs.
- i915 is loaded, xe module is present but not used.
- Problem persists across multiple kernel and Plasma updates.
- System is a ThinkPad T15 Gen 2i (LENOVO 20W5S61M00).
- No external monitors in use.
- If more info or specific log extracts are needed, I can provide them.

---

**Thank you for your help! Let me know if more info is needed.**

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to