Rotate

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(Add link to patch to use libxrandr, add some level two headers)
Line 17: Line 17:
 
   http://dev.laptop.org/~cjb/rotate
 
   http://dev.laptop.org/~cjb/rotate
  
 +
== Patches ==
 
And you're welcome to make patches against the GIT repo here:
 
And you're welcome to make patches against the GIT repo here:
 
   git://github.com/cjb/freerunner-rotate.git
 
   git://github.com/cjb/freerunner-rotate.git
  
 +
* [http://blog.1407.org/2008/09/20/openmoko-rotate-now-using-libxrandr/ Patch for using libxrandr] instead of system+xrandr -- Rui Miguel Silva Seabra <rms_ghaaaNoSpamPlease_at_1407_org>
 +
 +
== Maintainership ==
 
Would anyone else be interested in being the maintainer of this package?
 
Would anyone else be interested in being the maintainer of this package?
 
It would involve packaging it up in bitbake/OE and trying to persuade
 
It would involve packaging it up in bitbake/OE and trying to persuade
Line 31: Line 35:
 
Chris Ball  <cjb_at_laptop_dot_org>
 
Chris Ball  <cjb_at_laptop_dot_org>
  
Package from Jozef Mlich (not perfect):
+
== Packages and Binaries ==
  
 +
* Package from Jozef Mlich (not perfect):
 
   opkg install http://www.stud.fit.vutbr.cz/~xmlich02/openmoko/accel-rotate_0.2_armv4t.ipk
 
   opkg install http://www.stud.fit.vutbr.cz/~xmlich02/openmoko/accel-rotate_0.2_armv4t.ipk
 
   update-rc.d accel-rotate defaults
 
   update-rc.d accel-rotate defaults
 +
* Arm [http://files.1407.org/2008/09/20/ binary built] by Rui
  
 
[[Category:Applications]]
 
[[Category:Applications]]
 
[[Category:Accelerometer]]
 
[[Category:Accelerometer]]

Revision as of 02:43, 20 September 2008

Rotate is one of the applications that runs on the Openmoko Phones. For a list of all applications, visit Applications

Here's a quick and simple C program that reads a packet from the accelerometer once per second, and rotates the screen to a new orientation if the orientation has changed.

I don't mean this to conflict with Paul's excellent work on Gestures; my reason for writing it is so that it can be used as an always-on daemon in the OM distributions. (Full gesture interpretation is more CPU heavy and requires reading data more often than once per second, so perhaps that will be done on-demand instead of always-on.)

The code is:

  http://github.com/cjb/freerunner-rotate/tree/master/rotate.c?raw=true

There's an ARM binary here (chmod a+x rotate && ./rotate):

  http://dev.laptop.org/~cjb/rotate

Patches

And you're welcome to make patches against the GIT repo here:

  git://github.com/cjb/freerunner-rotate.git

Maintainership

Would anyone else be interested in being the maintainer of this package? It would involve packaging it up in bitbake/OE and trying to persuade the various OM distros to include it by default. (Perhaps with an on/off control panel entry in distros that make that easy to do?)

Comments appreciated. Thanks!

- Chris. -- Chris Ball <cjb_at_laptop_dot_org>

Packages and Binaries

  • Package from Jozef Mlich (not perfect):
  opkg install http://www.stud.fit.vutbr.cz/~xmlich02/openmoko/accel-rotate_0.2_armv4t.ipk
  update-rc.d accel-rotate defaults
Personal tools

Rotate is one of the applications that runs on the Openmoko Phones. For a list of all applications, visit Applications

Here's a quick and simple C program that reads a packet from the accelerometer once per second, and rotates the screen to a new orientation if the orientation has changed.

I don't mean this to conflict with Paul's excellent work on Gestures; my reason for writing it is so that it can be used as an always-on daemon in the OM distributions. (Full gesture interpretation is more CPU heavy and requires reading data more often than once per second, so perhaps that will be done on-demand instead of always-on.)

The code is:

  http://github.com/cjb/freerunner-rotate/tree/master/rotate.c?raw=true

There's an ARM binary here (chmod a+x rotate && ./rotate):

  http://dev.laptop.org/~cjb/rotate

Patches

And you're welcome to make patches against the GIT repo here:

  git://github.com/cjb/freerunner-rotate.git

Maintainership

Would anyone else be interested in being the maintainer of this package? It would involve packaging it up in bitbake/OE and trying to persuade the various OM distros to include it by default. (Perhaps with an on/off control panel entry in distros that make that easy to do?)

Comments appreciated. Thanks!

- Chris. -- Chris Ball <cjb_at_laptop_dot_org>

Packages and Binaries

  • Package from Jozef Mlich (not perfect):
  opkg install http://www.stud.fit.vutbr.cz/~xmlich02/openmoko/accel-rotate_0.2_armv4t.ipk
  update-rc.d accel-rotate defaults