Difference between revisions of "How to run two monitors on Raspberry Pi 4"

From LCD wiki
Jump to: navigation, search
(Setting method of Capacitive touch screen)
(The setting method of Resistance Touch Screen)
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{lan
 
{{lan
 
|cn=http://www.lcdwiki.com/zh/如何在树莓派4中使用双屏显示
 
|cn=http://www.lcdwiki.com/zh/如何在树莓派4中使用双屏显示
|en=http://www.lcdwiki.com/如何在树莓派4中使用双屏显示
+
|en=http://www.lcdwiki.com/How_to_run_two_monitors_on_Raspberry_Pi_4
 
}}
 
}}
==<font color="blue">Setting method of Capacitive touch screen</font>==
+
==<font color="blue">Setting method of Capacitive Touch Screen</font>==
 
The following is an example of '''7inch HDMI Display-C''' capacitive touch screen: <br/><br/>
 
The following is an example of '''7inch HDMI Display-C''' capacitive touch screen: <br/><br/>
  
1. According to the tutorial < [http://www.lcdwiki.com/res/PublicFile/How_to_use_Raspberry_Pi(Download,Format,Burn,SSH,PuTTy)-V1.0.pdf How_to_use_Raspberry_Pi(Download,Format,Burn,SSH,PuTTy)] >,Burn the latest official Raspbian system to the Micro SD Card, connect the 7inch HDMI Display-C to the first HDMI of the Pi4, and connect the computer monitor to the second HDMI.
+
1. According to the tutorial < [http://www.lcdwiki.com/res/PublicFile/How_to_use_Raspberry_Pi(Download,Format,Burn,SSH,PuTTy)-V1.0.pdf '''How_to_use_Raspberry_Pi(Download,Format,Burn,SSH,PuTTy)'''] >,Burn the latest official Raspbian system to the Micro SD Card, connect the '''7inch HDMI Display-C''' to the first HDMI of the Pi4, and connect the computer monitor to the second HDMI.
 
<br/><br/>
 
<br/><br/>
  
2.Insert the Micro SD card, raspberry PI boot. You'll see that both displays work, but the content is different, and the 7inch HDMI display-c's touch is quite different.The reason is that the two screens are now extended to the right. If you want to use it only as an extended display, that's enough, but if you want touch to work, you have to go to the next step.
+
2.Insert the Micro SD card, Raspberry Pi boot. You'll see that both displays work, but the content is different, and the 7inch HDMI display-c's touch is quite different.The reason is that the two screens are now extended to the right. If you want to use it only as an extended display, that's enough, but if you want touch to work, you have to go to the next step.
 
<br/><br/>
 
<br/><br/>
 
3.Execute the following command to open the '''config.txt''' file:
 
3.Execute the following command to open the '''config.txt''' file:
Line 40: Line 40:
 
[[File:Pi4-01.jpg|600px]]  <br/><br/>
 
[[File:Pi4-01.jpg|600px]]  <br/><br/>
  
按Ctrl+X键,退出;再按Y键,保存;然后按回车键,确认保存 <br/><br/>
+
Press '''Ctrl+X''' to exit;  Press '''Y '''again, save;  Press '''Enter''' to save. <br/><br/>
  
 
[[File:Pi4-02.jpg|600px]]  <br/><br/>
 
[[File:Pi4-02.jpg|600px]]  <br/><br/>
Line 46: Line 46:
 
[[File:Pi4-03.jpg|600px]]  <br/><br/>
 
[[File:Pi4-03.jpg|600px]]  <br/><br/>
  
4.执行下面的命令,系统会重新启动:<br/>
+
4.Execute the following command and the system will restart:<br/>
  
 
{{code|1=
 
{{code|1=
Line 52: Line 52:
 
}}
 
}}
  
5.重新启动之后,打开Screen Configuration:<br/><br/>
+
5.After rebooting, open '''Screen Configuration''':<br/><br/>
  
 
[[File:Pi4-04.jpg|600px]]  <br/><br/>
 
[[File:Pi4-04.jpg|600px]]  <br/><br/>
Line 58: Line 58:
 
[[File:Pi4-05.jpg|600px]]  <br/><br/>
 
[[File:Pi4-05.jpg|600px]]  <br/><br/>
  
6.拖动HDMI-2与HDMI-1重合,并点击绿色的钩确认:<br/><br/>
+
6.Drag '''HDMI-2''' to coincide with '''HDMI-1''' and click the green hook to confirm:<br/><br/>
  
 
[[File:Pi4-06.jpg|600px]]  <br/><br/>
 
[[File:Pi4-06.jpg|600px]]  <br/><br/>
  
7.两个显示屏就可以复制显示同一个画面,而且触摸能正常使用:<br/><br/>
+
7.Two display screens can duplicate the same picture, and touch works well:<br/><br/>
  
 
[[File:Pi4-07.jpg|300px]][[File:Pi4-07.jpg|300px]]  <br/><br/>
 
[[File:Pi4-07.jpg|300px]][[File:Pi4-07.jpg|300px]]  <br/><br/>
  
==<font color="blue">二、电阻触摸屏的设置方法</font>==
+
==<font color="blue">The setting method of Resistance Touch Screen</font>==
  
下面以电阻触摸屏5inch HDMI Display 为例子来说明:<br/><br/>
+
The following is an example of the 5inch HDMI Display of the resistive touch screen:<br/><br/>
  
1.按照教程    [http://www.lcdwiki.com/res/PublicFile/树莓派入门教程(下载,格式化,烧录,SSH,PuTTy)-V1.0.pdf 树莓派入门教程(下载,格式化,烧录,SSH,PuTTy)],把Raspbian官方最新系统烧录到SD卡中,5inch HDMI Display连接到Pi4的第一个HDMI, 电脑显示器连接到第二个HDMI<br/><br/>
+
1. According to the tutorial < [http://www.lcdwiki.com/res/PublicFile/How_to_use_Raspberry_Pi(Download,Format,Burn,SSH,PuTTy)-V1.0.pdf '''How_to_use_Raspberry_Pi(Download,Format,Burn,SSH,PuTTy)'''] >, Burn the latest official Raspbian system to the Micro SD Card, connect the 5inch HDMI Display to the first HDMI of the Pi4, and connect the computer monitor to the second HDMI.
 +
<br/><br/>
  
2.插入SD卡,树莓派上电开机,并按照教程  [http://www.lcdwiki.com/zh/如何安装LCD驱动(CN) 如何安装LCD驱动(CN)] '''安装5inch HDMI Display驱动'''。安装完驱动之后,就能看到两个显示屏都可以正常显示,但是显示的内容不一样,而且5inch HDMI Display 的触摸会偏差很大。<br/><br/>
+
2. Insert the Micro SD card, Raspberry Pi boot. According to the tutorial < [http://www.lcdwiki.com/How_to_install_the_LCD_driver '''How to install the LCD driver'''] >, install the '''5inch HDMI Display''' driver.Once the driver is installed, you can see that both displays work, but the content is different and the touch of the '''5inch HDMI Display''' is quite different.<br/><br/>
  
3.执行下面的命令,打开config.txt文件:
+
3. Execute the following command to open the '''config.txt''' file:
 
{{code|1=
 
{{code|1=
 
sudo nano /boot/config.txt
 
sudo nano /boot/config.txt
 
}}
 
}}
  
在最后面加入语句:
+
Add a statement at the end:
  
 
{{code|1=
 
{{code|1=
Line 92: Line 93:
 
}}
 
}}
 
[[File:Pi4-08.jpg|600px]]  <br/>
 
[[File:Pi4-08.jpg|600px]]  <br/>
<br/>
+
<br/>'
<font color="black">(其中的两个800 480也可以同时改为1920 1080, 1024 600等常用的分辨率)</font> <br/><br/>
+
<font color="black">(The two '''800 480''' can also be changed to '''1920 1080, 1024 600''' or other commonly used resolutions)</font> <br/><br/>
按Ctrl+X键,退出;再按Y键,保存;然后按回车键,确认保存<br/>
+
Press Ctrl+X to exit;Press Y again, save;Press enter to save.  <br/><br/>
 
 
  
 
[[File:Pi4-09.jpg|600px]]  <br/><br/>
 
[[File:Pi4-09.jpg|600px]]  <br/><br/>
 
[[File:Pi4-10.jpg|600px]]  <br/><br/>
 
[[File:Pi4-10.jpg|600px]]  <br/><br/>
  
4.执行下面的命令,系统会重新启动:
+
4.Execute the following command and the system will restart:
 
{{code|1=
 
{{code|1=
 
sudo reboot
 
sudo reboot
 
}}
 
}}
后面的5,6,7步都和电容触摸屏的一样。
+
The next '''5, 6 and 7''' steps are the same as the '''Capacitive Touch Screen '''above.
  
  
  
<font color="red">注意:   <br/>
+
<font color="red">Notice:   <br/>
1. 在config.txt中的这两句是Pi4实现双屏显示的关键,一定要有。
+
1. These two sentences in '''config. txt''' are the key to Pi4 double screen display, must have:
 
{{code|1=
 
{{code|1=
 
dtoverlay=vc4-fkms-v3d  
 
dtoverlay=vc4-fkms-v3d  
 
max_framebuffers=2
 
max_framebuffers=2
 
}}
 
}}
2.如果想触摸要准确,只能是复制显示,HDMI1和HDMI2重叠,而且两个屏的分辨率一样。</font>
+
2. If you want to touch accurately, you can only copy the display, '''HDMI1''' and '''HDMI2''' overlap, and the resolution of the two screens is the same.</font>

Latest revision as of 17:59, 4 November 2019


语言选择

Languages

➤中文
➤EN


Setting method of Capacitive Touch Screen

The following is an example of 7inch HDMI Display-C capacitive touch screen:

1. According to the tutorial < How_to_use_Raspberry_Pi(Download,Format,Burn,SSH,PuTTy) >,Burn the latest official Raspbian system to the Micro SD Card, connect the 7inch HDMI Display-C to the first HDMI of the Pi4, and connect the computer monitor to the second HDMI.

2.Insert the Micro SD card, Raspberry Pi boot. You'll see that both displays work, but the content is different, and the 7inch HDMI display-c's touch is quite different.The reason is that the two screens are now extended to the right. If you want to use it only as an extended display, that's enough, but if you want touch to work, you have to go to the next step.

3.Execute the following command to open the config.txt file:

sudo nano /boot/config.txt

Add a statement at the end:

max_usb_current=1
hdmi_force_hotplug=1
config_hdmi_boost=7
hdmi_group=2
hdmi_mode=87
hdmi_drive=1
display_rotate=0
hdmi_cvt 1024 600 60 6 0 0 0

[hdmi:1]
max_usb_current=1
hdmi_force_hotplug=1
config_hdmi_boost=7
hdmi_group=2
hdmi_mode=87
hdmi_drive=1
display_rotate=0
hdmi_cvt 1024 600 60 6 0 0 0

(The two 1024 600 can also be changed to 1920 1080, 800 480 or other commonly used resolutions)

Pi4-01.jpg

Press Ctrl+X to exit; Press Y again, save; Press Enter to save.

Pi4-02.jpg

Pi4-03.jpg

4.Execute the following command and the system will restart:

sudo reboot

5.After rebooting, open Screen Configuration

Pi4-04.jpg

Pi4-05.jpg

6.Drag HDMI-2 to coincide with HDMI-1 and click the green hook to confirm:

Pi4-06.jpg

7.Two display screens can duplicate the same picture, and touch works well:

Pi4-07.jpgPi4-07.jpg

The setting method of Resistance Touch Screen

The following is an example of the 5inch HDMI Display of the resistive touch screen:

1. According to the tutorial < How_to_use_Raspberry_Pi(Download,Format,Burn,SSH,PuTTy) >, Burn the latest official Raspbian system to the Micro SD Card, connect the 5inch HDMI Display to the first HDMI of the Pi4, and connect the computer monitor to the second HDMI.

2. Insert the Micro SD card, Raspberry Pi boot. According to the tutorial < How to install the LCD driver >, install the 5inch HDMI Display driver.Once the driver is installed, you can see that both displays work, but the content is different and the touch of the 5inch HDMI Display is quite different.

3. Execute the following command to open the config.txt file:

sudo nano /boot/config.txt

Add a statement at the end:

[hdmi:1]
max_usb_current=1
hdmi_force_hotplug=1
config_hdmi_boost=7
hdmi_group=2
hdmi_mode=87
hdmi_drive=1
hdmi_cvt 800 480 60 6 0 0 0

Pi4-08.jpg

' (The two 800 480 can also be changed to 1920 1080, 1024 600 or other commonly used resolutions)

Press Ctrl+X to exit;Press Y again, save;Press enter to save.

Pi4-09.jpg

Pi4-10.jpg

4.Execute the following command and the system will restart:

sudo reboot

The next 5, 6 and 7 steps are the same as the Capacitive Touch Screen above.


Notice:
1. These two sentences in config. txt are the key to Pi4 double screen display, must have:

dtoverlay=vc4-fkms-v3d 
max_framebuffers=2

2. If you want to touch accurately, you can only copy the display, HDMI1 and HDMI2 overlap, and the resolution of the two screens is the same.