樹莓派有黑邊不能全屏解決方法

breeze_csdn發表於2020-10-12

在使用樹莓派連線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

相關文章