Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 647576 - kde-plasma/kscreenlocker is broken and the session can't be unlocked
Summary: kde-plasma/kscreenlocker is broken and the session can't be unlocked
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on: kde-plasma-5.12.5-stable
Blocks:
  Show dependency tree
 
Reported: 2018-02-14 03:03 UTC by Daniel Frey
Modified: 2018-05-26 20:21 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
consolekit unlocker script (ck-unlock-session,7.05 KB, text/plain)
2018-02-14 03:03 UTC, Daniel Frey
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Frey 2018-02-14 03:03:15 UTC
Created attachment 519396 [details]
consolekit unlocker script

During large updates to KDE and/or QT the screen locker in KDE can malfunction and have it reset.

More specifically, the message is:

"The screen lock is broken and unlocking is not possible any more. 

In order to unlock switch to a virtual terminal (e.g. Ctrl+Alt+F2),
log in and execute the command:

loginctl unlock-sessions

Afterwards switch back to the running session (Ctrl+Alt+F7). "

If you are using openrc loginctl does not work as it is part of systemd.

There are a few reports of this problem on the forums and on gentoo-user.

I forgot to disable the screenlocker while doing a major update and hit this again.

KDE has bug: https://bugs.kde.org/show_bug.cgi?id=360489 but will not fix the problem, citing a corner case. There is a solution in there to use dbus to send a message to unlock the session, and I've taken that and put it into an initial bash script. The script will allow you to attempt to unlock all sessions or list and specify a specific session to unlock. As my screen locker was currently broken I've been able to test it various ways to make sure it works.

I've attached the bash script in case others looking for a solution to this problem. It's simply called ck-unlock-session.

I also looked for the "Annoying" option under Severity but it wasn't there! ;)
Comment 1 Andreas Sturmlechner gentoo-dev 2018-02-14 13:30:46 UTC
It is not a matter of openrc, but consolekit vs. elogind. Before stabilising KDE Plasma 5.12.x we are going to make the transition to elogind, this will solve several problems, this being among them.
Comment 2 Larry the Git Cow gentoo-dev 2018-02-17 01:16:02 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/kde.git/commit/?id=50141c4028e664727b1006319ddd44b3cc50eb31

commit 50141c4028e664727b1006319ddd44b3cc50eb31
Author:     Michael Palimaka <kensington@gentoo.org>
AuthorDate: 2018-02-17 01:13:31 +0000
Commit:     Michael Palimaka <kensington@gentoo.org>
CommitDate: 2018-02-17 01:15:48 +0000

    kde-plasma/kscreenlocker: add support for killing the screenlocker on consolekit
    
    Original script by Daniel Frey <djqfrey@gmail.com>.
    Modifications by Lars Wendler <polynomial-c@gentoo.org>.
    
    Bug: https://bugs.gentoo.org/647576
    Package-Manager: Portage-2.3.19, Repoman-2.3.6

 kde-plasma/kscreenlocker/files/ck-unlock-session   | 220 +++++++++++++++++++++
 .../files/kscreenlocker-consolekit-unlock.patch    |  13 ++
 .../kscreenlocker-5.12.49.9999.ebuild              |   6 +-
 kde-plasma/kscreenlocker/kscreenlocker-9999.ebuild |   6 +-
 kde-plasma/kscreenlocker/metadata.xml              |   3 +
 5 files changed, 246 insertions(+), 2 deletions(-)}
Comment 3 Arfrever Frehtes Taifersar Arahesis 2018-02-25 19:02:28 UTC
Upstream fix:
https://cgit.kde.org/kscreenlocker.git/commit/?id=68fb0b7d3e1c9358c84aa9ab095a4a3bfb75540a
Comment 4 jospezial 2018-03-19 07:23:56 UTC
(In reply to Arfrever Frehtes Taifersar Arahesis from comment #3)
> Upstream fix:
> https://cgit.kde.org/kscreenlocker.git/commit/
> ?id=68fb0b7d3e1c9358c84aa9ab095a4a3bfb75540a

The patch needs to be removed from kscreenlocker-9999.ebuild.
Comment 5 Larry the Git Cow gentoo-dev 2018-03-19 17:15:02 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/kde.git/commit/?id=830efe98263d5e761b7da9d6cdb45104f52b68cd

commit 830efe98263d5e761b7da9d6cdb45104f52b68cd
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2018-03-19 17:14:20 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2018-03-19 17:14:20 +0000

    kde-plasma/kscreenlocker: Drop custom ck-unlock-session for >=5.13
    
    Upstream commit 68fb0b7d3e1c9358c84aa9ab095a4a3bfb75540a
    
    Bug: https://bugs.gentoo.org/647576
    Package-Manager: Portage-2.3.24, Repoman-2.3.6

 kde-plasma/kscreenlocker/kscreenlocker-9999.ebuild | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)}
Comment 6 Andreas Sturmlechner gentoo-dev 2018-05-26 20:21:05 UTC
KDE Plasma 5.12.5 is stable.