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

SailfishOS GUI stuck in portrait mode? [answered]

asked 2018-06-27 21:05:58 +0200

d gravatar image

updated 2018-06-29 21:12:27 +0200

olf gravatar image

I just realized that, since so much time, my autorotation has stopped working as intended: when turning my phone in dynamic mode, all the apps will change orientation to lanscape or back to portrait accordingly, but the GUI (home & notification screen) won't. Just upper notifications will work correctly. The same happens when changing mode to landscape: all the apps behave well, the gui is stuck to portrait, still. How to solve?

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by Spam Hunter
close date 2018-06-29 14:34:43.963844

Comments

3

the hpme screen never rotated imho

pawel ( 2018-06-27 21:40:12 +0200 )edit
1

pardon

rfa ( 2018-06-28 00:30:16 +0200 )edit
1

@rfa - why?, what have you done?, pawel's comment stands, homescreen/switcher rotation is not enabled by default

Spam Hunter ( 2018-06-28 00:54:38 +0200 )edit
2

@pawel The home screen on the Jolla tablet rotates. Just for the record.

luen ( 2018-06-28 02:40:38 +0200 )edit

One way this can happen is if you have changed the setting in the past (see answer below) and OS update reset it.

johanh ( 2018-06-28 09:41:37 +0200 )edit

2 Answers

Sort by » oldest newest most voted
3

answered 2018-06-28 04:47:13 +0200

MeowDude gravatar image

updated 2018-06-29 16:56:19 +0200

Direc gravatar image

The homescreen on the Jolla phones and even port devices does not rotate by default, same with the lockscreen.

EDIT: Tablets rotate by default, phones do not.

EDIT EDIT: Forgot to give credit to coderus for this awesome patch. Thumbs up to coderus, you made my old Droid 4 usable.

EDIT^3: Full support for landscape UI is announced for Sailfish 3.

This is an unofficial way to allow ANY application or UI element to rotate:

Install the Openrepos.net client app Storeman (or alternatively Warehouse, if you are still on SailfishOS < 2.1.4) and use it to install Patchmanager 2.0 by coderus, plus one of the two Patches Allow any orientation except inverted portrait for SailfishOS apps or Allow any orientation for all SailfishOS applications.
Then apply the chosen Patch in Patchmanager and restart the SailfishOS UI (or reboot).

edit flag offensive delete publish link more

Comments

3

Personally I don't like having a patch that is potentially incompatible with updates and for this setting only changes one row in a qml file (see answer above). I prefer to do the change myself.

johanh ( 2018-06-28 09:44:24 +0200 )edit
1

ahahhahahahahaha you soooooooooo funny!

coderus ( 2018-06-28 13:50:02 +0200 )edit

@Jonah, incompatibility is minimized in the current patch manager as it works a bit differently than previous versions. The patch is not really "applied" to a file in the fs, instead the system patches the file "on the fly" when it is loaded to memory.

juiceme ( 2018-06-28 14:35:41 +0200 )edit
4

Thanks for the info. And nice to hear that coderus is happy today :)

johanh ( 2018-06-28 15:36:35 +0200 )edit
1

answered 2018-06-27 21:58:28 +0200

johanh gravatar image

In /usr/lib/qt5/qml/Sailfish/Silica/Page.qml, change "return allowed" to "return Orientation.Portrait | Orientation.Landscape | Orientation.LandscapeInverted".

edit flag offensive delete publish link more

Comments

1

unnecessary, unless the op wants that, but as pawel has mentioned above, the homescreen/app switcher screen never did rotate, it's always been portrait.

Spam Hunter ( 2018-06-27 22:36:10 +0200 )edit
1

Hey, thanks for this nugget of information. Works! :)

Manatus ( 2018-06-28 09:17:46 +0200 )edit

Last OS update (2.2.0) overwrote the changed file, so you need to change the setting again if this happens.

johanh ( 2018-06-28 09:39:29 +0200 )edit
2

thats why patchmanager exists

coderus ( 2018-06-28 13:50:30 +0200 )edit

didnt work for me on sailfish 2.2 on gemini, lost all text and icons in GUI, so had to ssh in to undo it

jakob ( 2018-08-11 11:51:12 +0200 )edit

Question tools

Follow
2 followers

Stats

Asked: 2018-06-27 21:05:58 +0200

Seen: 1,024 times

Last updated: Jun 29 '18