Active Topics

 


Reply
Thread Tools
Posts: 43 | Thanked: 30 times | Joined on Mar 2010
#11
So I'm having success at producing a prototype using the x11 server available from http://www.zinger-soft.com/.

I'm able to to pause and play rhythmbox on my netbook using my iphone with ruby/gtk. It's fast and responsive.

This should be easily recreated on the n900. I am having a hard time getting a demo up on the n900 cause ruby doesn't share the same love that python does on the n900. And I don't wanna be forced to do it in python or a C language.

But for anyone that does.. The trick is to get the X11 server ($2USD) from http://www.zinger-soft.com.
Open up a terminal on the host machine and type:
export DISPLAY=xxx.xxx.xxx.xxx:0 (xxx being your target ip (address)

Now any program you run will be displayed on your iphone/itouch.

Design your gui with gtk, a geometry of 320x480, and use button entered events followed by a gdk::display warp_pointer off the button.
Using the entered (as opposed to the clicked event) allows the remote xserver on the iphone to use a singe click as opposed to a hard to register double click. The war pointer is used to allow the same button to be "entered" more than once in a row.

Hopefully this weekend I can get a demo up. But ruby with dbus and gtk2 is fighting me all the way.

Edit:: I forgot to mention that i use mobilehotspot (with Titan's kernel) to get a connection between the iphone an the n900.
Props to the authors of those projects. Links when I get more time.

Last edited by zappa; 2010-04-24 at 00:45. Reason: mobilehotspot mention
 
Posts: 43 | Thanked: 30 times | Joined on Mar 2010
#12
So here's a demonstration:

http://www.youtube.com/watch?v=Gc2l1jsFxm4

Edit:
Attached a tar of my source.
Uses the ruby packages from this thread:
http://talk.maemo.org/showthread.php...light=ruby+gtk
Attached Files
File Type: gz nremote.tar.gz (1.7 KB, 72 views)

Last edited by zappa; 2010-04-25 at 20:23.
 
Reply


 
Forum Jump


All times are GMT. The time now is 12:19.