Difference between revisions of "How to Config Multi-Display for RK3399 RSB710"
Yunjin.jiang (talk | contribs) |
|||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | |||
+ | {{DISPLAYTITLE:How to Config Multi-Display for RK3399 RSB-4710}} | ||
RSB-4710 surport 4 display ports : eDP、LVDS(mipi to LVDS)、HDMI、DP (DP to HDMI). Only two ports work at the same time . | RSB-4710 surport 4 display ports : eDP、LVDS(mipi to LVDS)、HDMI、DP (DP to HDMI). Only two ports work at the same time . | ||
Line 13: | Line 15: | ||
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 : | ||
<pre>Hit any key to stop autoboot: 0 | <pre>Hit any key to stop autoboot: 0 | ||
− | = | + | => <INTERRUPT> |
− | = | + | =></pre> |
Then you can input the following cammand to config Multi-Display. <!--5f39ae17-8c62-4a45-bc43-b32064c9388a:W3siYmxvY2tJZCI6IjI2OTktMTU1MjAyNzg3OTMwNSIsImJsb2NrVHlwZSI6ImhlYWRpbmciLCJzdHlsZXMiOnsiYWxpZ24iOiJsZWZ0IiwiaW5kZW50IjowLCJ0ZXh0LWluZGVudCI6MCwibGluZS1oZWlnaHQiOjEuNzUsImJhY2stY29sb3IiOiIiLCJwYWRkaW5nIjoiIn0sInR5cGUiOiJoZWFkaW5nIiwicmljaFRleHQiOnsiZGF0YSI6W3siY2hhciI6IkgifSx7ImNoYXIiOiJpIn0seyJjaGFyIjoidCJ9LHsiY2hhciI6IiAifSx7ImNoYXIiOiJhIn0seyJjaGFyIjoibiJ9LHsiY2hhciI6InkifSx7ImNoYXIiOiIgIn0seyJjaGFyIjoiayJ9LHsiY2hhciI6ImUifSx7ImNoYXIiOiJ5In0seyJjaGFyIjoiICJ9LHsiY2hhciI6InQifSx7ImNoYXIiOiJvIn0seyJjaGFyIjoiICJ9LHsiY2hhciI6InMifSx7ImNoYXIiOiJ0In0seyJjaGFyIjoibyJ9LHsiY2hhciI6InAifSx7ImNoYX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WdyYXBoIiwicmljaFRleHQiOnsiZGF0YSI6W3siY2hhciI6Ij0ifSx7ImNoYXIiOiI+In0seyJjaGFyIjoiICJ9XSwiaXNSaWNoVGV4dCI6dHJ1ZSwia2VlcExpbmVCcmVhayI6dHJ1ZX19XQ==--> | Then you can input the following cammand to config Multi-Display. <!--5f39ae17-8c62-4a45-bc43-b32064c9388a:W3siYmxvY2tJZCI6IjI2OTktMTU1MjAyNzg3OTMwNSIsImJsb2NrVHlwZSI6ImhlYWRpbmciLCJzdHlsZXMiOnsiYWxpZ24iOiJsZWZ0IiwiaW5kZW50IjowLCJ0ZXh0LWluZGVudCI6MCwibGluZS1oZWlnaHQiOjEuNzUsImJhY2stY29sb3IiOiIiLCJwYWRkaW5nIjoiIn0sInR5cGUiOiJoZWFkaW5nIiwicmljaFRleHQiOnsiZGF0YSI6W3siY2hhciI6IkgifSx7ImNoYXIiOiJpIn0seyJjaGFyIjoidCJ9LHsiY2hhciI6IiAifSx7ImNoYXIiOiJhIn0seyJjaGFyIjoibiJ9LHsiY2hhciI6InkifSx7ImNoYXIiOiIgIn0seyJjaGFyIjoiayJ9LHsiY2hhciI6ImUifSx7ImNoYXIiOiJ5In0seyJjaGFyIjoiICJ9LHsiY2hhciI6InQifSx7ImNoYXIiOiJvIn0seyJjaGFyIjoiICJ9LHsiY2hhciI6InMifSx7ImNoYXIiOiJ0In0seyJjaGFyIjoibyJ9LHsiY2hhciI6InAifSx7ImNoYXIiOiIgIn0seyJjaGFyIjoiYSJ9LHsiY2hhciI6InUifSx7ImNoYXIiOiJ0In0seyJjaGFyIjoibyJ9LHsiY2hhciI6ImIifSx7ImNoYXIiOiJvIn0seyJjaGFyIjoibyJ9LHsiY2hhciI6InQifSx7ImNoYXIiOiI6In0seyJjaGFyIjoiICJ9LHsiY2hhciI6IiAifSx7ImNoYXIiOiIwIn1dLCJpc1JpY2hUZXh0Ijp0cnVlLCJrZWVwTGluZUJyZWFrIjp0cnVlfSwibGV2ZWwiOiIyIn0seyJibG9ja0lkIjoiNzM4MS0xNTUyMDI3OTU2OTQzIiwiYmxvY2tUeXBlIjoicGFyYWdyYXBoIiwic3R5bGVzIjp7ImFsaWduIjoibGVmdCIsImluZGVudCI6MCwidGV4dC1pbmRlbnQiOjAsImxpbmUtaGVpZ2h0IjoxLjc1LCJiYWNrLWNvbG9yIjoiIiwicGFkZGluZyI6IiJ9LCJ0eXBlIjoicGFyYWdyYXBoIiwicmljaFRleHQiOnsiZGF0YSI6W3siY2hhciI6Ij0ifSx7ImNoYXIiOiI+In0seyJjaGFyIjoiICJ9LHsiY2hhciI6IjwifSx7ImNoYXIiOiJJIn0seyJjaGFyIjoiTiJ9LHsiY2hhciI6IlQifSx7ImNoYXIiOiJFIn0seyJjaGFyIjoiUiJ9LHsiY2hhciI6IlIifSx7ImNoYXIiOiJVIn0seyJjaGFyIjoiUCJ9LHsiY2hhciI6IlQifSx7ImNoYXIiOiI+In1dLCJpc1JpY2hUZXh0Ijp0cnVlLCJrZWVwTGluZUJyZWFrIjp0cnVlfX0seyJibG9ja0lkIjoiMzAzMS0xNTUyMDI3OTU2OTQzIiwiYmxvY2tUeXBlIjoicGFyYWdyYXBoIiwic3R5bGVzIjp7ImFsaWduIjoibGVmdCIsImluZGVudCI6MCwidGV4dC1pbmRlbnQiOjAsImxpbmUtaGVpZ2h0IjoxLjc1LCJiYWNrLWNvbG9yIjoiIiwicGFkZGluZyI6IiJ9LCJ0eXBlIjoicGFyYWdyYXBoIiwicmljaFRleHQiOnsiZGF0YSI6W3siY2hhciI6Ij0ifSx7ImNoYXIiOiI+In0seyJjaGFyIjoiICJ9XSwiaXNSaWNoVGV4dCI6dHJ1ZSwia2VlcExpbmVCcmVhayI6dHJ1ZX19XQ==--> | ||
Line 61: | Line 63: | ||
or | or | ||
<pre>setenv prmry_screen lvds-g070vw01 | <pre>setenv prmry_screen lvds-g070vw01 | ||
+ | setenv extend_screen hdmi-default | ||
+ | saveenv | ||
+ | reset | ||
+ | </pre> | ||
+ | |||
+ | The panel "IDK-1107WR-40WVA1E:7" LED PANEL 400N with 4WR touch, 800x480(G)" setting is | ||
+ | |||
+ | <pre>setenv prmry_screen hdmi-default | ||
+ | setenv extend_screen lvds-g101ean02 | ||
+ | saveenv | ||
+ | reset | ||
+ | </pre> | ||
+ | |||
+ | or | ||
+ | <pre>setenv prmry_screen lvds-g101ean02 | ||
setenv extend_screen hdmi-default | setenv extend_screen hdmi-default | ||
saveenv | saveenv | ||
Line 149: | Line 166: | ||
<pre>cat /proc/cmdline | <pre>cat /proc/cmdline | ||
... prmry_screen=hdmi-default extend_screen=dp-default</pre> | ... prmry_screen=hdmi-default extend_screen=dp-default</pre> | ||
+ | |||
+ | == Setenv in Debian (or Android) OS == | ||
+ | |||
+ | Envtools are supported in debian and android os. You can change envs in Terminal or debug console very similarly 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 | ||
+ | | <span style="color:#FF0000;">fw_setenv </span>prmry_screen hdmi-default<br/> | ||
+ | |- | ||
+ | | <span style="color:#FF0000;">setenv</span> extend_screen edp-1920x1080<br/> | ||
+ | | <span style="color:#FF0000;">fw_setenv</span> extend_screen edp-1920x1080<br/> | ||
+ | |- | ||
+ | | saveenv | ||
+ | | <br/> | ||
+ | |- | ||
+ | | <span style="color:#FF0000;">reset</span> | ||
+ | | <span style="color:#FF0000;">reboot</span> | ||
+ | |} | ||
+ | |||
+ | '''NOTE : ''' | ||
+ | |||
+ | Tool of fw_setenv will automatically save env, so it isn't neccesary to save it manually. |
Latest revision as of 03:35, 14 June 2023
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
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
The panel "IDK-1107WR-40WVA1E:7" LED PANEL 400N with 4WR touch, 800x480(G)" setting is
setenv prmry_screen hdmi-default setenv extend_screen lvds-g101ean02 saveenv reset
or
setenv prmry_screen lvds-g101ean02 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
Setenv in Debian (or Android) OS
Envtools are supported in debian and android os. You can change envs in Terminal or debug console very similarly 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 :
Tool of fw_setenv will automatically save env, so it isn't neccesary to save it manually.