Bug 357003 - No lock screen appear after resume from suspend or hibernate
Summary: No lock screen appear after resume from suspend or hibernate
Status: RESOLVED DOWNSTREAM
Alias: None
Product: kscreenlocker
Classification: Unmaintained
Component: greeter (other bugs)
Version First Reported In: 5.5.1
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-21 15:15 UTC by Thomas Masper
Modified: 2015-12-27 22:35 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 Thomas Masper 2015-12-21 15:15:57 UTC
Since update to 5.5.0 every time I resume laptop from a suspend/hibernate, the lock screen asking for password does not show anymore. 
Lock screen work fine if I start it from menu (or using  Ctrl-Alt-L) or wait for the inactivity time set in settings. 
I have the option "Lock screen on resume" checked in Settings->Destkop Behavior->Screen Locking

Reproducible: Always

Steps to Reproduce:
1. Suspend the system (make sure the screen is not locked)
2. Resume from suspend

Actual Results:  
No lock screen is shown at resume

Expected Results:  
Lock screen waiting for user input the password should appear

My system is gentoo with OpenRC, I do not have systemd installed, I have ConsoleKit2 (gentoo package consolekit-1.0.0-r1) and upower-pm-utils (gentoo package upower-pm-utils-0.9.23-r2.
Comment 1 Thomas Masper 2015-12-27 22:35:56 UTC
Sorry for the noise but I solved the issue after some trial and error.
I solved it uninstalling upower-pm-utils and adding the following two files to 
/etc/polkit-1/localauthority/50-custom.d/ 

1) 20-org.freedesktop.consolekit.system.suspend-multiple-users.pkla 
[Allow all users to suspend] 
Identity=unix-group:users 
Action=org.freedesktop.consolekit.system.suspend-multiple-users;org.freedesktop.consolekit.system.suspend 
ResultAny=yes 
ResultInactive=no 
ResultActive=yes

2) 30-org.freedesktop.consolekit.system.hibernate-multiple-users.pkla 
[Allow all users to hibernate] 
Identity=unix-group:users 
Action=org.freedesktop.consolekit.system.hibernate-multiple-users;org.freedesktop.consolekit.system.hibernate 
ResultAny=yes 
ResultInactive=no 
ResultActive=yes

I still have the sometimes the glitch on resume (desktop will show for fraction of a second before the locking screen) but this I think it's normal according also to this:
http://blog.martin-graesslin.com/blog/2015/01/locking-the-screen-before-system-suspends/