View Single Post
Posts: 31 | Thanked: 50 times | Joined on Jan 2012 @ Ireland
#3093
Originally Posted by sulu View Post
Can you describe that in more detail please?
In Maemo's /usr/bin, I cloned debian-lxde-50 from debian-lxde. I commented out most of the statements, and changed the default value of WMEXEC from startlxde1 to startlxde50.

Code:
#!/bin/sh
##################################
#Change these two variables to the WM of your choice.
WMEXEC="$1"
[ "x$WMEXEC" != x ] ||  WMEXEC="startlxde50"
##################################
export DISPLAY=:0
# export TSLIB_TSDEVICE=/dev/input/event3
debbie-sue 'echo "chroot is now open!"'
## debbie-sue '/usr/bin/Xephyr :1 -screen 800x480 -br -ac' &
## while [ "x$PARWIN" = "x" ] ; do
##   # wait for Xephyr window to appear
##   export PARWIN=`wmctrl -l | grep -i "N/A Xephyr" | awk '{print $1}'`
## done
## echo "Xephyr window ID is ($PARWIN)"
## DISPLAY=:1 ; debbie-sue "habak -mf /usr/share/fonts/truetype/DroidSans-Bold.$
##      -ht 'Ctrl-back to return to dashboard.'"
## DISPLAY=:0 ; wmctrl -i -r $PARWIN -T 'Easy Debian'
## wmctrl -i -r $PARWIN -b toggle,fullscreen
## DISPLAY=:0 ; wmctrl -i -r $PARWIN -T 'Easy Debian'
## wmctrl -i -r $PARWIN -b toggle,fullscreen
## zenity --display=:0 --info --title="Information" --text="Welcome to Easy Deb$
## while [ "x$TWOWIN" = "x" ] ; do
##   # wait for Zenity dialog to pop up...
##   export TWOWIN=`wmctrl -l | grep -i Information | awk '{print $1}'`
## done
## sudo debian /sbin/qobi-wmhint-fix $PARWIN
debbie-sue /usr/bin/$WMEXEC
## killall Xephyr
export DISPLAY=:0
In Easy Debian's /usr/bin, I cloned startlxde50 from startlxde1. I changed the value of DISPLAY from :1 to 192.168.3.14:1.

In Maemo, I configured the usb0 interface to have address 192.168.3.15.

In Debian on the old laptop, I configured the usb0 interface to have address 192.168.3.14, and I started an X server on display :1.

Originally Posted by sulu View Post
As far as I understand you configured ED's X-Server not to run on Maemo's local one but on the remote one of the laptop. So except for the X-output everything is still happening on the N900, right?
Your understanding is correct. By not running the X server on the N900 we offload a significant amount of processing to the laptop. Contrast this with the approach described by leetnoob (http://talk.maemo.org/showpost.php?p...postcount=2135), which requires an x11vnc server running on the N900 plus the overhead of tightvnc encoding. I found that the user experience provided by the remote X server was vastly superior to that provided by the tightvnc viewer (I tried both).

I found that the remote X setup benefited from having the usb0 connection solely dedicated to X traffic. For example, mplayer running on the N900 was able to play videos smoothly on the remote X display. This also had the advantage that the N900's wlan0 connection could be dedicated to traffic from the rest of the network.

Originally Posted by sulu View Post
I guess the laptop would have to be ancient (early Pentium II) for this procedure to be useful performance-wise.
I think you are asking why would I go to all this trouble when I could just run programs directly on the laptop. Of course that would be possible, but that was not really the point of the experiment. I was interested in trying out the idea of the Ubuntu Edge project, i.e. to have a mobile device which offers the alternative of a desktop experience when required.
 

The Following 4 Users Say Thank You to zerox For This Useful Post: