View Single Post
Posts: 4 | Thanked: 1 time | Joined on Jan 2013
#4
Originally Posted by titilambert View Post
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 ), but it'll do for now!

Last edited by asdfghjkl; 2013-01-12 at 08:50.