We have moved to a new Sailfish OS Forum. Please start new discussions there.
0

Command to set screen rotation?

asked 2015-12-20 08:58:15 +0200

mynameisnotimportant gravatar image

Is there a command line way to switch between portrait and dynamic screen orientation? Combined with the situations app, this would be great to set the screen to portrait while in bed at night.

edit retag flag offensive close delete

2 Answers

Sort by » oldest newest most voted
1

answered 2015-12-20 18:44:57 +0200

coderus gravatar image

inside dconf there is /lipstick/orientationLock property, which is controlled by system settings in device category.

edit flag offensive delete publish link more

Comments

thank you very much! For anyone stumbling accross this, the exact command I used was dconf write /lipstick/orientationLock \'portrait\' for portrait (replace portrait with dynamic for auto rotation).

mynameisnotimportant ( 2015-12-21 19:17:49 +0200 )edit
0

answered 2015-12-20 14:02:20 +0200

pawel gravatar image

do you know that you can tap and turn the device ? example: dynamic orientation is on, you read in portrait you tap on app and turn the orientation. the orientation is now fixed to landscape

edit flag offensive delete publish link more

Comments

1

Thank you for your answer. Yes, I know about that, and while it is useful during the say, or for quickly locking the rotation within one app, it is rather annoying to have to re-do the gesture every time you switch apps.

mynameisnotimportant ( 2015-12-20 14:07:14 +0200 )edit
Login/Signup to Answer

Question tools

Follow
1 follower

Stats

Asked: 2015-12-20 08:58:15 +0200

Seen: 1,611 times

Last updated: Dec 20 '15