Reply
Thread Tools
Posts: 58 | Thanked: 7 times | Joined on Nov 2009 @ Hilversum
#1
Is is possible to serve up VNC *from* the N900 so I can control it from the PC? Or share the X session on the PC?

This would be cool
 
Posts: 317 | Thanked: 787 times | Joined on Oct 2009 @ Krakow, Poland
#2
Yes, it is possible. There is x11vnc package in extras-devel for that.
 
Posts: 8 | Thanked: 4 times | Joined on Jan 2010
#3
I got the problem that I do have a perfect vnc connection - however - when I don't touch the n900 at some point the screen saver (=screen off) will be active.
Then, I cannot remotely reinvoke the screen.
Anyone with the same problem?

An idea would be to have a command to turn on the screen by ssh.
 
Posts: 58 | Thanked: 7 times | Joined on Nov 2009 @ Hilversum
#4
Yes, the screen going dark kinda makes this unusable...
 
Posts: 1 | Thanked: 0 times | Joined on Apr 2010 @ London
#5
I just tried x11vnc and it works great. Package is in the extras-testing repository now, you cat enable this repository using details here:
http://thenokiablog.com/2009/10/27/m...-applications/

To solve the screen going dark every 30 seconds (or 2 minutes) you can enable the option in the display settings which says "Display stays lit when charging"

This way you can vnc without problems if you have the phone charging.
 
felbutss's Avatar
Posts: 579 | Thanked: 286 times | Joined on Oct 2009 @ Australia
#6
get the app called simple brightness app. with that u can control ur brightness and quickly set ur screen to always be on. thats with i do for vnc connections
 

The Following 2 Users Say Thank You to felbutss For This Useful Post:
Posts: 203 | Thanked: 152 times | Joined on May 2009 @ Austria
#7
with
dbus-send --print-reply --system --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_tklock_mode_change string:unlocked
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


Code:
#!/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
 

The Following 2 Users Say Thank You to AndiThebest For This Useful 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:
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
 
Reply

Thread Tools

 
Forum Jump


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