View Single Post
Posts: 3 | Thanked: 0 times | Joined on Nov 2011
#9
Originally Posted by dryeti View Post
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 &
It doesnt work on me, can you explain more detail how to do that ? thank you very much