Difference between revisions of "How to Config Multi-Display for RK3399 RSB4710"

From ESS-WIKI
Jump to: navigation, search
 
(4 intermediate revisions by the same user not shown)
Line 9: Line 9:
 
        Android distinguish the primary and the extend screen. 
 
        Android distinguish the primary and the extend screen. 
  
== Contents[[http://ess-wiki.advantech.com.tw/wiki/index.php?title=Help_talk:How_to_Config_Multi-Display_for_RK3399_RSB4710&action=edit&section=2 edit]] ==
+
== 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# hide]] 
Line 22: Line 22:
 
*[http://ess-wiki.advantech.com.tw/view/How_to_Config_Multi-Display_for_RK3399_RSB710#Default_Support_Display 8 Default Support Display]
 
*[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[[http://ess-wiki.advantech.com.tw/wiki/index.php?title=Help_talk:How_to_Config_Multi-Display_for_RK3399_RSB4710&action=edit&section=3 edit]] ==
+
== Enter U-boot interrupt mode ==
  
Connect device to debug port, and open debug console. See more : <a href="How%20to%20debug%20for%20RK3399%20RSB4710">How_to_debug</a>.
+
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 33: Line 33:
 
Then you can input the following cammand to config Multi-Display.
 
Then you can input the following cammand to config Multi-Display.
  
== eDP + HDMI[[http://ess-wiki.advantech.com.tw/wiki/index.php?title=Help_talk:How_to_Config_Multi-Display_for_RK3399_RSB4710&action=edit&section=4 edit]] ==
+
== eDP + HDMI ==
 
<pre>setenv prmry_screen edp-1920x1080
 
<pre>setenv prmry_screen edp-1920x1080
 
setenv extend_screen hdmi-default
 
setenv extend_screen hdmi-default
Line 49: Line 49:
 
</pre>
 
</pre>
  
 
+
== eDP + LVDS ==
 
+
== eDP + LVDS[[http://ess-wiki.advantech.com.tw/wiki/index.php?title=Help_talk:How_to_Config_Multi-Display_for_RK3399_RSB4710&action=edit&section=5 edit]] ==
+
 
<pre>setenv prmry_screen edp-1920x1080
 
<pre>setenv prmry_screen edp-1920x1080
 
setenv extend_screen lvds-g070vw01
 
setenv extend_screen lvds-g070vw01
Line 67: Line 65:
  
  
== LVDS + HDMI[[http://ess-wiki.advantech.com.tw/wiki/index.php?title=Help_talk:How_to_Config_Multi-Display_for_RK3399_RSB4710&action=edit&section=6 edit]] ==
+
== LVDS + HDMI ==
 
<pre>setenv prmry_screen hdmi-default
 
<pre>setenv prmry_screen hdmi-default
 
setenv extend_screen lvds-g070vw01
 
setenv extend_screen lvds-g070vw01
Line 81: Line 79:
 
</pre>
 
</pre>
  
== eDP + DP[[http://ess-wiki.advantech.com.tw/wiki/index.php?title=Help_talk:How_to_Config_Multi-Display_for_RK3399_RSB4710&action=edit&section=7 edit]] ==
+
== eDP + DP ==
 
<pre>setenv prmry_screen edp-1920x1080
 
<pre>setenv prmry_screen edp-1920x1080
 
setenv extend_screen dp-default
 
setenv extend_screen dp-default
Line 99: Line 97:
  
  
== LVDS + DP[[http://ess-wiki.advantech.com.tw/wiki/index.php?title=Help_talk:How_to_Config_Multi-Display_for_RK3399_RSB4710&action=edit&section=8 edit]] ==
+
== LVDS + DP ==
 
<pre>setenv prmry_screen dp-default
 
<pre>setenv prmry_screen dp-default
 
setenv extend_screen lvds-g070vw01
 
setenv extend_screen lvds-g070vw01
Line 115: Line 113:
  
  
== HDMI + DP[[http://ess-wiki.advantech.com.tw/wiki/index.php?title=Help_talk:How_to_Config_Multi-Display_for_RK3399_RSB4710&action=edit&section=9 edit]] ==
+
== HDMI + DP ==
 
<pre>setenv prmry_screen hdmi-default
 
<pre>setenv prmry_screen hdmi-default
 
setenv extend_screen dp-default
 
setenv extend_screen dp-default
Line 129: Line 127:
 
</pre>
 
</pre>
  
== Default Support Display[[http://ess-wiki.advantech.com.tw/wiki/index.php?title=Help_talk:How_to_Config_Multi-Display_for_RK3399_RSB4710&action=edit&section=10 edit]] ==
+
== Default Support Display ==
  
 
{| border="1" cellspacing="1" cellpadding="1"
 
{| border="1" cellspacing="1" cellpadding="1"
Line 179: Line 177:
 
| 1920x1080
 
| 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" cellspacing="1" cellpadding="1"
 +
|-
 +
| '''In uboot'''
 +
| '''In Debian/Android'''
 +
|-
 +
| <span style="color:#FF0000;">setenv</span> prmry_screen hdmi-default<br/>
 +
| <span style="color:#FF0000;">fw_setenv</span> prmry_screen hdmi-default<br/>
 +
|-
 +
| <span style="color:#FF0000;">setenv</span> extend_screen edp-1920x1080
 +
| <span style="color:#FF0000;">fw_setenv</span> extend_screen edp-1920x1080<br/>
 +
|-
 +
| saveenv
 +
| <br/>
 +
|-
 +
| reset
 +
| reboot
 +
|}
 +
 +
'''Note :'''
 +
 +
The tool "fw_setenv" will save envs automatically in Debian/Android OS, so it isn't necessary to saveen manually.

Latest revision as of 04:38, 30 July 2020

RSB-4710 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

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.