Ideal screen rotation

Rui Miguel Silva Seabra rms at
Fri Nov 6 18:22:27 CET 2009

On Fri, Nov 06, 2009 at 04:40:04PM +0100, Helge Hafting wrote:
> Rui Miguel Silva Seabra wrote:
> > On Wed, Nov 04, 2009 at 01:55:29PM +0100, Helge Hafting wrote:
> [...]
> >> The software that control rotation need to know if the foreground app
> >> should run in landscape, portrait or auto mode. (And perhaps the 
> >> upside-down variants as well.)
> > 
> > Or, what I think would be the proper way to do it, the application should
> > broadcast to dbus that it prefers no rotation, or one of the 4 possible
> > rotation states and omnewrotate could listen to such requests and
> > not rotate while there is such a message in the bus.
> Well, you cannot expect every app to have such preferences, this device
> runs generic linux apps that aren't made specially for the freerunner. 
> Now, of course the app loader can do this, similiar to how we already 
> request the cpu/backlight when launching some apps.
> But there is a problem. The user may switch between several apps with
> different rotation needs. (xmahjongg needs landscape, tetris needs 
> portrait, ...)  How will omnewrotate be notified about this?

The proper way is to define a set of DBUS signals.

Of course conflicting signals need to be ignored.


More information about the community mailing list