*Participation Requested*
MicroOS Desktop Use to Help with ALP Feedback
-
Deployment: How to deactivate the Session Lock permanently? CLI or Script
Hi,
just finished the first attempt to deploy Leap 15.3 with KDE in my organization.
AutoYast and some custom post-install-scripts are working well.
But one thing drives my crazy:
On default the Session will lock after 5 min. Normally I deactivate it in
Code:
Settings / Configure Desktop, then Workspace / Desktop Behavior / Screen Locking
How can I do the same with CLI or a script?
I already took a look in the most relevant KDE/X11/Plasma configs, but no luck.
Thanks already for reading this!
Hendrik
-
Re: Deployment: How to deactivate the Session Lock permanently? CLI or Script
Just to understand you correctly, you can deactivate the session lock using the GUI, right? Please confirm.
The tools to do things using the CLI is kcmshell5, try kcmshell5 --help.
-
Re: Deployment: How to deactivate the Session Lock permanently? CLI or Script
Hi marel,
thanks for your answer.
The GUI solution is working, but I an searching a way to do the same with CLI/script.
With
HTML Code:
kcmshell5 screenlocker
I am able to directly open the Settings Windows with the screenlock parameters.
How do I modify them with this comand?
Thanks Hendrik
-
Re: Deployment: How to deactivate the Session Lock permanently? CLI or Script
See https://askubuntu.com/questions/8036...-screen-locker
Maybe it needs some work, but I think you should be able to get it to work using these instructions.
Would be good to post what you did if you made it work.
-
Re: Deployment: How to deactivate the Session Lock permanently? CLI or Script
I found some sort of workaround:
HTML Code:
kwriteconfig5 --file kscreenlockerrc --group 'Daemon' --key 'Timeout' '99'
This sets the timeout to 99min, the max value.
I will try to dig deeper in this cmd to find the correct args to disable the locking completely.
-
Re: Deployment: How to deactivate the Session Lock permanently? CLI or Script
I am just jumping in and did not read all posts above. But often in such configurations, a vlue of 0 switches a timing off complete. Did you check that?
BTW your code is not HTML the real CODE tags are just left of it: the # one.
Henk van Velden
-
Re: Deployment: How to deactivate the Session Lock permanently? CLI or Script
 Originally Posted by localhorst
I found some sort of workaround:
HTML Code:
kwriteconfig5 --file kscreenlockerrc --group 'Daemon' --key 'Timeout' '99'
This sets the timeout to 99min, the max value.
I will try to dig deeper in this cmd to find the correct args to disable the locking completely.
Try
Code:
kwriteconfig5 --file kscreenlockerrc --group 'Daemon' --key Autolock false
openSUSE Leap 15.4; KDE Plasma 5
-
Re: Deployment: How to deactivate the Session Lock permanently? CLI or Script
Hi and thank you deano_ferrari!
This is the solution I am looking for:
Code:
sudo -u $USER kwriteconfig5 --file kscreenlockerrc --group 'Daemon' --key Autolock false
Thank you all for helping me out!
@deano_ferrari Would you let me know where you found this information? I want to learn more of this cli kde settings stuff ...
Greetings from Germany,
Hendrik
-
Re: Deployment: How to deactivate the Session Lock permanently? CLI or Script
 Originally Posted by localhorst
Hi and thank you deano_ferrari!
This is the solution I am looking for:
Code:
sudo -u $USER kwriteconfig5 --file kscreenlockerrc --group 'Daemon' --key Autolock false
Thank you all for helping me out!
@deano_ferrari Would you let me know where you found this information? I want to learn more of this cli kde settings stuff ...
Greetings from Germany,
Hendrik
I examined ~/.config/kscreenlockerrc and after toggling 'Lock screen automatically' via the systemsettings5 GUI I could observe the 'Autolock=false' key being removed and added, (depending on when being enabled or disabled). Anyway, here is my current configuration
Code:
~> cat ~/.config/kscreenlockerrc
[$Version]
update_info=kscreenlocker.upd:0.1-autolock
[Daemon]
Autolock=false
Timeout=10
[Greeter]
Theme=org.openSUSE.desktop
WallpaperPlugin=org.kde.potd
[Greeter][Wallpaper][org.kde.color][General]
Color=0,0,0
[Greeter][Wallpaper][org.kde.slideshow][General]
Color=85,0,255
FillMode=6
SlidePaths=/home/dean/Pictures
Last edited by deano_ferrari; 31-Aug-2021 at 12:25.
openSUSE Leap 15.4; KDE Plasma 5
-
Re: Deployment: How to deactivate the Session Lock permanently? CLI or Script
Hi,
I just got something similar to this topic:
I need to activate the Numlock on every boot via CLI/Script.
This is the way to do it via GUI:
Code:
Settings / Input Devices/ Keyboard / Numlock at Plasma Start
This Settings corespondents to the file
Code:
~/.config/kcminputrc
There is a Entry that saves the settings: 0 is Enabled at boot
1 ist Disabled at boot
2 is don't care
Unfortunately this modified file will not work after a reboot to set the Numlock on.
Any ideas to trigger this settings (like the GUI) via CLI?
Greetings and thanks,
Hendrik
PS: Should I opened a new thread for this question? Let me know ...
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|