ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #19907
Locking screen from an application
-
To:
<ubuntu-phone@xxxxxxxxxxxxxxxxxxx>
-
From:
Maciej Sumiński <maciej.suminski@xxxxxxx>
-
Date:
Thu, 21 Apr 2016 13:26:43 +0200
-
Authentication-results:
spf=pass (sender IP is 188.184.36.50) smtp.mailfrom=cern.ch; lists.launchpad.net; dkim=none (message not signed) header.d=none;lists.launchpad.net; dmarc=bestguesspass action=none header.from=cern.ch;
-
Spamdiagnosticmetadata:
NSPM
-
Spamdiagnosticoutput:
1:23
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0
Is there a way to lock screen by an application? Is there a method in
SDK (I could not find one), a shell command or maybe a D-Bus call that
would do it?
I would like to have a small service that follows proximity sensor and
locks the screen when it detects an event (i.e. I hide my phone in a
pocket, or close its case).
Regards,
Orson
Attachment:
signature.asc
Description: OpenPGP digital signature