Created
July 24, 2025 09:21
-
-
Save cdalvaro/1d0397e8656078e26034020103f7cf1b to your computer and use it in GitHub Desktop.
Raspberry Pi config.txt file with settings for PWM fan
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For more options and information see | |
# https://www.raspberrypi.com/documentation/computers/config_txt.html | |
# When enabled, increases the default turbo-mode clock from 1.5GHz to 1.8GHz | |
# https://www.raspberrypi.com/documentation/computers/config_txt.html#arm_boost | |
arm_boost=1 | |
# Enable serial console | |
# https://www.raspberrypi.com/documentation/computers/config_txt.html#enable_uart | |
enable_uart=1 | |
# Enable the KMS ("full" KMS) graphics overlay, leaving GPU memory as the | |
# default (the kernel is in control of graphics memory with full KMS) | |
dtoverlay=vc4-fkms-v3d | |
disable_fw_kms_setup=1 | |
# START FAN RULES | |
# Info at | |
# - https://github.com/raspberrypi/firmware/blob/master/boot/overlays/README | |
# - https://github.com/raspberrypi/linux/issues/4632#issuecomment-1122687644 | |
# - https://www.jeffgeerling.com/blog/2021/controlling-pwm-fans-raspberry-pi-cm4-io-boards-emc2301 | |
# Enable I2C bus 1. | |
dtparam=i2c_vc=on | |
dtoverlay=i2c-fan,emc2301,midtemp=40000,maxtemp=55000 | |
# END FAN RULES |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Place this file inside the boot partition located at
/boot/firmware/
.This config: