You need to update the lcd parameter on dts file by yourself.
In addition, you don’t forget to modify following files
- hardware/amlogic/hwcomposer/common/hwc/HwcConfig.cpp
diff --git a/common/hwc/HwcConfig.cpp b/common/hwc/HwcConfig.cpp
index 95ddd8d..d690564 100644
--- a/common/hwc/HwcConfig.cpp
+++ b/common/hwc/HwcConfig.cpp
@@ -20,8 +20,8 @@
#define HWC_DISPLAY_NUM 1
//hdmi and lcd
-#define LCD_HWC_PRIMARY_FRAMEBUFFER_WIDTH 1080
-#define LCD_HWC_PRIMARY_FRAMEBUFFER_HEIGHT 1920
+#define LCD_HWC_PRIMARY_FRAMEBUFFER_WIDTH 1280
+#define LCD_HWC_PRIMARY_FRAMEBUFFER_HEIGHT 800
#define HWC_EXTEND_FRAMEBUFFER_WIDTH 1920
#define HWC_EXTEND_FRAMEBUFFER_HEIGHT 1080
#define LCD_HWC_DISPLAY_NUM 2
- hardware/interfaces/configstore/1.1/default/SurfaceFlingerConfigs.cpp
diff --git a/configstore/1.1/default/SurfaceFlingerConfigs.cpp b/configstore/1.1/default/SurfaceFlingerConfigs.cpp
index d1d011c..5a328d6 100644
--- a/configstore/1.1/default/SurfaceFlingerConfigs.cpp
+++ b/configstore/1.1/default/SurfaceFlingerConfigs.cpp
@@ -164,7 +164,7 @@ Return<void> SurfaceFlingerConfigs::primaryDisplayOrientation(
int exist = atoi(val) ;
if (exist == 1) {
specified = true;
- orientation = 270;
+ orientation = 0;
} else {
#ifdef PRIMARY_DISPLAY_ORIENTATION
specified = true;