|
2010-01-19
, 23:13
|
Posts: 317 |
Thanked: 787 times |
Joined on Oct 2009
@ Krakow, Poland
|
#2
|
|
2010-01-19
, 23:27
|
Posts: 8 |
Thanked: 4 times |
Joined on Jan 2010
|
#3
|
|
2010-01-19
, 23:31
|
Posts: 58 |
Thanked: 7 times |
Joined on Nov 2009
@ Hilversum
|
#4
|
|
2010-04-03
, 11:20
|
Posts: 1 |
Thanked: 0 times |
Joined on Apr 2010
@ London
|
#5
|
|
2010-04-03
, 11:26
|
|
Posts: 579 |
Thanked: 286 times |
Joined on Oct 2009
@ Australia
|
#6
|
|
2010-04-04
, 20:14
|
Posts: 203 |
Thanked: 152 times |
Joined on May 2009
@ Austria
|
#7
|
dbus-send --print-reply --system --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_tklock_mode_change string:unlocked
#!/bin/bash host=yourN900ipAdress ssh user@$host 'x11vnc' & sleep 10 xtightvncviewer -quality 3 -compresslevel 9 $host & cmdstr="ps -A" cmdres=`$cmdstr | grep "xtightvncviewer"` while [ "$cmdres" != "" ]; do ssh user@$host 'dbus-send --print-reply --system --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_tklock_mode_change string:unlocked' sleep 30 cmdres=`$cmdstr | grep "xtightvncviewer"` done
|
2010-04-04
, 21:56
|
Posts: 8 |
Thanked: 4 times |
Joined on Jan 2010
|
#8
|
with
the screen wakes up again. If you are using linux on you host pc, you could use my bash script. but: you first need a permanent ssh authentification to your N900
x11vnc& x11pid=$! active=`pidof x11vnc | grep "$x11pid"` while [ "$active" != "" ]; do dbus-send --print-reply --system --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_tklock_mode_change string:unlocked sleep 30 active=`pidof x11vnc | grep "$x11pid"` done
#!/bin/bash host=yourN900ipAdress ssh user@$host '~/bin/x11vnckeepawake' & sleep 10 vncviewer $host &
The Following 3 Users Say Thank You to dryeti For This Useful Post: | ||
|
2011-12-13
, 03:14
|
Posts: 3 |
Thanked: 0 times |
Joined on Nov 2011
|
#9
|
Thanks a lot for this script!
To get independent of a permanent ssh authentification I decided to have the 'keep screen awake' part running on the n900 itself.
Then you have the following script (~/bin/x11vnckeepawake) on the n900:
and this one on your linux pc:Code:x11vnc& x11pid=$! active=`pidof x11vnc | grep "$x11pid"` while [ "$active" != "" ]; do dbus-send --print-reply --system --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_tklock_mode_change string:unlocked sleep 30 active=`pidof x11vnc | grep "$x11pid"` done
Code:#!/bin/bash host=yourN900ipAdress ssh user@$host '~/bin/x11vnckeepawake' & sleep 10 vncviewer $host &
This would be cool