Hello everyone,
We have a problem on our product. We need to rotate the LCD screen to 180
degrees, but not the HDMI.
We are using a riotboard based on imx6Solo SOC.
To do that, we put "ro.sf.hw_rotation=180" in our init.rc, and make
following changes to
frameworks/native/services/surfaceflinger/DisplayDevice.cpp file :
// In DisplayDevice::setProjection(...) {
if (mType == DISPLAY_PRIMARY) {
if (property_get("ro.sf.hwrotation", property, NULL) > 0) {
switch (atoi(property)) {
// ...
case 180:
displayOrientation = DisplayState::eOrientation180;
break;
...
With android 4.4.2 (kernel 3.0.35), it rotates the LCD screen but keeps the
default 0 rotation for external displays (eg HDMI), which is good.
The problem is, we need to switch to 4.4.3, and in this version it rotates
the HDMI screen too (with kernel 3.10.53)
We have looked at differences in android code source, but so far no luck.
we suspect it might be a difference in the kernel code ?
Thanks guys for your help
Phil
--
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/android-developers/21e6a737-d2de-4472-b262-37f3e436632c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.