Hello everybody, this is my screen, it is being displayed horizontally, i want it display default is vertical. Please help me. Thank you.
[image]
Hello everybody, this is my screen, it is being displayed horizontally, i want it display default is vertical. Please help me. Thank you.
[image]
@minhpv, can’t you can go to the settings and set the display orientation ?
@Electr1 i want set default in source android
Are asking about the source code modification ?
@minhpv F_PRIMARY_DISPLAY_ORIENTATION
hello @goenjoy, i’m using Android9.0,
I did not find SF_PRIMARY_DISPLAY_ORIENTATION in device/rockchip/rk3399/BoardConfig.mk, thank
@minhpv Then you can add it. In addition, you should also modify this place:
hlm@Server:/users/hlm/7_Edge/device/rockchip/rk3399$ git diff
diff --git a/manifest.xml b/manifest.xml
index 80f4ef0..b91ae83 100755
--- a/manifest.xml
+++ b/manifest.xml
@@ -29,7 +29,7 @@
<hal format="hidl">
<name>android.hardware.configstore</name>
<transport>hwbinder</transport>
- <version>1.0</version>
+ <version>1.1</version>
@goenjoy , have followed your instructions but not sucess. Result shown in link. (https://drive.google.com/file/d/1fTEwu7llzkMpQoF9wtPO5YxLIPnJF2Rs/view?usp=sharing)
@minhpv Oh, because SDK is a dual screen display, you have to modify it like this:
@goenjoy thank for help me. The screen is distorted after restarting, but when the screen is rotated it returns to normal. Result shown in link (https://drive.google.com/file/d/1HM1lz5W9NAfq1rb-OzcONBCPeydpuGf9/view?usp=sharing).
Do you need HDMI display? If not, modify it as follows. The previous changes were undone:
device\rockchip\rk3399\rk3399.mk
Android 10 modify as follows:
hlm@Server:/users/hlm/Edge_Android10.0_SDK/device/rockchip/rk3399$ git diff
diff --git a/rk3399_Android10/rk3399_Android10.mk b/rk3399_Android10/rk3399_Android10.mk
index 9a1272b..afd43a2
--- a/rk3399_Android10/rk3399_Android10.mk
+++ b/rk3399_Android10/rk3399_Android10.mk
@@ -50,10 +50,10 @@ PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.rotation.efull=true \
persist.vendor.sys.hdmiui=1 \
persist.sys.rotation.einit=3 \
- persist.sys.app.rotation=force_land \
+ persist.sys.app.rotation=middle_port \
sys.magisk.adb.root=1 \
- vendor.hwc.device.primary=HDMI-A,DP \
- vendor.hwc.device.extend=DSI
+ vendor.hwc.device.primary=DSI \
+ vendor.hwc.device.extend=HDMI-A,DP
Android 9.0 modify as follows:
diff --git a/device.mk b/device.mk
index d9d54d6..97da35c 100755
--- a/device.mk
+++ b/device.mk
@@ -140,5 +140,5 @@ PRODUCT_PROPERTY_OVERRIDES += \
ro.sf.lcd_density=280 \
ro.build.shutdown_timeout=6 \
persist.enable_task_snapshots=false \
- persist.sys.app.rotation=force_land \
+ persist.sys.app.rotation=middle_port \
persist.sys.hdmi.cec_enable=true
hlm@Server:/users/hlm/9_Edge/device/rockchip/rk3399$ git diff
diff --git a/manifest_hdmi.xml b/manifest_hdmi.xml
index c605ece..3e0075d 100755
--- a/manifest_hdmi.xml
+++ b/manifest_hdmi.xml
@@ -29,7 +29,7 @@
<hal format="hidl">
<name>android.hardware.configstore</name>
<transport>hwbinder</transport>
- <version>1.0</version>
+ <version>1.1</version>
<interface>
diff --git a/rk3399.mk b/rk3399.mk
index 9a62c60..9151958 100755
--- a/rk3399.mk
+++ b/rk3399.mk
@@ -37,13 +37,14 @@ PRODUCT_PACKAGES += \
PRODUCT_PROPERTY_OVERRIDES += \
- persist.sys.rotation.efull=true \
+ persist.sys.rotation.efull=false \
sys.magisk.adb.root=1 \
persist.hdmi.ui.state=2 \
- persist.sys.rotation.einit=3 \
- vendor.hwc.device.primary=HDMI-A,DP \
- vendor.hwc.device.extend=DSI
+ persist.sys.rotation.einit=0 \
+ vendor.hwc.device.primary=DSI \
+ vendor.hwc.device.extend=HDMI-A,DP