MENU

树莓派4B 配置两个HDMI显示不同分辨率

• July 7, 2020 • Read: 695 • 折腾

在树莓派4之前,都是一个HDMI接口,所以没有这个问题。而树莓派4B有2个HDMI接口,可以输出双4K。

在树莓派根目录下有一个文件config.txt,我们需要修改里面的参数。

下面的配置为HDMI0输出1080P 60Hz,HDMI1输出1024*768 60Hz

[HDMI:0]
  hdmi_group=2
  hdmi_mode=82
[HDMI:1]
  hdmi_group=2
  hdmi_mode=16

hdmi_group=1代表CEA模式(电视规格分辨率,不包含音频,通常使用DVI接口)

hdmi_group=2则代表DMT模式(计算机显示器分辨率,包含音频,通常使用HDMI接口)

hdmi_mode参数表可以参考下面:

hdmi_modeResolutionFrequencyScreen AspectNotes
1VGA (640x480)60Hz4:3
2480p60Hz4:3
3480p60Hz16:9
4720p60Hz16:9
51080i60Hz16:9
6480i60Hz4:3
7480i60Hz16:9
8240p60Hz4:3
9240p60Hz16:9
10480i60Hz4:3pixel quadrupling
11480i60Hz16:9pixel quadrupling
12240p60Hz4:3pixel quadrupling
13240p60Hz16:9pixel quadrupling
14480p60Hz4:3pixel doubling
15480p60Hz16:9pixel doubling
161080p60Hz16:9
17576p50Hz4:3
18576p50Hz16:9
19720p50Hz16:9
201080i50Hz16:9
21576i50Hz4:3
22576i50Hz16:9
23288p50Hz4:3
24288p50Hz16:9
25576i50Hz4:3pixel quadrupling
26576i50Hz16:9pixel quadrupling
27288p50Hz4:3pixel quadrupling
28288p50Hz16:9pixel quadrupling
29576p50Hz4:3pixel doubling
30576p50Hz16:9pixel doubling
311080p50Hz16:9
321080p24Hz16:9
331080p25Hz16:9
341080p30Hz16:9
35480p60Hz4:3pixel quadrupling
36480p60Hz16:9pixel quadrupling
37576p50Hz4:3pixel quadrupling
38576p50Hz16:9pixel quadrupling
391080i50Hz16:9reduced blanking
401080i100Hz16:9
41720p100Hz16:9
42576p100Hz4:3
43576p100Hz16:9
44576i100Hz4:3
45576i100Hz16:9
461080i120Hz16:9
47720p120Hz16:9
48480p120Hz4:3
49480p120Hz16:9
50480i120Hz4:3
51480i120Hz16:9
52576p200Hz4:3
53576p200Hz16:9
54576i200Hz4:3
55576i200Hz16:9
56480p240Hz4:3
57480p240Hz16:9
58480i240Hz4:3
59480i240Hz16:9
60720p24Hz16:9
61720p25Hz16:9
62720p30Hz16:9
631080p120Hz16:9
641080p100Hz16:9
65Custom
66720p25Hz64:27 Pi 4
67720p30Hz64:27 Pi 4
68720p50Hz64:27 Pi 4
69720p60Hz64:27 Pi 4
70720p100Hz64:27 Pi 4
71720p120Hz64:27 Pi 4
721080p24Hz64:27 Pi 4
731080p25Hz64:27 Pi 4
741080p30Hz64:27 Pi 4
751080p50Hz64:27 Pi 4
761080p60Hz64:27 Pi 4
771080p100Hz64:27 Pi 4
781080p120Hz64:27 Pi 4
791680x72024Hz64:27 Pi 4
801680x72025Hz64:27 Pi 4
811680x72030Hz64:27Pi 4
821680x72050Hz64:27Pi 4
831680x72060Hz64:27Pi 4
841680x720100Hz64:27Pi 4
851680x720120Hz64:27Pi 4
862560x72024Hz64:27Pi 4
872560x72025Hz64:27Pi 4
882560x72030Hz64:27Pi 4
892560x72050Hz64:27Pi 4
902560x72060Hz64:27Pi 4
912560x720100Hz64:27Pi 4
922560x720120Hz64:27Pi 4
932160p24Hz16:9Pi 4
942160p25Hz16:9Pi 4
952160p30Hz16:9Pi 4
962160p50Hz16:9Pi 4
972160p60Hz16:9Pi 4
984096x216024Hz256:135Pi 4
994096x216025Hz256:135Pi 4
1004096x216030Hz256:135Pi 4
1014096x216050Hz256:135Pi 4
1024096x216060Hz256:135Pi 4
1032160p24Hz64:27Pi 4
1042160p25Hz64:27Pi 4
1052160p30Hz64:27Pi 4
1062160p50Hz64:27Pi 4
1072160p60Hz64:27Pi 4
hdmi_modeResolutionFrequencyScreen AspectNotes
1640x35085Hz
2640x40085Hz16:10
3720x40085Hz
4640x48060Hz4:3
5640x48072Hz4:3
6640x48075Hz4:3
7640x48085Hz4:3
8800x60056Hz4:3
9800x60060Hz4:3
10800x60072Hz4:3
11800x60075Hz4:3
12800x60085Hz4:3
13800x600120Hz4:3
14848x48060Hz16:9
151024x76843Hz4:3incompatible with the Raspberry Pi
161024x76860Hz4:3
171024x76870Hz4:3
181024x76875Hz4:3
191024x76885Hz4:3
201024x768120Hz4:3
211152x86475Hz4:3
221280x76860Hz15:9reduced blanking
231280x76860Hz15:9
241280x76875Hz15:9
251280x76885Hz15:9
261280x768120Hz15:9reduced blanking
271280x80060Hz16:10reduced blanking
281280x80060Hz16:10
291280x80075Hz16:10
301280x80085Hz16:10
311280x800120Hz16:10reduced blanking
321280x96060Hz4:3
331280x96085Hz4:3
341280x960120Hz4:3reduced blanking
351280x102460Hz5:4
361280x102475Hz5:4
371280x102485Hz5:4
381280x1024120Hz5:4reduced blanking
391360x76860Hz16:9
401360x768120Hz16:9reduced blanking
411400x105060Hz4:3reduced blanking
421400x105060Hz4:3
431400x105075Hz4:3
441400x105085Hz4:3
451400x1050120Hz4:3reduced blanking
461440x90060Hz16:10reduced blanking
471440x90060Hz16:10
481440x90075Hz16:10
491440x90085Hz16:10
501440x900120Hz16:10reduced blanking
511600x120060Hz4:3
521600x120065Hz4:3
531600x120070Hz4:3
541600x120075Hz4:3
551600x120085Hz4:3
561600x1200120Hz4:3reduced blanking
571680x105060Hz16:10reduced blanking
581680x105060Hz16:10
591680x105075Hz16:10
601680x105085Hz16:10
611680x1050120Hz16:10reduced blanking
621792x134460Hz4:3
631792x134475Hz4:3
641792x1344120Hz4:3reduced blanking
651856x139260Hz4:3
661856x139275Hz4:3
671856x1392120Hz4:3reduced blanking
681920x120060Hz16:10reduced blanking
691920x120060Hz16:10
701920x120075Hz16:10
711920x120085Hz16:10
721920x1200120Hz16:10reduced blanking
731920x144060Hz4:3
741920x144075Hz4:3
751920x1440120Hz4:3reduced blanking
762560x160060Hz16:10reduced blanking
772560x160060Hz16:10
782560x160075Hz16:10
792560x160085Hz16:10
802560x1600120Hz16:10 reduced blanking
811366x76860Hz16:9
821920x108060Hz16:91080p
831600x90060Hz16:9reduced blanking
842048x115260Hz16:9reduced blanking
851280x72060Hz16:9720p
861366x76860Hz16:9reduced blanking

参考链接:
https://www.raspberrypi.org/documentation/configuration/config-txt/video.md
https://www.raspberrypi.org/documentation/configuration/config-txt/conditional.md