cec_osd_name=SIGNAGE
kernel=Image
initramfs initramfs-rollback.cpio.gz followkernel
arm_64bit=1
initial_turbo=15
boot_delay=0
dtparam=audio=on               # Enable audio (loads snd_bcm2835)
display_auto_detect=1          # Automatically load overlays for detected DSI displays
hdmi_ignore_edid=0xa5000080
hdmi_force_edid_audio=1
hdmi_drive=2                   # This sets HDMI to include both video and audio signals
hdmi_force_hotplug=1           # Force HDMI to always drive and check the display resolution
hdmi_group=1                   # Graphic modes
hdmi_mode=16                   # 1920x1080 @ 60Hz (Full HD)
disable_overscan=1             # Disable overscan
dtoverlay=vc4-kms-v3d,cma=512M # Enable VC4 KMS and 512MB of GPU memory
max_framebuffers=3             # Enable triple buffering
timezone=Europe/London         # Default timezone

dtparam=sd_poll_once=on        # Check SD card only at boot (no hotplug), reduces polling
dtparam=sd_cqe=0               # Enable A2 Micro SD Command Queueing
dtparam=rtc_bbat_vchg=3000000  # Enable Battery Charging
dtoverlay=rpipci               # Enable PCIe Support
dtparam=pciex1_gen=3           # Enable Use PCI Gen3

# Enable the cooling fan
dtparam=cooling_fan=on

# Level 0: 40% fan speed at 50°C
dtparam=fan_temp0=50000
dtparam=fan_temp0_hyst=3000
dtparam=fan_temp0_speed=102

# Level 1: 60% fan speed at 60°C
dtparam=fan_temp1=60000
dtparam=fan_temp1_hyst=3000
dtparam=fan_temp1_speed=153

# Level 2: 80% fan speed at 70°C
dtparam=fan_temp2=70000
dtparam=fan_temp2_hyst=3000
dtparam=fan_temp2_speed=204

# Level 3: 100% fan speed at 80°C
dtparam=fan_temp3=80000
dtparam=fan_temp3_hyst=3000
dtparam=fan_temp3_speed=255
