Skip to content

Commit 936c6f2

Browse files
dkulpclaude
andcommitted
fix(image): drop the gpu_mem settings from config.txt
Nothing in FPP has drawn on the firmware GPU memory split for years. The comment justifying these still referenced omxplayer, which is long gone -- that comment was the last mention of it in the tree. Video now goes through GStreamer, and the display, DPI and virtual-matrix buffers all come from the vc4-KMS CMA pool, which the installer already sizes to 256MB on the overlay line just above. There is no MMAL/OpenMAX path left to feed. What the settings were actually doing: pi5 256 no effect at all -- the firmware does not implement a GPU memory split on this SoC, and vcgencmd reports the key as unknown on a running board pi4 256 ~180MB carved out of usable RAM, 3.4x the documented maximum of 76 for this model, where the 3D block has its own MMU and allocates from Linux instead pi3 128 ~52MB above the 76 default pi02 128 64MB above the default, on a board with only 512MB total pi2 64 actually BELOW the 76 default for a 1GB board pi1 64 equals the default -- no-op pi0 64 equals the default -- no-op So the entries were a mix of no-ops and waste, with the worst on the two most memory-constrained cases. Removing them restores the firmware defaults (64 below 1GB, 76 at 1GB and up) rather than substituting fresh guesses. The model blocks that held nothing else go with them; the ones that carried real settings keep them. Verified on a Pi 5: with the entries gone the board boots clean, CMA is unchanged at 256MB, and the web UI and daemon come up normally. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 39cd25c commit 936c6f2

1 file changed

Lines changed: 11 additions & 15 deletions

File tree

SD/FPP_Install.sh

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,25 +1153,21 @@ init_uart_clock=16000000
11531153
dtoverlay=miniuart-bt
11541154
11551155
# Model Specific configuration
1156-
# GPU memory set to 128 to deal with error in omxplayer with hi-def videos
1156+
#
1157+
# No gpu_mem here, deliberately. The firmware GPU split is a legacy setting and
1158+
# nothing in FPP draws on it any more: video goes through GStreamer (the old
1159+
# omxplayer/MMAL path is long gone), and the display, DPI and virtual-matrix
1160+
# buffers all come from the vc4-KMS CMA pool sized above. A Pi 5 ignores
1161+
# gpu_mem outright; on a Pi 4 the 3D block has its own MMU and allocates from
1162+
# Linux instead, where the documented ceiling is 76 -- so the 256 this used to
1163+
# set just carved ~180MB out of usable RAM. Unset lets the firmware pick its
1164+
# own default (64 below 1GB, 76 at 1GB and above), which is what we want.
11571165
[pi5]
1158-
gpu_mem=256
11591166
dtparam=uart0=on
1160-
[pi4]
1161-
gpu_mem=256
1162-
[pi3]
1163-
gpu_mem=128
1164-
[pi0]
1165-
gpu_mem=64
11661167
[pi02]
1167-
gpu_mem=128
1168-
dtparam=audio=off
1169-
hdmi_force_hotplug=1
1168+
dtparam=audio=off
1169+
hdmi_force_hotplug=1
11701170
hdmi_drive=2
1171-
[pi1]
1172-
gpu_mem=64
1173-
[pi2]
1174-
gpu_mem=64
11751171
11761172
[all]
11771173

0 commit comments

Comments
 (0)