Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle second second screen orientation #157

Open
pintaf opened this issue Jan 5, 2021 · 2 comments
Open

Handle second second screen orientation #157

pintaf opened this issue Jan 5, 2021 · 2 comments

Comments

@pintaf
Copy link
Member

pintaf commented Jan 5, 2021

Second screens are handled by Android in maru as far as I understood.

How can we set orientation of the second screen ? for example if it is in portrait mode.

Should it be done by the linux container or handled by Android ?
If it is the later, here are some hints I found:

https://play.google.com/store/apps/details?id=com.farmerbb.secondscreen.free&hl=en_US&gl=US&showAllReviews=true
https://android.stackexchange.com/questions/117003/allow-rotate-into-portrait-mode-but-do-not-rotate-external-display
https://stackoverflow.com/questions/54502032/how-can-we-programmatically-control-the-screen-orientation-in-secondary-displays

@utzcoz
Copy link
Member

utzcoz commented Feb 7, 2021

Yes, we can do it. We just need to change the surface size used by mflinger, and the mclient will adapt to it.
@pintaf could you provide the use case for this feature? If it may be used for some important occasion, we could consider to implement it.

@pintaf
Copy link
Member Author

pintaf commented Feb 14, 2021

no, I would not say it's such an important occasion, but maybe if we allow setting the surface size (that sometimes default to 720p) in the settings, maybe we could also add a setting for portrait or landscape mode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants