修改樹莓派配置文檔config.txt
在樹莓派的啓動分區(system-boot)裏,有個config.txt,
裏面有兩行
# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1
其中hdmi_force_hotplug代表強制樹莓派使用HDMI端口,即使樹莓派沒有檢測到顯示器連接仍然使用HDMI端口。該值爲0時允許樹莓派嘗試檢測顯示器,當該值爲1時,強制樹莓派使用HDMI。即改爲
# uncomment if hdmi display is not detected and composite is being output
hdmi_force_hotplug=1
重啓後,即使不接顯示器,樹莓派4依然會認爲有顯示插入,之後就可以順利進入系統桌面了~