设置启用树莓派的HDMI显示
生活随笔
收集整理的這篇文章主要介紹了
设置启用树莓派的HDMI显示
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
樹莓派所有的啟動初始化都是在config.txt中完成的,因此,若插入HDMI樹莓派沒有顯示桌面,則是沒有配置HDMI。
首先在找到config.txt,兩種方法:
第一種方法,將SD卡取出,用讀卡器在windows上找到;
第二種方法,若登陸了樹莓派直接在命令行搜索: sudo find / -name config.txt
可以看到位于/boot/config.txt中
找到該文件后,打開并按照如下修改:
uncomment相關(guān)注釋:
hdmi_safe=1 overscan_left=16 overscan_right=16 overscan_top=16 overscan_bottom=16 hdmi_group=1 hdmi_mode=16 hdmi_drive=2文件中對應(yīng)的行如下:
# uncomment if you get no picture on HDMI for a default "safe" mode6 hdmi_safe=178 # uncomment this if your display has a black border of unused pixels visible9 # and your display can output without overscan10 #disable_overscan=11112 # uncomment the following to adjust overscan. Use positive numbers if console13 # goes off screen, and negative if there is too much border14 overscan_left=1615 overscan_right=1616 overscan_top=1617 overscan_bottom=161819 # uncomment to force a console size. By default it will be display's size minus20 # overscan.21 #framebuffer_width=128022 #framebuffer_height=7202324 # uncomment if hdmi display is not detected and composite is being output25 #hdmi_force_hotplug=12627 # uncomment to force a specific HDMI mode (this will force VGA)28 hdmi_group=129 hdmi_mode=163031 # uncomment to force a HDMI mode rather than DVI. This can make audio work in32 # DMT (computer monitor) modes33 hdmi_drive=2其中,不同的mode,表明不同的分辨率,部分分辨率如下:
H表示16:9變體(通常為4:3模式)。
2x:像素加倍(即更高的時(shí)鐘頻率,每個(gè)像素重復(fù)兩次)
4倍:像素翻了四倍(即更高的時(shí)鐘頻率,每個(gè)像素重復(fù)四次)
?
總結(jié)
以上是生活随笔為你收集整理的设置启用树莓派的HDMI显示的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: VB编程的必备技巧
- 下一篇: 图论解油瓶分油问题_一个很有趣的de n