ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #20116
Re: power-off app
-
To:
Matthias Apitz <guru@xxxxxxxxxxx>, ubuntu-phone <ubuntu-phone@xxxxxxxxxxxxxxxxxxx>
-
From:
Maciej Sumiński <maciej.suminski@xxxxxxx>
-
Date:
Mon, 25 Apr 2016 10:09:15 +0200
-
Authentication-results:
spf=pass (sender IP is 188.184.36.48) 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;
-
In-reply-to:
<20160425080125.GA3113@c720-r292778-amd64>
-
Spamdiagnosticmetadata:
NSPM
-
Spamdiagnosticoutput:
1:23
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0
On 04/25/2016 10:01 AM, Matthias Apitz wrote:
>
> Hello,
>
> Do we have some small app which does the same as a short press on the
> power-button, just to switch-off the desktop? If not, how this could be
> done from shell/dbus/... I'd write a small app in QML for this. The
> background is, that the case of my M10 makes it complicate to press the
> button due to some fixating of the case there.
>
> Thanks
>
> matthias
Hi Matthias,
The magic spell is:
$ dbus-send --type=method_call --dest=org.gnome.ScreenSaver
/org/gnome/ScreenSaver org.gnome.ScreenSaver.Lock
I have exactly the same problem with my case for Aquaris E5, and I am
about to write a small daemon that locks the screen upon an event from
proximity sensor. I will let you know once it is done & tested, if you
are interested.
Regards,
Orson
Attachment:
signature.asc
Description: OpenPGP digital signature
Follow ups
References