Last night, I hacked together a quick proof-of-concept video to show those who aren’t inclined to read the debug logs the multitouch capabilities of the G1.



Rather than go the proper route, where the multiple finger events would get pushed up from the touchscreen driver and into the java layer where the android applications live and play - another #android member (ionstorm, who also prompted me to look into multitouch in the first place) - suggested just reading the touchscreen event data from a file in the java layer as a quick way to skip over the hard work and demonstrate the possibility to people visually.

I will clean up and post all the necessary source code and instructions for someone to do this on their own phone so that more people can start playing with this later. For now, the brief rundown is that I modified the Synaptics touchscreen driver to have it create a character device at /dev/tsout that it dumps the touchscreen events to. I made /dev/tsout readable by the java layer, and then modified a fingerpaint example program that Google has posted to draw the circles. I have a thread in there that constantly polls that file, and when it sees data there it fires off an update event to the UI thread which scales the x and y position from the coordinate space of the touchscreen driver into the coordinate space of the android canvas and then draws a small circle there. I have it using a different color for the two fingers to make it easier to see.

The performance of this kind of polling is not that great. There are a few quirks to the multitouch aspect of the G1 - but the most important thing that I see is that even though it might not be a perfect multitouch screen capable of detecting millions of discrete touches - just being able to track 2 fingers should give me the only thing I really want… which is the ability to one day pinch to zoom in on the browser and get rid of those silly magnifying glasses.

Shameless plug Hey - if you want to hook a brother up, buy stuff from amazon and use this search box :)

Tags: , , , ,

57 Responses to “G1 Multitouch Proof-of-Concept Video”

  1. Added this to the frontpage of my site. I hope you keep up the good work so more ppl get interested and start tweaking with it. Also seems you got on engadget with this. I hope that will be enough to spark some attention.

  2. Hey, this has me really excited. I’ve been raving about the G1 from even before I had it, and the thing has yet to let me down. And this just takes it to a whole new level. Keep up the good work, and I cannot wait until I can try this on my phone.

  3. Mobile Flash 10 and Multitouch anounced, and the Qualcomm 3d benchmark demo (somewhere between iphone and ps2 graphics if you haven’t seen it yet) all in one week. The last thing G1 haters have to hate on is a tiny free adapter…….Remember the iPhone Gen 1 earphone adapter that you had to buy from belkin for 15 dollars?

  4. This is great stuff Brian. We’ve added this to our blog as we know how many G1 owners have been waiting for something like this to happen. Let us know when you release the code / guide that lets others figure out how to do this.
    You may have just created a whole new G1 modding niche ;)

  5. that’s dope.. can’t wait for the final result..

  6. Great!

  7. Какие положительные результаты :)

  8. Hey Ryan,

    Thanks for your work on this, it inspired me to look deeper into the multitouch problem on the G1, and I figured out a way to implement multitouch that doesn’t require modifying the kernel at all. In fact it turns out that the Synaptics driver already passes the multitouch events all the way up to the Java stack, and then they get dropped there. The code that you removed the comments from was just debug code, but if you read further down in the driver, you’ll see that events for both touchpoints are actually generated. I got multitouch working through the normal event system, without re-plumbing it or changing the API, by hacking multitouch events to work in a way that is backwards-compatible with single-touch applications. Video and full source are here:

    http://lukehutch.wordpress.com/android-stuff/

  9. awesome, im glade I got ppl to look into this further :)

  10. Дискутировать на эту тему можно бесконечно, поэтому просто поблагодарю автора. Спасибо!

Trackbacks/Pingbacks

  1. Proving the G1 screen can handle multi-touch
  2. Gadget» Blog Archive » G1 multi-touch a reality, integrated headphone jack still just a dream
  3. G1 multi-touch a reality, integrated headphone jack still just a dream | My Blog Channel
  4. Car,gizmo and hot glamour babes » Archive » G1 multi-touch a reality, integrated headphone jack still just a dream
  5. Android G1 - Now With Multi-Touch (Almost) | Gadgets @ GadgetHeat
  6. Gadget Train » Blog Archive » G1 multi-touch a reality, integrated headphone jack still just a dream
  7. G1 multi-touch a reality, integrated headphone jack still just a dream | the daily john
  8. Free Gadget News » Ekran wielodotykowy w G1
  9. Video Proof of the Multi-Touch on G1 | AndroidGuys
  10. G1 multi-touch a reality, integrated headphone jack still just a dream | everygizmo.com
  11. Darkcode’s Technology Blog » Blog Archive » G1 multi-touch a reality, integrated headphone jack still just a dream
  12. winandmac.com
  13. G1 Multitouch on Video | androidaccount.com
  14. Multi-Touch T-Mobile G1 Capability Proven | Mr.Gadget
  15. G1 Multi-Touch Works. And Well…. : tinyComb
  16. Multi-Touch is available on the T-Mobile G1 Mobile Phones - New Mobile Phones - Latest Mobile Phones
  17. Video: Multi-touch on the G1
  18. G1 multi-touch a reality, integrated headphone jack still just a dream | outsiderNews
  19. CrunchGear » Archive » Video: Multi-Touch on the G1
  20. G1 multitouch proof of concept - Hack a Day
  21. Le multi-touch bientôt sur Android?
  22. Video Proof of the Multi-Touch on G1 | The Androider
  23. Android Multitouch Proof of Concept Ain’t Pretty, But It Works | Keyless Doorlocks
  24. Geek Review » Blog Archive » Android G1 - Now With Multi-Touch (Almost)
  25. Gadget» Blog Archive » Android Multitouch Proof of Concept Ain’t Pretty, But It Works [Android]
  26. Démonstration du multitouch sur Android - Gizmodo - Tant d'amour pour ces fabuleux nouveaux gadgets, c'est surnaturel.
  27. G1 multi-touch a reality, integrated headphone jack still just a dream : ipodindia.com
  28. T-Mobile G1 Multitouch Demonstration Video
  29. Tech blog
  30. G1 Multitouch Proof-of-Concept Video | Android Central
  31. Mehovuha House | Умелец доработал экран гуглофона
  32. Multi-touch w G1 | AndroidApps.pl
  33. iPhone 3G » Blog Archive » Video: Multi-touch on the G1
  34. News for Geek » G1 multitouch proof of concept
  35. Video: pantalla multitactil en el G1 | MRTecno
  36. Mobile Android News » Android G1 Multi-Touch Video
  37. android :: G1 android también es multitouch | blog sobre google android en español
  38. G1 multi-touch a reality, integrated headphone jack still just a dream | SulVision
  39. Android HTC G1 è multitouch.. Finalmente la demo
  40. G1 wirklich mit Multi-Touch Funktion! - Funktion, Statement, Trotzdem, Sobald, Multi-Touch-Funktion, Qualität, Eigenschaft, Open - G1Blog.de | Das T-Mobile G1 Blog
  41. Vídeo comprova que o T-Mobile G1 é capaz de multi-touch
  42. 2009 Android Wish List
  43. T-Mobile G1 и Multitouch | Android OS
  44. The Story Of MultiTouch On Android G1 | Open Handset Magazine
  45. T-Mobile G1 Android/ HTC Dream MultiTouch | Mobile Webdesign, Applikationen, Portale, Marketing
  46. Full Working MultiTouch on the T-Mobile G1 Android Phone « Luke Hutchison
  47. Bedienungsanleitung G1 | Smartphone-Blog.de

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>