自定义树莓派的显示分辨率

自定义树梅派的显示分辨率

自定义树莓派的显示分辨率

树莓派一般可以自动检测目标设备的分辨率。 但对于部分设备,尤其是HDMI-VGA转换器,分辨率可能会明显不对(过大或过小)。 这时就需要给树莓派指定一个分辨率。

更改树莓派前面那个FAT32分区里的config.txt,修改或加入以下项目:

hdmi_group=****
hdmi_mode=****
hdmi_ignore_edid=0xa5000080

hdmi_group和hdmi_mode的值对应想要调整的分辨率。见文后。 另外一项“hdmi_ignore_edid”,是命令树莓派不检测HDMI设备的任何信息,只按照我们指定的分辨率输出。 如果不加,树莓派可能仍会“自作聪明”的检测HDMI设备的分辨率,结果造成我们设置的分辨率无效。

CEA分辨率

以下是CEA规定的电视规格分辨率。这些分辨率的hdmi_group=1。

序号修改参数分辨率刷新频率------
1hdmi_mode=1VGA
2hdmi_mode=2480p60Hz
3hdmi_mode=3480p60HzH
4hdmi_mode=4720p60Hz
5hdmi_mode=51080i60Hz
6hdmi_mode=6480i60Hz
7hdmi_mode=7480i60HzH
8hdmi_mode=8240p60Hz
9hdmi_mode=9240p60HzH
10hdmi_mode=10480i60Hz4x
11hdmi_mode=11480i60Hz4x H
12hdmi_mode=12240p60Hz4x
13hdmi_mode=13240p60Hz4x H
14hdmi_mode=14480p60Hz2x
15hdmi_mode=15480p60Hz2x H
16hdmi_mode=161080p60Hz
17hdmi_mode=17576p50Hz
18hdmi_mode=18576p50HzH
19hdmi_mode=19720p50Hz
20hdmi_mode=201080i50Hz
21hdmi_mode=21576i50Hz
22hdmi_mode=22576i50HzH
23hdmi_mode=23288p50Hz
24hdmi_mode=24288p50HzH
25hdmi_mode=25576i50Hz4x
26hdmi_mode=26576i50Hz4x H
27hdmi_mode=27288p50Hz4x
28hdmi_mode=28288p50Hz4x H
29hdmi_mode=29576p50Hz2x
30hdmi_mode=30576p50Hz2x H
31hdmi_mode=311080p50Hz
32hdmi_mode=321080p24Hz
33hdmi_mode=331080p25Hz
34hdmi_mode=341080p30Hz
35hdmi_mode=35480p60Hz4x
36hdmi_mode=36480p60Hz4xH
37hdmi_mode=37576p50Hz4x
38hdmi_mode=38576p50Hz4x H
39hdmi_mode=391080i50Hzreduced blanking
40hdmi_mode=401080i100Hz
41hdmi_mode=41720p100Hz
42hdmi_mode=42576p100Hz
43hdmi_mode=43576p100HzH
44hdmi_mode=44576i100Hz
45hdmi_mode=45576i100HzH
46hdmi_mode=461080i120Hz
47hdmi_mode=47720p120Hz
48hdmi_mode=48480p120Hz
49hdmi_mode=49480p120HzH
50hdmi_mode=50480i120Hz
51hdmi_mode=51480i120HzH
52hdmi_mode=52576p200Hz
53hdmi_mode=53576p200HzH
54hdmi_mode=54576i200Hz
55hdmi_mode=55576i200HzH
56hdmi_mode=56480p240Hz
57hdmi_mode=57480p240HzH
58hdmi_mode=58480i240Hz
59hdmi_mode=59480i240HzH

H means 16:9 variant (of a normally 4:3 mode). 2x means pixel doubled (i.e. higher clock rate, with each pixel repeated twice) 4x means pixel quadrupled (i.e. higher clock rate, with each pixel repeated four times)

DMT分辨率

以下是计算机显示器使用的分辨率。这些分辨率的hdmi_group=2。

