Bug 469063 - Booting from hibernation shows saved apps before locking the session
Summary: Booting from hibernation shows saved apps before locking the session
Status: RESOLVED DUPLICATE of bug 316734
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 5.27.4
Platform: Manjaro Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-27 16:04 UTC by medin
Modified: 2023-05-14 20:10 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description medin 2023-04-27 16:04:22 UTC
If I click on hibernate with some opened apps, then after rebooting, the system shows a frozen screenshot of those saved apps, before the session get locked. It looks like locking screen operation is triggered later than it's supposed, or it has lower priority that prohibits it from being applied before restoring any saved app.

Operating System: Manjaro Linux 
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Kernel Version: 6.2.12-1-MANJARO (64-bit)
Graphics Platform: X11
Comment 1 Nate Graham 2023-04-27 18:27:58 UTC
Do you have your system set yo up to auto-log-in but lock immediately?
Comment 2 medin 2023-04-27 22:05:59 UTC
(In reply to Nate Graham from comment #1)
> Do you have your system set yo up to auto-log-in but lock immediately?

Sorry I wrongly described the problem, instead of saying SDDM login screen I said lock screen.
Comment 3 Nate Graham 2023-04-28 16:40:04 UTC
So the sequence of events is this:
1. Open some apps
2. Hibernate
3. Reboot
4. See image of the screen contents
5. See SDDM login screen

Is that right?
Comment 4 medin 2023-04-28 17:04:18 UTC
(In reply to Nate Graham from comment #3)
> So the sequence of events is this:
> 1. Open some apps
> 2. Hibernate
> 3. Reboot
> 4. See image of the screen contents
> 5. See SDDM login screen
> 
> Is that right?

Exactly, the same scenario.
Comment 5 Nate Graham 2023-05-01 19:51:11 UTC
Thanks. In that case I think this is an issue deeper than anything in KDE code as no KDE code is running at the moment it happens. I'm not sure where the issue might be, unfortunately. Maybe in systemd or whatever thing handles hibernation?
Comment 6 medin 2023-05-01 21:06:39 UTC
(In reply to Nate Graham from comment #5)
> Thanks. In that case I think this is an issue deeper than anything in KDE
> code as no KDE code is running at the moment it happens. I'm not sure where
> the issue might be, unfortunately. Maybe in systemd or whatever thing
> handles hibernation?

I'm sorry, I verified the hibernation process with someone on Manjaro forum, and he clarified that it's not SDDM which appears after waking from hibernation, it's in fact the plasma lock screen, because waking from hibernation simply reload what is saved on disk to memory including KDE session with all its processes and apps, so after typing the password in lock screen it doesn't trigger any new KDE session but it simply shows the fully loaded content.
Comment 7 Nate Graham 2023-05-14 20:10:37 UTC
Ah ok, so in that case this is the same issue as Bug 316734, which is fixed on Wayland but seems impossible to fix for X11.

*** This bug has been marked as a duplicate of bug 316734 ***