ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #20143
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 15:39:52 +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;
-
In-reply-to:
<20160425082107.GA3272@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:21 AM, Matthias Apitz wrote:
> El día Monday, April 25, 2016 a las 10:09:15AM +0200, Maciej Sumiński escribió:
>
>> Hi Matthias,
>>
>> The magic spell is:
>>
>> $ dbus-send --type=method_call --dest=org.gnome.ScreenSaver
>> /org/gnome/ScreenSaver org.gnome.ScreenSaver.Lock
>
> Hi Maciej,
>
> I tested it from the shell:
>
> $ dbus-send --type=method_call --dest=org.gnome.ScreenSaver /org/gnome/ScreenSaver org.gnome.ScreenSaver.Lock
>
> but this does only the lock, but no suspend.
>
> matthias
Then there is a chance that you will find something appropriate in the
powerd [1] source code.
Regards,
Orson
http://bazaar.launchpad.net/~phablet-team/powerd/trunk/files/head:/libsuspend/
Attachment:
signature.asc
Description: OpenPGP digital signature
References