Add needed thermal option
- This feature enables user writeable thermal trip points. This allows tunable fan control:
echo 65000 > /sys/devices/virtual/thermal/thermal_zone0/trip_point_0_temp
echo 75000 > /sys/devices/virtual/thermal/thermal_zone0/trip_point_1_temp
echo 82000 > /sys/devices/virtual/thermal/thermal_zone0/trip_point_2_temp
- Changes odroidxu4_defconfig:
View
2 arch/arm/configs/odroidxu4_defconfig
@@ -2259,7 +2259,7 @@ CONFIG_SENSORS_INA2XX=m
CONFIG_THERMAL=y
CONFIG_THERMAL_HWMON=y
CONFIG_THERMAL_OF=y
-# CONFIG_THERMAL_WRITABLE_TRIPS is not set
+CONFIG_THERMAL_WRITABLE_TRIPS=y
CONFIG_THERMAL_DEFAULT_GOV_STEP_WISE=y
# CONFIG_THERMAL_DEFAULT_GOV_FAIR_SHARE is not set
# CONFIG_THERMAL_DEFAULT_GOV_USER_SPACE is not set
- GitHub commit and author
- Read temperature:
root@hiperborea ~ # ls -l /sys/devices/virtual/thermal
total 0
drwxr-xr-x 3 root root 0 Okt 23 12:21 cooling_device0
drwxr-xr-x 3 root root 0 Okt 23 12:21 cooling_device1
drwxr-xr-x 3 root root 0 Okt 23 12:21 cooling_device2
drwxr-xr-x 3 root root 0 Okt 23 12:21 thermal_zone0
drwxr-xr-x 3 root root 0 Okt 23 12:21 thermal_zone1
drwxr-xr-x 3 root root 0 Okt 23 12:21 thermal_zone2
drwxr-xr-x 3 root root 0 Okt 23 12:21 thermal_zone3
drwxr-xr-x 3 root root 0 Okt 23 12:21 thermal_zone4
root@hiperborea ~ # cat /sys/devices/virtual/thermal/thermal_zone*/temp
46000
44000
48000
46000
26000