Bug 500667

Summary: Session freezes randomly and login screen doesn't appear - with two wayland sessions
Product: [Plasma] kwin Reporter: Alberto <alberto_bugzilla>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: crash CC: germano.massullo, kdedev, nate
Priority: NOR    
Version First Reported In: 6.3.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: journalctl

Description Alberto 2025-02-24 14:03:36 UTC
Created attachment 178809 [details]
journalctl

Short description:
I was working, locked the session to go to lunch, came back and found the session frozen :O
Sometimes this problem occurs on resume from standby if the laptop goes into standby attached to the docking station (at home) and wakes up unplugged or attached to a different docking station (at the office) with different screens, but in this specific case I did not do this.

Hardware:
    Lenovo T14 2° gen. i5-1135G7 with 48GB DDR and 4k screen (#1)
    Docking DELL WD19TB (usbc/thunderbolt)
    LG 27GR93U UltraGear (displayPort) (#2)
    LG 27UL650 (displayPort) (#3)
    all screens have 4k resolution

Versions: 
    Fedora 40
    Linux T14d.localdomain 6.12.11-100.fc40.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jan 23 22:07:15 UTC 2025 x86_64 GNU/Linux
    kwin-wayland-6.3.0-3.fc40.x86_64
    kde-settings-40.1-1.fc40.noarch
    plasma-desktop-6.3.0-1.fc40.x86_64
    systemd-255.16-1.fc40.x86_64
    mesa-libGL-24.1.7-1.fc40.x86_64
    xorg-x11-server-Xorg-1.20.14-36.fc40.x86_64
    xorg-x11-drv-intel-2.99.917-57.20210115.fc40.x86_64

Enviroment:
    - laptop connected directly to the docking station with its thunderbolt cable
    - 2 wayland sessions with different users: user(uid:1006) and user1(uid:1000), the problem was with 'user' (uid:1006) which was the active session
    - many windows opened (firefox, code, dbeaver, zoom, konsole, ...)

Behavior:
    1. I locked the screen, I turn off the external monitors and I gone away
    2. I come back after, the laptop screen was turned off(energy saving)
    3. I moved the mouse (touchpad) and the laptop screen turned on
    4. I turned on the external screen (#2) and (#3)
    
Issue:
    5. the screen (#2) was turned on but black,
       the laptop and screen (#3) had the background with the session locked,
       no action made the login prompt appear to unlock the session (moving mouse, typing keys, change session with CTRL+ALT+F7 and then again CTRL-ALT-F8, ...)
       I tried from the other session to unlock the other session with 'loginctl unlock-sessions' but nothing
       in the end, i had to 'loginctl kill-session 19'