树莓派有黑边不能全屏解决方法

在使用树莓派连接HDMI电脑显示器的时候,可能会出现如下图所示的有黑边的情况。这时候需要调节分辨率以适应屏幕。

这里写图片描述

将树莓派的tf卡插入电脑,在卡的根目录下找到配置文件config.txt,建议用Notepad++等代码编辑器打开后找到如下代码:

调节任何参数时,将#号去除即可生效(下面修改的值是默认带#的,请务必去除#)

# uncomment to force a specific HDMI mode (this will force VGA)
hdmi_group=2  //将显示模式切换成DMT(显示器模式)
hdmi_mode=82  //1920x1080	60Hz	1080p 如果显示器不是1080P。则可以参考注1参数修改

 
 
 
 
  • 1
  • 2
  • 3

这时候就将显示设置成1080P的分辨率,但是是不带声音的,如果你的显示器支持HDMI声音输出或者自带音响,则将如下代码参数去除#号解锁强制获取声音。

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
hdmi_drive=2  //HDMI模式

 
 
 
 
  • 1
  • 2
  • 3

更多设置参考官方配置文档:https://www.raspberrypi.org/documentation/configuration/config-txt.md

注1: DMT模式分辨率参数

hdmi_moderesolutionfrequencynotes
1640x35085Hz
2640x40085Hz
3720x40085Hz
4640x48060Hz
5640x48072Hz
6640x48075Hz
7640x48085Hz
8800x60056Hz
9800x60060Hz
10800x60072Hz
11800x60075Hz
12800x60085Hz
13800x600120Hz
14848x48060Hz
151024x76843Hzincompatible with the Raspberry Pi
161024x76860Hz
171024x76870Hz
181024x76875Hz
191024x76885Hz
201024x768120Hz
211152x86475Hz
221280x768reduced blanking
231280x76860Hz
241280x76875Hz
251280x76885Hz
261280x768120Hzreduced blanking
271280x800reduced blanking
281280x80060Hz
291280x80075Hz
301280x80085Hz
311280x800120Hzreduced blanking
321280x96060Hz
331280x96085Hz
341280x960120Hzreduced blanking
351280x102460Hz
361280x102475Hz
371280x102485Hz
381280x1024120Hzreduced blanking
391360x76860Hz
401360x768120Hzreduced blanking
411400x1050reduced blanking
421400x105060Hz
431400x105075Hz
441400x105085Hz
451400x1050120Hzreduced blanking
461440x900reduced blanking
471440x90060Hz
481440x90075Hz
491440x90085Hz
501440x900120Hzreduced blanking
511600x120060Hz
521600x120065Hz
531600x120070Hz
541600x120075Hz
551600x120085Hz
561600x1200120Hzreduced blanking
571680x1050reduced blanking
581680x105060Hz
591680x105075Hz
601680x105085Hz
611680x1050120Hzreduced blanking
621792x134460Hz
631792x134475Hz
641792x1344120Hzreduced blanking
651856x139260Hz
661856x139275Hz
671856x1392120Hzreduced blanking
681920x1200reduced blanking
691920x120060Hz
701920x120075Hz
711920x120085Hz
721920x1200120Hzreduced blanking
731920x144060Hz
741920x144075Hz
751920x1440120Hzreduced blanking
762560x1600reduced blanking
772560x160060Hz
782560x160075Hz
792560x160085Hz
802560x1600120Hzreduced blanking
811366x76860Hz
821920x108060Hz1080p
831600x900reduced blanking
842048x1152reduced blanking
851280x72060Hz720p
861366x768reduced blanking
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值