树莓派如何解决无法启动显示屏

树莓派HDMI/VGA连接显示屏

首先确定你的系统安装成功(可以通过是否能连putty判断),之后复制并替换以下代码至 TF系统卡中的config.txt:

# For more options and information see# http://rpf.io/configtxt# Some settings may impact device functionality. See link above for details # uncomment if you get no picture on HDMI for a default "safe" mode#hdmi_safe=1 # uncomment this if your display has a black border of unused pixels visible# and your display can output without overscan#disable_overscan=1 # uncomment the following to adjust overscan. Use positive numbers if console# goes off screen, and negative if there is too much border#overscan_left=16#overscan_right=16#overscan_top=16#overscan_bottom=16 # uncomment to force a console size. By default it will be display's size minus# overscan.#framebuffer_width=1280#framebuffer_height=720 # uncomment if hdmi display is not detected and composite is being outputhdmi_force_hotplug=1 # uncomment to force a specific HDMI mode (this will force VGA)hdmi_group=2hdmi_mode=16 # uncomment to force a HDMI mode rather than DVI. This can make audio work in# DMT (computer monitor) modes#hdmi_drive=2 # uncomment to increase signal to HDMI, if you have interference, blanking, or# no display#config_hdmi_boost=4 # uncomment for composite PAL#sdtv_mode=2 #uncomment to overclock the arm. 700 MHz is the default.#arm_freq=800 # Uncomment some or all of these to enable the optional hardware interfaces#dtparam=i2c_arm=on#dtparam=i2s=on#dtparam=spi=on # Uncomment this to enable the lirc-rpi module#dtoverlay=lirc-rpi # Additional overlays and parameters are documented /boot/overlays/README # Enable audio (loads snd_bcm2835)dtparam=audio=onmax_usb_current=1

树莓派使用config文件来代替传统PC中的BIOS界面,系统配置参数不是使用BIOSBasic Input/Output System)进行编辑和存储的,而是存储在一个名为config.txt的可选文本文件中,在ARM CPU和Linux被初始化之前,这是由GPU读取的。因此,它必须位于SD卡的第一个(引导)分区上,与引导代码一起。在bootcode.bin和start.elf文件的旁边。这个文件通常可以作为/boot/config访问,必须使用root进行编辑。

树莓派config.txt
树莓派config.txt

config文件配置写入完成并在系统重启后,我们使用 vcgencmd 命令来查看当前更改值:
如获取所有config文件中整型设置值:

vcgencmd get_config int
树莓派查看config配置信息
树莓派查看config配置信息

Refer to:

https://www.raspberrypi.org/documentation/configuration/config-txt/README.md

发表评论