Add display mode tricks to boot config

This commit is contained in:
KemoNine 2020-08-06 17:18:51 -04:00
parent b02ba44433
commit dba8022984
1 changed files with 21 additions and 0 deletions

View File

@ -14,6 +14,27 @@ sudo -sHu root /bin/bash
touch /etc/cloud/cloud-init.disabled
nano -w /boot/firmware/cmdline.txt
remove console=tty1
# Setup screen resolution (UNCOMMENT THE RIGHT LINES!!!)
cat >> /boot/firmware/usercfg.txt <<EOF
# Further reading
# https://www.raspberrypi.org/documentation/configuration/config-txt/video.md
# https://www.raspberrypi.org/forums/viewtopic.php?t=5851
# https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=24679
# GeeekPi 5 Inch Capacitive Touch Screen 800x480 HDMI Monitor
#hdmi_group=2
#hdmi_mode=87
#hdmi_cvt=800 480 60 6 0 0 0
# Generic 2k
#hdmi_cvt=2560 1600 50 5 0 0 1
#hdmi_group=2
#hdmi_mode=88
EOF
# Reboot to pickup changes
systemctl reboot
# Login