maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   Disabling auto-rotation in Opera Mobile...? (https://talk.maemo.org/showthread.php?t=88496)

Arf the Lab 2013-01-03 03:38

Disabling auto-rotation in Opera Mobile...?
 
Hello, all.

Is it possible to somehow disable auto-rotation in Opera Mobile? The MeeGo version doesn't seem to have an option for it in its settings menu, and the "Home Screen Settings" app's "lock orientation to portrait" setting doesn't effect Opera.

Any help appreciated.

thedead1440 2013-01-03 03:42

Re: Disabling auto-rotation in Opera Mobile...?
 
Quote:

Originally Posted by Arf the Lab (Post 1310379)
Hello, all.

Is it possible to somehow disable auto-rotation in Opera Mobile? The MeeGo version doesn't seem to have an option for it in its settings menu, and the "Home Screen Settings" app's "lock orientation to portrait" setting doesn't effect Opera.

Any help appreciated.

IIRC its not possible to lock Opera's orientation due to it being closed and the app itself having this hard-coded... You can check the Opera thread for the N9; a number of people have requested this already...

titilambert 2013-01-03 14:08

Hello !
Maybe you can !
You can try to deactivate sensors ..
I think is some tthing like :
initctl sensord stop
And to restart
initctl sensord start
You have to launch this commands with root user...

Bye bye

asdfghjkl 2013-01-12 00:17

Re: Disabling auto-rotation in Opera Mobile...?
 
Quote:

Originally Posted by titilambert (Post 1310516)
Hello !
Maybe you can !
You can try to deactivate sensors ..
I think is some tthing like :
initctl sensord stop
And to restart
initctl sensord start
You have to launch this commands with root user...

Bye bye

Cheers for the tip! I've been wanting to do this for a while, but didn't think of disabling the sensors entirely. For some reason initctl doesn't work when called from a shell script, but you can add an alias to shorten the command.

Add the following to ~/.profile:

alias om='devel-su -c "/sbin/initctl stop sensord > /dev/null 2>&1 || true && devel-su -c \"/opt/operamobile-labs/bin/operamobile-labs > /dev/null 2>&1\" - user && /sbin/initctl start sensord" && exit'

Save, restart the terminal, and type "om". Enter the root password, and opera will launch locked in that orientation. When you exit, it'll unlock again. It's a hacky solution (note the nested devel-su :D), but it'll do for now!


All times are GMT. The time now is 18:13.

vBulletin® Version 3.8.8