<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>360489</bug_id>
          
          <creation_ts>2016-03-13 19:14:42 +0000</creation_ts>
          <short_desc>kscreenlocker suggests running &quot;loginctl unlock-sessions&quot; even though I don&apos;t use systemd</short_desc>
          <delta_ts>2016-11-27 10:56:49 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>kscreenlocker</product>
          <component>general</component>
          <version>5.5.95</version>
          <rep_platform>Gentoo Packages</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Alexander Potashev">aspotashev</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>bshah</cc>
    
    <cc>dmitryy.demin</cc>
    
    <cc>kde_bugs</cc>
    
    <cc>mgraesslin</cc>
    
    <cc>nick</cc>
    
    <cc>pkozlov.vrn</cc>
    
    <cc>simonandric5</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1582316</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Potashev">aspotashev</who>
    <bug_when>2016-03-13 19:14:42 +0000</bug_when>
    <thetext>When kscreenlocker_greet is unable to start (in my case incompatible Qt components were installed), it shows the following message:
&quot;&quot;&quot;
The screen locker is broken and unlocking is not possible anymore.\n
In order to unlock switch to a virtual terminal (e.g. Ctrl+Alt+F2),\n
log in and execute the command:\n
\n
loginctl unlock-sessions\n
\n
Afterwards switch back to the running session (Ctrl+Alt+F%1).
&quot;&quot;&quot;

But it is not helpful for me because I don&apos;t have systemd installed, thus I don&apos;t have the loginctl binary. This only creates confusion.

How do I unlock session without systemd?

Reproducible: Didn&apos;t try




kscreenlocker-5.5.95</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1582320</commentid>
    <comment_count>1</comment_count>
    <who name="Alexander Potashev">aspotashev</who>
    <bug_when>2016-03-13 19:22:47 +0000</bug_when>
    <thetext>OH SHI~~~

https://plus.google.com/u/0/+MartinGr%C3%A4%C3%9Flin/posts/Pw31EE21BXV</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1582370</commentid>
    <comment_count>2</comment_count>
    <who name="Martin Flöser">mgraesslin</who>
    <bug_when>2016-03-14 07:06:29 +0000</bug_when>
    <thetext>There is nothing wrong there. It&apos;s a fallback for the case that something is seriously broken. We improved that experience from black screen to something which works on 99 % of our users systems. There is no Plasma developer who doesn&apos;t use logind, so it&apos;s just not possible for us to support anything else. We expect the non-logind users to add code for this (which could also be a dummy loginctl binary which just works the same way). (Similar code was contributed to support consolekit in kscreenlocker).

From our side this is a clear wontfix or more a cantfix. Please do not expect us to go an extramile to support a corner case of the corner case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1587280</commentid>
    <comment_count>3</comment_count>
    <who name="Dmitry Demin">dmitryy.demin</who>
    <bug_when>2016-04-07 20:32:23 +0000</bug_when>
    <thetext>If anybody needs it, I have found another solution to the problem, not involving using systemd.
First, we have to determine which session is X11 session. To accomplish that, run
# ck-list-sessions
in any virtual terminal (e.g. using Ctrl+Alt+F2).
One of sessions should contain x11-display property set - that session is possibly corresponding to a locked one:
Session1:
...
x11-display = &apos;:0&apos;

Remember that session name (&quot;Session1&quot;).
Now run the following command as root from the virtual terminal (below su is used to obtain root privileges)
# su -c &apos;dbus-send --system --print-reply --dest=&quot;org.freedesktop.ConsoleKit&quot; /org/freedesktop/ConsoleKit/Session1 org.freedesktop.ConsoleKit.Session.Unlock&apos; 
Where you should replace Session1 with your session name obtained at the previous step using ck-list-sessions.
After that you should be able to switch back to the running session (Ctrl+Alt+F%1).
Tested on Gentoo kde-plasma/kscreenlocker-5.6.2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1587331</commentid>
    <comment_count>4</comment_count>
    <who name="Martin Flöser">mgraesslin</who>
    <bug_when>2016-04-08 05:45:02 +0000</bug_when>
    <thetext>Thanks Dmitry. That approach looks good. Unfortunately it&apos;s a little bit too complex to put on the emergency screen. If we had something as simple as consolekitctl unlock-sessions it would be doable to check whether logind or consolekit is used and show the correct command.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1642030</commentid>
    <comment_count>5</comment_count>
    <who name="pkozlov">pkozlov.vrn</who>
    <bug_when>2016-11-27 10:56:49 +0000</bug_when>
    <thetext>Confirming - I have the same issue and it&apos;s really annoying - I can&apos;t unlock screen if I am currently updating kdelibs or qt or something...

And I don&apos;t use systemd, I use openrc.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>