Go Back   maemo.org - Talk > Talk > Brainstorm
 
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
  #11  
Old 2010-04-24, 00:38
zappa zappa is offline
 
Join Date: Mar 2010
Posts: 43
Thanks!: 99
Thanked 30 Times in 13 Posts
Default Re: [Sandbox]iPhone as a controller for n900

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
Reply With Quote
  #12  
Old 2010-04-25, 20:02
zappa zappa is offline
 
Join Date: Mar 2010
Posts: 43
Thanks!: 99
Thanked 30 Times in 13 Posts
Default Re: [Sandbox]iPhone as a controller for n900

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, 59 views)

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 20:36.