LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 05-20-2018, 09:34 PM   #1
BryanFRitt
Member
 
Registered: May 2004
Distribution: Debian
Posts: 39

Rep: Reputation: 1
KDE Lock Screen Command(s)?


I'm trying to set up BlueProximity to blank and lock the screen whenever the phone goes out of range. I found some older commands that don't work with this version of KDE, but no commands that work under Debian 9.x (Stretch) for KDE. What's the command to lock the screen in KDE? Closest thing I found was
Code:
xset dpms force off
http://blueproximity.sourceforge.net/
https://www.kde.org/
https://www.debian.org/
 
Old 05-21-2018, 11:17 PM   #2
BryanFRitt
Member
 
Registered: May 2004
Distribution: Debian
Posts: 39

Original Poster
Rep: Reputation: 1
Found how lock/unlock!
Code:
loginctl lock-session 1
Code:
loginctl unlock-session 1
This is roughly the same code as from here, except adds a '1' for the session number(s)(and makes 'session' singular, no 's' at the end, so that doesn't need root password):
https://forum.kde.org/viewtopic.php?...130691#p350000
So I can put this together using with the xset command.
Code:
xset dpms force off
For 'Locking command': (For this Does order matter? and Does '&&' or ';' matter?),
odd...trying from the command line seams to have to have `xset dpms force off` before and after, for it to go and stay blank.
Code:
xset dpms force off && loginctl lock-session 1 && xset dpms force off
For 'UnLocking command':
Code:
loginctl unlock-session 1
See also:
Code:
man loginctl

Last edited by BryanFRitt; 05-21-2018 at 11:55 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable lock session (lock screen) when switch user in KDE 4.x Murz Linux - Desktop 4 12-01-2010 08:28 AM
[SOLVED] KDE 4.4.5 - no lock screen, no screen saver dc_eros Slackware 1 08-23-2010 03:04 PM
Lock-screen command? halo14 Linux - General 1 04-15-2005 03:37 PM
kde lock screen shortcut firestomper41 Linux - Software 2 09-17-2004 12:34 PM
Installed KDE 3.2 and no more lock screen... moo083 Linux - Software 2 02-10-2004 11:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 11:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration