Ask / Submit

How to set device lock time

asked 2018-03-09 20:05:12 +0300

pawel gravatar image

updated 2018-03-10 22:00:59 +0300

I would like to device lock delay time from a script.

any idea how to do that ? actualy i would like to turn off device lock at home using an ambience. However set-autolock-mode in mcetool does not the trick for me


i think it is ok to closed obvious duplicates and orphaned questions.

i do not think it is needed to accept and close an answer after 4 ! hrs by an admin.

edit retag flag offensive close delete


may i accept my answers in future myself dear whoever ?

muchas gracias

pawel ( 2018-03-10 21:20:02 +0300 )edit

of course you can accept your own answer.

Edz ( 2018-03-11 10:41:57 +0300 )edit


i ask question

somebody answers

somebody accepts this answer for me and closes the question

all within 4 hrs

sorry, but wtfck

pawel ( 2018-03-11 10:46:58 +0300 )edit

I guess you were being sarcastic with your very first comment.

Edz ( 2018-03-11 12:32:54 +0300 )edit

yup, my second nature

pawel ( 2018-03-11 13:02:18 +0300 )edit

1 Answer

Sort by » oldest newest most voted

answered 2018-03-10 17:20:09 +0300

phklrz gravatar image


Install mcetool.

mcetool --set-autolock-delay=<seconds[.fraction]&gt; <="" p=""> </seconds[.fraction]&gt;>

edit flag offensive delete publish link more


does not work for me. I did also use : set autolock mode and does not work too. Neither as normal user nor as root.

have you tried that lately or just checked the mcetool options ?

pawel ( 2018-03-10 21:58:44 +0300 )edit

I just checked the mcetool options. But indeed, some options don't work.

phklrz ( 2018-03-11 13:17:29 +0300 )edit
Login/Signup to Answer

Question tools

1 follower


Asked: 2018-03-09 20:05:12 +0300

Seen: 204 times

Last updated: Mar 10