phone GUI display on Xnest

Shakthi Kannan shakthimaan at
Tue Aug 7 21:03:08 CEST 2007


I am trying to get the X GUI display from the phone onto Xnest on the
desktop. I open two terminal tabs on the desktop (Debian Etch, I do the following on both of the tabs:

  xhost +

On the first tab, i run:
  Xnest :1 -dpi 283 -geometry 480x640+86+295

On the second tab, I ssh into:
  ssh -l root -X -v

I export the DISPLAY (second tab through ssh, runs on the phone) as:
  export DISPLAY=

I try to run x-window-manager (second tab through ssh, runs on the phone),

and I get the following output on the second tab:
  Xlib: connection to "" refused by server
  Xlib: No protocol specified
  Cannot open display

On the first tab (running Xnest), I get this error:
  4401: Xnest: client 2 rejected from IP
  4401: Xnest: client 2 rejected from IP
  4401: Xnest: client 1 rejected from IP

So, the following page suggested XAuthority:

xauth add $(hostname)/unix$1 . $MCOOKIE
xauth add localhost/unix$1 . $MCOOKIE
Xnest "$@"
xauth remove $(hostname)/unix$1 localhost/unix$1
exit 0

So, I replaced $mcookie with the cookie number from output of "auth
list", and ran the above script as:
  sh :1 -dpi 283 -geometry 480x640+86+295

I still get the connection rejected Xnest errors. I have also tried
removing -nolisten in  /etc/X11/xinit/xserverrc.

Any suggestions on what I am missing, and how I can get the phone GUI
display onto the desktop?



Shakthi Kannan

More information about the openmoko-devel mailing list