Ask / Submit

add device lock time to ambiance actions [answered]

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

pawel gravatar image

updated 2018-12-28 17:31:20 +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 reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by pawel
close date 2018-11-21 14:24:51.277602


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

2 Answers

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

answered 2018-11-21 11:13:02 +0300

spiiroin gravatar image

Changing device lock timeout requires user authentication -> Automated changing would need to either accommodate that (adds complexity, is potential security hole) or bypass it altogether (direct security hole).

(and those mce things relate to "touchscreen and keypad lock" aka tklock, which is not the same thing as device lock)

edit flag offensive delete publish link more

Question tools



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

Seen: 312 times

Last updated: Nov 21 '18