Difference between revisions of "How to Config Multi-Display"
Xingxing.li (talk | contribs) (Created page with "RSB-4680 surport 3 display ports : eDP、LVDS、HDMI . Only two ports work at the same time . You can config Multi-Display to eDP + HDMI 、eDP + LVDS、LVDS + HDMI...") |
Xingxing.li (talk | contribs) |
||
Line 1: | Line 1: | ||
− | |||
− | You can config Multi-Display to eDP + HDMI 、eDP + LVDS、LVDS + HDMI . | + | === Introductory === |
+ | |||
+ | ROM-5780 surport 4 display ports : eDP、LVDS(mipi to LVDS)、HDMI、DP (DP to HDMI). Only two ports work at the same time . | ||
+ | |||
+ | You can config Multi-Display to eDP + HDMI 、eDP + LVDS、LVDS + HDMI 、eDP + DP、LVDS + DP、HDMI + DP. | ||
+ | |||
+ | '''NOTE:''' | ||
+ | |||
+ | Android distinguish the primary and the extend screen. | ||
+ | |||
+ | == Contents == | ||
+ | |||
+ | [[http://ess-wiki.advantech.com.tw/view/How_to_Config_Multi-Display_for_RK3399_RSB710# hide]] | ||
+ | |||
+ | *[http://ess-wiki.advantech.com.tw/view/How_to_Config_Multi-Display_for_RK3399_RSB710#Enter_U-boot_interrupt_mode 1 Enter U-boot interrupt mode] | ||
+ | *[http://ess-wiki.advantech.com.tw/view/How_to_Config_Multi-Display_for_RK3399_RSB710#eDP_.2B_HDMI 2 eDP + HDMI] | ||
+ | *[http://ess-wiki.advantech.com.tw/view/How_to_Config_Multi-Display_for_RK3399_RSB710#eDP_.2B_LVDS 3 eDP + LVDS] | ||
+ | *[http://ess-wiki.advantech.com.tw/view/How_to_Config_Multi-Display_for_RK3399_RSB710#LVDS_.2B_HDMI 4 LVDS + HDMI] | ||
+ | *[http://ess-wiki.advantech.com.tw/view/How_to_Config_Multi-Display_for_RK3399_RSB710#eDP_.2B_DP 5 eDP + DP] | ||
+ | *[http://ess-wiki.advantech.com.tw/view/How_to_Config_Multi-Display_for_RK3399_RSB710#LVDS_.2B_DP 6 LVDS + DP] | ||
+ | *[http://ess-wiki.advantech.com.tw/view/How_to_Config_Multi-Display_for_RK3399_RSB710#HDMI_.2B_DP 7 HDMI + DP] | ||
+ | *[http://ess-wiki.advantech.com.tw/view/How_to_Config_Multi-Display_for_RK3399_RSB710#Default_Support_Display 8 Default Support Display] | ||
== Enter U-boot interrupt mode == | == Enter U-boot interrupt mode == | ||
− | Connect device to debug port, and open debug console. See more : [[ | + | Connect device to debug port, and open debug console. See more : [[How_to_debug_for_RK3399_RSB4710|How_to_debug]]. |
Press "ctrl + c" key before power up the device, until get the following information on debug console : | Press "ctrl + c" key before power up the device, until get the following information on debug console : | ||
Line 12: | Line 32: | ||
=></pre> | =></pre> | ||
− | Then you can input the following cammand to config Multi-Display. | + | Then you can input the following cammand to config Multi-Display. |
== eDP + HDMI == | == eDP + HDMI == | ||
Line 21: | Line 41: | ||
</pre> | </pre> | ||
+ | | ||
+ | or | ||
+ | <pre>setenv prmry_screen hdmi-default | ||
+ | setenv extend_screen edp-1920x1080 | ||
+ | saveenv | ||
+ | reset | ||
+ | </pre> | ||
== eDP + LVDS == | == eDP + LVDS == | ||
Line 29: | Line 56: | ||
reset | reset | ||
</pre> | </pre> | ||
+ | |||
+ | or | ||
+ | <pre>setenv prmry_screen lvds-g070vw01 | ||
+ | setenv extend_screen edp-1920x1080 | ||
+ | saveenv | ||
+ | reset | ||
+ | </pre> | ||
+ | |||
+ | | ||
== LVDS + HDMI == | == LVDS + HDMI == | ||
<pre>setenv prmry_screen hdmi-default | <pre>setenv prmry_screen hdmi-default | ||
setenv extend_screen lvds-g070vw01 | setenv extend_screen lvds-g070vw01 | ||
+ | saveenv | ||
+ | reset | ||
+ | </pre> | ||
+ | |||
+ | or | ||
+ | <pre>setenv prmry_screen lvds-g070vw01 | ||
+ | setenv extend_screen hdmi-default | ||
+ | saveenv | ||
+ | reset | ||
+ | </pre> | ||
+ | |||
+ | == eDP + DP == | ||
+ | <pre>setenv prmry_screen edp-1920x1080 | ||
+ | setenv extend_screen dp-default | ||
+ | saveenv | ||
+ | reset | ||
+ | </pre> | ||
+ | |||
+ | | ||
+ | |||
+ | or | ||
+ | <pre>setenv prmry_screen dp-default | ||
+ | setenv extend_screen edp-1920x1080 | ||
+ | saveenv | ||
+ | reset | ||
+ | </pre> | ||
+ | |||
+ | | ||
+ | |||
+ | == LVDS + DP == | ||
+ | <pre>setenv prmry_screen dp-default | ||
+ | setenv extend_screen lvds-g070vw01 | ||
+ | saveenv | ||
+ | reset | ||
+ | </pre> | ||
+ | |||
+ | or | ||
+ | <pre>setenv prmry_screen lvds-g070vw01 | ||
+ | setenv extend_screen dp-default | ||
+ | saveenv | ||
+ | reset | ||
+ | </pre> | ||
+ | |||
+ | | ||
+ | |||
+ | == HDMI + DP == | ||
+ | <pre>setenv prmry_screen hdmi-default | ||
+ | setenv extend_screen dp-default | ||
+ | saveenv | ||
+ | reset | ||
+ | </pre> | ||
+ | |||
+ | or | ||
+ | <pre>setenv prmry_screen dp-fefault | ||
+ | setenv extend_screen hdmi-default | ||
saveenv | saveenv | ||
reset | reset | ||
Line 39: | Line 130: | ||
== Default Support Display == | == Default Support Display == | ||
− | {| border="1" | + | {| border="1" cellpadding="1" cellspacing="1" |
|- | |- | ||
| '''Port''' | | '''Port''' | ||
− | | ''' | + | | '''RSB4710''' |
− | |||
|- | |- | ||
| edp | | edp | ||
− | | | + | | edp-1920x1080<br/> edp-1366x768 |
− | |||
|- | |- | ||
| lvds | | lvds | ||
− | | lvds-g070vw01 | + | | lvds-g070vw01<br/> lvds-g150xgel05<br/> lvds-g215hvn01 |
− | |||
|- | |- | ||
| hdmi | | hdmi | ||
− | | hdmi-default | + | | hdmi-default |
− | | | + | |- |
+ | | dp | ||
+ | | dp-default | ||
|} | |} | ||
− | <br/>'''NOTE : ''' | + | <br/> '''NOTE : ''' |
− | 1. The name of the panel must begin with "edp-"、"lvds-" | + | 1. The name of the panel must begin with "edp-"、"lvds-" 、"hdmi-" or “dp-”. |
And it can be found in "kernel/include/dt-bindings/display/screen-timing/{LCDNAME}.dtsi" like : | And it can be found in "kernel/include/dt-bindings/display/screen-timing/{LCDNAME}.dtsi" like : | ||
− | lvds_g070vw01: '''lvds-g070vw01''' | + | lvds_g070vw01: '''lvds-g070vw01''' |
2. If there is no configuration, you will get default setting : | 2. If there is no configuration, you will get default setting : | ||
− | + | hdmi-default and dp-default as default setting. | |
3. Check your configuration in Terminal or debug console. | 3. Check your configuration in Terminal or debug console. | ||
<pre>cat /proc/cmdline | <pre>cat /proc/cmdline | ||
− | ... prmry_screen=edp-1920x1080 extend_screen=hdmi-default</ | + | ... prmry_screen=hdmi-default extend_screen=dp-default</pre> |
+ | |||
+ | {| border="1" cellpadding="1" cellspacing="1" | ||
+ | |- | ||
+ | | LVDS Name | ||
+ | | Resolution | ||
+ | |- | ||
+ | | lvds-g070vw01 | ||
+ | | 800x480 | ||
+ | |- | ||
+ | | lvds-g150xgel05 | ||
+ | | 1024x768 | ||
+ | |- | ||
+ | | lvds-g215hvn01 | ||
+ | | 1920x1080 | ||
+ | |} | ||
+ | |||
+ | == Using envtools in Debian/Android == | ||
+ | |||
+ | Using envtools to setup envs in Debian/Android OS is very similar in uboot. | ||
+ | |||
+ | Take “eDP+HDMI”for example : | ||
+ | |||
+ | {| border="1" cellpadding="1" cellspacing="1" | ||
+ | |- | ||
+ | | '''In uboot''' | ||
+ | | '''In Debian/Android''' | ||
+ | |- | ||
+ | | setenv prmry_screen hdmi-default | ||
+ | | fw_setenv prmry_screen hdmi-default | ||
+ | |- | ||
+ | | setenv extend_screen edp-1920x1080 | ||
+ | | fw_setenv extend_screen edp-1920x1080 | ||
+ | |- | ||
+ | | saveenv | ||
+ | | | ||
+ | |- | ||
+ | | reset | ||
+ | | reboot | ||
+ | |} | ||
+ | |||
+ | '''Note :''' | ||
+ | |||
+ | The tool "fw_setenv" will save envs automatically in Debian/Android OS, so it isn't necessary to saveen manually. | ||
+ | |||
+ | '''查看设备当前配置:''' | ||
+ | |||
+ | root@linaro-alip:~# cat /proc/cmdline<br/> storagemedia=emmc androidboot.storagemedia=emmc androidboot.mode=normal androidboot.verifiedbootstate=orange androidboot.slot_suffix= androidboot.serialno=a2fc4116ad6b2c4f rw rootwait earlycon=uart8250,mmio32,0xff180000 swiotlb=1 console=ttyS0,115200 root=PARTUUID=614e0000-0000 rootfstype=ext4 coherent_pool=1m quiet board_info=9 prmry_screen=hdmi-default extend_screen=lvds-g070vw01<br/> root@linaro-alip:~# |
Revision as of 08:01, 1 March 2023
Contents
Introductory
ROM-5780 surport 4 display ports : eDP、LVDS(mipi to LVDS)、HDMI、DP (DP to HDMI). Only two ports work at the same time .
You can config Multi-Display to eDP + HDMI 、eDP + LVDS、LVDS + HDMI 、eDP + DP、LVDS + DP、HDMI + DP.
NOTE:
Android distinguish the primary and the extend screen.
Contents
[hide]
- 1 Enter U-boot interrupt mode
- 2 eDP + HDMI
- 3 eDP + LVDS
- 4 LVDS + HDMI
- 5 eDP + DP
- 6 LVDS + DP
- 7 HDMI + DP
- 8 Default Support Display
Enter U-boot interrupt mode
Connect device to debug port, and open debug console. See more : How_to_debug.
Press "ctrl + c" key before power up the device, until get the following information on debug console :
Hit any key to stop autoboot: 0 => <INTERRUPT> =>
Then you can input the following cammand to config Multi-Display.
eDP + HDMI
setenv prmry_screen edp-1920x1080 setenv extend_screen hdmi-default saveenv reset
or
setenv prmry_screen hdmi-default setenv extend_screen edp-1920x1080 saveenv reset
eDP + LVDS
setenv prmry_screen edp-1920x1080 setenv extend_screen lvds-g070vw01 saveenv reset
or
setenv prmry_screen lvds-g070vw01 setenv extend_screen edp-1920x1080 saveenv reset
LVDS + HDMI
setenv prmry_screen hdmi-default setenv extend_screen lvds-g070vw01 saveenv reset
or
setenv prmry_screen lvds-g070vw01 setenv extend_screen hdmi-default saveenv reset
eDP + DP
setenv prmry_screen edp-1920x1080 setenv extend_screen dp-default saveenv reset
or
setenv prmry_screen dp-default setenv extend_screen edp-1920x1080 saveenv reset
LVDS + DP
setenv prmry_screen dp-default setenv extend_screen lvds-g070vw01 saveenv reset
or
setenv prmry_screen lvds-g070vw01 setenv extend_screen dp-default saveenv reset
HDMI + DP
setenv prmry_screen hdmi-default setenv extend_screen dp-default saveenv reset
or
setenv prmry_screen dp-fefault setenv extend_screen hdmi-default saveenv reset
Default Support Display
Port | RSB4710 |
edp | edp-1920x1080 edp-1366x768 |
lvds | lvds-g070vw01 lvds-g150xgel05 lvds-g215hvn01 |
hdmi | hdmi-default |
dp | dp-default |
NOTE :
1. The name of the panel must begin with "edp-"、"lvds-" 、"hdmi-" or “dp-”.
And it can be found in "kernel/include/dt-bindings/display/screen-timing/{LCDNAME}.dtsi" like :
lvds_g070vw01: lvds-g070vw01
2. If there is no configuration, you will get default setting :
hdmi-default and dp-default as default setting.
3. Check your configuration in Terminal or debug console.
cat /proc/cmdline ... prmry_screen=hdmi-default extend_screen=dp-default
LVDS Name | Resolution |
lvds-g070vw01 | 800x480 |
lvds-g150xgel05 | 1024x768 |
lvds-g215hvn01 | 1920x1080 |
Using envtools in Debian/Android
Using envtools to setup envs in Debian/Android OS is very similar in uboot.
Take “eDP+HDMI”for example :
In uboot | In Debian/Android |
setenv prmry_screen hdmi-default | fw_setenv prmry_screen hdmi-default |
setenv extend_screen edp-1920x1080 | fw_setenv extend_screen edp-1920x1080 |
saveenv | |
reset | reboot |
Note :
The tool "fw_setenv" will save envs automatically in Debian/Android OS, so it isn't necessary to saveen manually.
查看设备当前配置:
root@linaro-alip:~# cat /proc/cmdline
storagemedia=emmc androidboot.storagemedia=emmc androidboot.mode=normal androidboot.verifiedbootstate=orange androidboot.slot_suffix= androidboot.serialno=a2fc4116ad6b2c4f rw rootwait earlycon=uart8250,mmio32,0xff180000 swiotlb=1 console=ttyS0,115200 root=PARTUUID=614e0000-0000 rootfstype=ext4 coherent_pool=1m quiet board_info=9 prmry_screen=hdmi-default extend_screen=lvds-g070vw01
root@linaro-alip:~#