Ask / Submit
3

add device lock time to ambiance actions [answered]

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

pawel gravatar image

updated 2018-11-21 08:07:38 +0200

I would like to change.my 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

update:

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

Comments

may i accept my answers in future myself dear whoever ?

muchas gracias

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

of course you can accept your own answer.

Edz ( 2018-03-11 10:41:57 +0200 )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 +0200 )edit

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

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

yup, my second nature

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

2 Answers

Sort by » oldest newest most voted
3

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

phklrz gravatar image

Hello,

Install mcetool.

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

edit flag offensive delete publish link more

Comments

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 +0200 )edit

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

phklrz ( 2018-03-11 13:17:29 +0200 )edit
3

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

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

Follow
2 followers

Stats

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

Seen: 306 times

Last updated: Nov 21