maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   LPS/Standby from terminal (https://talk.maemo.org/showthread.php?t=91757)

DJJonosound 2013-11-09 14:19

LPS/Standby from terminal
 
Cant find anywhere stating how one could do this. Is there a command that can be entered in terminal to put the device into sleep mode/lps/standby whatever its called?

Thanks,
Jono

thedead1440 2013-11-09 14:52

Re: LPS/Standby from terminal
 
Use mcetool to simulate the pressing of the power button.

Mikkosssss 2013-11-09 15:08

Re: LPS/Standby from terminal
 
This is script made by Shurman from N9QT
Code:

#!/bin/sh

echo rootme | sudo sh -c "dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_tklock_mode_change string:locked;dbus-send --system --type=method_call --print-reply --dest=com.nokia.devicelock /request com.nokia.devicelock.setState int32:1 int32:1"

exit 0

It also activates security code instantly if you have delayed lock.

DJJonosound 2013-11-10 03:14

Thanks guys


All times are GMT. The time now is 01:56.

vBulletin® Version 3.8.8