Skip to content

Commit 8876409

Browse files
authored
fix for rpi 4 boot config
Check's the Revision code to see if it's a pi 4 and if so removes the lines that stop FullPageOS from displaying on the monitors. Revision codes found here https://www.raspberrypi.org/documentation/hardware/raspberrypi/revision-codes/README.md
1 parent 0483dc3 commit 8876409

File tree

1 file changed

+5
-2
lines changed
  • src/modules/gui/filesystem/home/pi/scripts

1 file changed

+5
-2
lines changed

src/modules/gui/filesystem/home/pi/scripts/enable_gpu

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@ if [ ! -f /etc/gpu_enabled ]; then
44
sudo sed -i /boot/cmdline.txt -e "s/ quiet//"
55
sudo sed -i /boot/cmdline.txt -e "s/ splash//"
66
sudo sed -i /boot/cmdline.txt -e "s/ plymouth.ignore-serial-consoles//"
7-
sudo sed -i /boot/config.txt -e "s/^\#dtoverlay=vc4-kms-v3d/dtoverlay=vc4-kms-v3d/"
7+
check="$(sudo cat /proc/cpuinfo | grep 'Revision' | awk '{print $3}' | sed -e 's/[a-c]//')"
8+
if [ "${check}" != "03111" ]; then
9+
sudo sed -i /boot/config.txt -e "s/^\#dtoverlay=vc4-kms-v3d/dtoverlay=vc4-kms-v3d/"
10+
printf "dtoverlay=vc4-kms-v3d\n" | sudo tee -a /boot/config.txt
11+
fi
812
sudo sed -i /boot/config.txt -e "s/^gpu_mem/\#gpu_mem/"
9-
printf "dtoverlay=vc4-kms-v3d\n" | sudo tee -a /boot/config.txt
1013
touch /etc/gpu_enabled
1114
sudo shutdown -r now
1215
fi

0 commit comments

Comments
 (0)