- Talk - Talk (
-   MeeGo / Harmattan (
-   -   Set and lock orientation (

titilambert 01-03-2013 10:16 AM

Set and lock orientation
Hello !
I'm trying to make a small python application which will be able to set and lock the global orientation of the device... I already look the code of glol but i don t really understand how i can make it in python....
Maybe someone have already try to do that ?
Or maybe there is a dbus function ??? Or something else ?

Thanks !!

coderus 01-03-2013 11:53 AM

Re: Set and lock orientation
just you cant.

titilambert 01-03-2013 12:42 PM

Re: Set and lock orientation

Originally Posted by coderus (Post 1310541)
just you cant.

Thanks !!!

Nad 01-03-2013 12:46 PM

Re: Set and lock orientation
Errm, there is a mod in N9QT that achieves this. Should be possible to implement in py if you look at the script but I assume root perms will be required.

coderus 01-03-2013 01:09 PM

Re: Set and lock orientation
@Nad you talking about different thing

titilambert 01-04-2013 08:52 AM

And what about compile glol in share object and import it with ctypes ?

titilambert 01-04-2013 09:16 AM

Or you python-contextkit to create provider ?

coderus 01-04-2013 10:21 AM

Re: Set and lock orientation
@titilambert why not to use glol cli tool then?
Context.Provider doesn't contain hacky functions for overriding system properties.

titilambert 01-06-2013 12:29 PM

Hi !
Thanks !
In fact, i trying to do an N950 app which lock orientation in portrait mode when the keyboard is close and landscape when is open... It doesn t care about sensors ...
I use glol for now, but i quite slow to kill glol and relaunch glol when i open or close the keyboard ...

All times are GMT -4. The time now is 11:20 AM.

vBulletin® Version 3.8.8