Fermata icon indicating copy to clipboard operation
Fermata copied to clipboard

Feature Request: Toggle to disable landscape rotation in Fermata Mirror

Open illuzn opened this issue 1 year ago • 4 comments

Firstly, thank you so much for this app.

I'm using Fermata Mirror on Xiaomi Mix Fold 2 running OEM Android 13 ROM and Android Auto 12.2.642414.

This works great except Fermata Mirror keeps trying to auto rotate my screen to landscape. Is there a way you can add a toggle to Fermata settings to disable this rotation? For example, using the YouTube app, it is much easier to find new videos using portrait mode then tap the full screen button to switch to landscape while watching.

Thanks again.

illuzn avatar Jul 17 '24 14:07 illuzn

Currently, there is no such an option. The landscape mode is forced, when the car screen width > height. You can temporary disable this mode by touching the phone screen.

AndreyPavlenko avatar Jul 17 '24 14:07 AndreyPavlenko

You can temporary disable this mode by touching the phone screen.

Interesting, I did see that in the code but it doesn't seem to work for me... device continuously tries to switch to landscape even as I'm furiously tapping the screen.

Let me know how I can debug or provide logs if you need to assist with this.

illuzn avatar Jul 18 '24 01:07 illuzn

It's implemented here - https://github.com/AndreyPavlenko/Fermata/blob/master/fermata/src/auto/java/me/aap/fermata/auto/MirrorDisplay.java#L593

If you have the auto rotation enabled, it's disabled when the mirror is started and temporary enabled again on touch.

AndreyPavlenko avatar Jul 18 '24 17:07 AndreyPavlenko

It looks like I've discovered something more. If my device auto rotation is lock/ off, that is when I encounter this problem. It seems like the device thinks it should be locked in landscape mode and any action I take returns to portrait for a split second then rotates to landscape (e.g. Exiting youtube full screen mode).

illuzn avatar Jul 22 '24 03:07 illuzn