Andrew replied to the topic 'AstroPi3 Scripts revised' in the forum. 3 years ago

setupAstroRaspbianPi.sh includes code that comments out dtoverlay=vc4-kms-v3d/ in /boot/config.txt.
This line must be left uncommented to use the second HDMI output on a Raspberry Pi 4.

# This comments out a line in Raspbian's config file that seems to prevent the desired screen resolution in VNC
# The logic here is that if the line does exist, and if the line is not commented out, comment it out.
if [ -n "$(grep '^dtoverlay=vc4-kms-v3d' '/boot/config.txt')" ]
then
    sed -i "s/dtoverlay=vc4-kms-v3d/#dtoverlay=vc4-kms-v3d/g" /boot/config.txt
fi
if [ -n "$(grep '^dtoverlay=vc4-fkms-v3d' '/boot/config.txt')" ]
then
    sed -i "s/dtoverlay=vc4-fkms-v3d/#dtoverlay=vc4-fkms-v3d/g" /boot/config.txt
fi
 


Read More...