From c010cd4852c8ec0870873442013ea014b99e9dfe Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Fri, 21 Jun 2019 15:57:51 +0200 Subject: [PATCH] RPi4: add config.txt with default 320MB gpu mem Several 4k HEVC files were reported to play with artifacts unless gpu mem is bumped to at least 288MB. Use 320MB for now to have a bit more headroom, just in case. Unfortunately this can't be changed via distroconfig.txt so we have to do it in config.txt. Also drop the disable_overscan block as that's enabled by default via distroconfig.txt. Signed-off-by: Matthias Reichl --- projects/RPi/devices/RPi4/config/config.txt | 38 +++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 projects/RPi/devices/RPi4/config/config.txt diff --git a/projects/RPi/devices/RPi4/config/config.txt b/projects/RPi/devices/RPi4/config/config.txt new file mode 100644 index 0000000000..9e2b74b9ad --- /dev/null +++ b/projects/RPi/devices/RPi4/config/config.txt @@ -0,0 +1,38 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv) +# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv) +################################################################################ +# Bootloader configuration - config.txt +################################################################################ + +################################################################################ +# Memory (System/GPU configuration ) +################################################################################ + +# Default GPU memory split - at least 288M is needed for some 4k HEVC files +gpu_mem=320 + +################################################################################ +# For overclocking and various other settings, see: +# https://www.raspberrypi.org/documentation/configuration/config-txt.md +################################################################################ +# Set 'force_turbo=1' to disable dynamic overclocking and enable overclocking always. +force_turbo=0 + +# Force HDMI even if unplugged or powered off +# hdmi_force_hotplug=1 + +# Doesn't sent initial active source message. +# Avoids bringing CEC (enabled TV) out of standby and channel switch when +# rebooting. +hdmi_ignore_cec_init=1 + +################################################################################ +# End of default configuration +################################################################################ + +################################################################################ +# Include distribution specific config file if it exists. +################################################################################ +[all] +include distroconfig.txt