Power & Source of Big Ideas

Can the screen be used in Landscape mode?

Moderators: chensy, FATechsupport

Has anyone worked out if the screen can be used in Landscape mode?

I need to write a quick test programme to see if we can force this into landscape from code but wondering if anyone has done this already and can confirm it works?

I have a design from a previous Olimex board I want to port to the M3 and T3 and it would save me having to do new screen layouts in portrait if this was possible.
Is Qt involved?
davef wrote:
Is Qt involved?


No, Android with native coding in Android Studio.
The most easy way to achieve this is by using one of the many screen rotation apps from the play store, for example that one: https://play.google.com/store/apps/deta ... trol&hl=en

If you create your own app in Android Studio you can also mark your Activity to be landscape only in the manifest. See https://developer.android.com/guide/top ... tml#screen for more info.
Alternatively this can also be done by code: https://developer.android.com/reference ... tation(int)
Not required. I rebuild the kernel and Android OS from source so now it boots in landscape mode.

I also added GSM modem support so now also have data coverage outside WiFi areas.
That's certainly the easiest :lol:
v8dave wrote:
Not required. I rebuild the kernel and Android OS from source so now it boots in landscape mode.

I also added GSM modem support so now also have data coverage outside WiFi areas.


Our LCD device is 480x854.
I've swapped xresol/yresol in kernel frame buffer source code,(not changing cpu MLC resolution register value)
so that it is reported to android to 854 x 480 and make android to prepare screen with landscape mode correctly.
So that when the buffer is actually displayed to frame buffer hardware we rotate 90 degree in android source code by modifiing the following source codes:

DisplayDevice.cpp::DisplayDevice() constructor source

In that constructor setProjection() method is called with orientation 90 degree.
But the screen is not displayed correctly in landscape mode.

Can you let me know the source code list to change?
Or if patch file is available that will be do enough too for me.

Thank you.
I am overseas just now but I will post a link to the source for you and details of how to change it on my return next week.

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 47 on Wed Feb 21, 2018 7:00 am

Users browsing this forum: No registered users and 1 guest