maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Command to Turn Screen On & Off (https://talk.maemo.org/showthread.php?t=46862)

mail_e36 2010-03-08 18:12

Command to Turn Screen On & Off
 
Friends,

Does anyone know a CLI command which would turn the screen on or off via an SSH session? The reason I want this is because VNC (x11vnc) only works with the screen on, but I don't always need it on. I want to SSH to the N900 to turn the screen on or off.

If anyone knows, or has ideas, please reply.
Thanks

mardy 2010-03-08 18:28

Re: Command to Turn Screen On & Off
 
This command unlocks the touchscreen and the display:

Code:

dbus-send --print-reply --system --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_tklock_mode_change string:unlocked
Hope it helps! :)

mail_e36 2010-03-08 18:48

Re: Command to Turn Screen On & Off
 
thank you!

the following locks it:

dbus-send --print-reply --system --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_tklock_mode_change string:locked


All times are GMT. The time now is 02:34.

vBulletin® Version 3.8.8