This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Unlock session by BlueProximity / shell command

Tags: None
(comma "," separated)
poke64
Registered Member
Posts
2
Karma
0
I'm using BlueProximity to lock my session when my phone moves away from my computer by executing this:
Code: Select all
qdbus-qt4 org.kde.screensaver /ScreenSaver Lock

I also found several solutions to unlock Plasma 4. However, it seems that all of these solutions do not work anymore in Plasma 5 for security reasons. What is the preferred way in Plasma 5 to unlock a session by another program now?

Additionally, but not so important, it seems that the command for simulating user activity (to prevent the session from locking) also doesn't work anymore no:
Code: Select all
qdbus-qt4 org.freedesktop.ScreenSaver /ScreenSaver SimulateUserActivity

Is there a way to make this working again, too?
User avatar
google01103
Manager
Posts
6668
Karma
25


OpenSuse Leap 42.1 x64, Plasma 5.x

poke64
Registered Member
Posts
2
Karma
0
That... that was easy. Thank you! Just to mention it: I'm now using
Code: Select all
loginctl lock-session

as locking command and
Code: Select all
loginctl unlock-session

as unlocking and proximity command in BlueProximity.
jimcooper
Registered Member
Posts
1
Karma
0
Works on Sabayon 16.11 with kde. Thanks you saved me a lot of work.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]