赞
踩
树莓派所有的启动初始化都是在config.txt中完成的,因此,若插入HDMI树莓派没有显示桌面,则是没有配置HDMI。
首先在找到config.txt,两种方法:
第一种方法,将SD卡取出,用读卡器在windows上找到;
第二种方法,若登陆了树莓派直接在命令行搜索: sudo find / -name config.txt
可以看到位于/boot/config.txt中
找到该文件后,打开并按照如下修改:
uncomment相关注释:
- hdmi_safe=1
- overscan_left=16
- overscan_right=16
- overscan_top=16
- overscan_bottom=16
- hdmi_group=1
- hdmi_mode=16
- hdmi_drive=2
文件中对应的行如下:
- # uncomment if you get no picture on HDMI for a default "safe" mode
-
- 6 hdmi_safe=1
-
- 7
-
- 8 # uncomment this if your display has a black border of unused pixels visible
-
- 9 # and your display can output without overscan
-
- 10 #disable_overscan=1
-
- 11
-
- 12 # uncomment the following to adjust overscan. Use positive numbers if console
-
- 13 # goes off screen, and negative if there is too much border
-
- 14 overscan_left=16
-
- 15 overscan_right=16
-
- 16 overscan_top=16
-
- 17 overscan_bottom=16
-
- 18
-
- 19 # uncomment to force a console size. By default it will be display's size minus
- 20 # overscan.
- 21 #framebuffer_width=1280
- 22 #framebuffer_height=720
- 23
- 24 # uncomment if hdmi display is not detected and composite is being output
- 25 #hdmi_force_hotplug=1
- 26
- 27 # uncomment to force a specific HDMI mode (this will force VGA)
- 28 hdmi_group=1
- 29 hdmi_mode=16
- 30
- 31 # uncomment to force a HDMI mode rather than DVI. This can make audio work in
- 32 # DMT (computer monitor) modes
- 33 hdmi_drive=2

其中,不同的mode,表明不同的分辨率,部分分辨率如下:
H表示16:9变体(通常为4:3模式)。
2x:像素加倍(即更高的时钟频率,每个像素重复两次)
4倍:像素翻了四倍(即更高的时钟频率,每个像素重复四次)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。