← Back to team overview

ubuntu-phone team mailing list archive

Locking screen from an application

 

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