Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the simply-static domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/wp-includes/functions.php on line 6121
如何强制树莓派不接显示器启动显示?

如何强制树莓派不接显示器启动显示?

树莓派在不接显示器的情况下启动后,如此后再接显示器是没有输出的,这给很多使用者带来不便,如何不接显示器启动又能在需要的时候接上显示器正常显示?由于树莓派并没有传统意义上的BIOS, 所以包括显示等各种系统配置参数通常被存在”config.txt”这个文本文件中,树莓派的config.txt文件会在ARM内核初始化之前被GPU读取。这个文件存在引导分区上,对于Linux,路径通常是/boot/config.txt。如果是Windows (或者OS X) 它会被识别为SD卡中可访问部分的一个普通文件。将树莓派SD卡通过读卡器接到电脑上,就可以修改这个文件实现强制显示器输出,按下述方式修改即可。

sudo nano /boot/config.txt

将 #hdmi_force_hotplug=1前的注释去掉

hdmi_force_hotplug=1 # 伪装成HDMI热插拔信号被检测到, 出现HDMI显示器被接入

hdmi_group=1

hdmi_mode=16

这样就能正常显示了。