View Single Post
Posts: 8 | Thanked: 4 times | Joined on Jan 2010
#8
Originally Posted by AndiThebest View Post
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
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:
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
and this one on your linux pc:
Code:
#!/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: