Jump to content
funtoo forums
  • 0
Sign in to follow this  

screen locked - unlock



I am not sure if this is right place (portage help subforum), so please free to move/remove my topic.


Today I run an update and I missed warning about locked broken screen.

Anway, at some point screen got locked with the message suggesting to login from another terminal and enter

loginctl unlock-sessions


however this is not recognized command (by consolekit).

Thankfully I have found a solution at gennto forums:


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:
x11-display = ':0'

Remember that session name ("Session1").
Now run the following command as root from the virtual terminal (below su is used to obtain root privileges)
# su -c 'dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Session1 org.freedesktop.ConsoleKit.Session.Unlock'
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+F7).


this actually fixed problem with locked/broken screen.


Maybe funtoo advice regarding



loginctl unlock-sessions


should be removed if not working?

I don't know if any viable solution is possible but at least nobody will try to run invalid command.


Thank you

Share this post

Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

You are commenting as a guest. If you have an account, please sign in.
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoticons maximum are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this