序号参数分辨率刷新频率--
1hdmi_mode=1640x35085Hz
2hdmi_mode=2640x40085Hz
3hdmi_mode=3720x40085Hz
4hdmi_mode=4640x48060Hz
5hdmi_mode=5640x48072Hz
6hdmi_mode=6640x48075Hz
7hdmi_mode=7640x48085Hz
8hdmi_mode=9800x60060Hz
9hdmi_mode=10800x60072Hz
10hdmi_mode=11800x60075Hz
11hdmi_mode=12800x60085Hz
12hdmi_mode=13800x600120Hz
13hdmi_mode=14848x48060Hz
14hdmi_mode=151024x76843HzDO NOT USE
15hdmi_mode=161024x76860Hz
16hdmi_mode=181024x76875Hz
17hdmi_mode=191024x76885Hz
18hdmi_mode=201024x768120Hz
19hdmi_mode=211152x86475Hz
20hdmi_mode=221280x768reduced blanking
21hdmi_mode=231280x76860Hz
22hdmi_mode=241280x76875Hz
23hdmi_mode=251280x76885Hz
24hdmi_mode=261280x768120Hzreduced blanking
25hdmi_mode=271280x800reduced blanking
26hdmi_mode=281280x80060Hz
27hdmi_mode=291280x80075Hz
28hdmi_mode=301280x80085Hz
29hdmi_mode=311280x800120Hzreduced blanking
30hdmi_mode=321280x96060Hz
31hdmi_mode=331280x96085Hz
32hdmi_mode=341280x960120Hzreduced blanking
33hdmi_mode=351280x102460Hz
34hdmi_mode=361280x102475Hz
35hdmi_mode=371280x102485Hz
36hdmi_mode=381280x1024120Hzreduced blanking
37hdmi_mode=391360x76860Hz
38hdmi_mode=401360x768120Hzreduced blanking
39hdmi_mode=411400x1050reduced blanking
40hdmi_mode=421400x105060Hz
41hdmi_mode=431400x105075Hz
42hdmi_mode=441400x105085Hz
43hdmi_mode=451400x1050120Hzreduced blanking
44hdmi_mode=461440x900reduced blanking
45hdmi_mode=471440x90060Hz
46hdmi_mode=481440x90075Hz
47hdmi_mode=491440x90085Hz
48hdmi_mode=501440x900120Hzreduced blanking
49hdmi_mode=511600x120060Hz
50hdmi_mode=521600x120065Hz
51hdmi_mode=531600x120070Hz
52hdmi_mode=541600x120075Hz
53hdmi_mode=551600x120085Hz
54hdmi_mode=561600x1200120Hzreduced blanking
55hdmi_mode=571680x1050reduced blanking
56hdmi_mode=581680x105060Hz
57hdmi_mode=591680x105075Hz
58hdmi_mode=601680x105085Hz
59hdmi_mode=611680x1050120Hzreduced blanking
60hdmi_mode=621792x134460Hz
61hdmi_mode=631792x134475Hz
62hdmi_mode=641792x1344120Hzreduced blanking
63hdmi_mode=651856x139260Hz
64hdmi_mode=661856x139275Hz
65hdmi_mode=671856x1392120Hzreduced blanking
66hdmi_mode=681920x1200reduced blanking
67hdmi_mode=691920x120060Hz
68hdmi_mode=701920x120075Hz
69hdmi_mode=711920x120085Hz
70hdmi_mode=721920x1200120Hzreduced blanking
71hdmi_mode=731920x144060Hz
72hdmi_mode=741920x144075Hz
73hdmi_mode=751920x1440120Hzreduced blanking
74hdmi_mode=762560x1600reduced blanking
75hdmi_mode=772560x160060Hz
76hdmi_mode=782560x160075Hz
77hdmi_mode=792560x160085Hz
78hdmi_mode=802560x1600120Hzreduced blanking
79hdmi_mode=811366x76860Hz
80hdmi_mode=821080p60Hz
81hdmi_mode=831600x900reduced blanking
82hdmi_mode=842048x1152reduced blanking
83hdmi_mode=85720p60Hz
84hdmi_mode=861366x768reduced blanking
注意,如果您使用HDMI-VGA转换器出现以下故障:
  1. 分辨率不对 —— 请参考下文,自行修改分辨率。
  2. 黑屏 —— 请参考:HDMI-VGA转换器黑屏的排障方案。
  3. 断续黑屏、系统不稳定 —— 可能是无源的转换器功耗过大,造成树莓派的电源故障。请使用有单独电源输入的HDMI-VGA转换器。
HDMI-VGA转换器黑屏的排障方案

这个配置提供了HDMI的所有故障排除用的保守设置。 请将SD卡插入电脑,将这些内容存为config.txt。(原来的config.txt可以备份一下。)

hdmi_force_hotplug=1
config_hdmi_boost=4
hdmi_group=2
hdmi_mode=9
hdmi_drive=2
hdmi_ignore_edid=0xa5000080
disable_overscan=1

解释: hdmi_force_hotplug: 强制使用HDMI输出(强行认为HDMI口已经插入了设备) config_hdmi_boost: HDMI信号增强。 hdmi_group、hdmi_mode: 决定分辨率。group=2, mode=9 代表800×600 @ 60Hz。 hdmi_drive: 强制音频输出到HDMI口(注意,仅适用于带音频的HDMI-VGA转换器!!如果想让音频从模拟输出,则去掉此项!!) hdmi_ignore_edid: 强行按hdmi_group和hdmi_mode规定的分辨率输出。不检测显示器自身的分辨率。 disable_overscan: 强行禁止保留黑边功能。

这个文件会命令树莓派:强制使用800×600分辨率,60Hz刷新率,并强制从HDMI输出。 请先尝试这样开机。如果开机能成功,就把hdmi_group和hdmi_mode,更改成自己显示器的分辨率即可。 所有可用的分辨率列表请见:自定义树莓派的显示分辨率。 如果不行,请更改hdmi_mode的值更换以下其他分辨率

--转至树莓派实验室

博客
32132
07-14 502
07-12 407
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值