Argon One V3 script for LineageOS

You are going to have to use a script to monitor the fan.

First install Magisk so that you can add scripts to startup. Then boot into normal mode, goto settings - system - developer options and enable adb. Once enabled connect through adb with root access and put the script below in /data/adb/service.d/argon_fan.sh

argon_fan.sh

#!/system/bin/sh
sleeptime=120
while true
do
cputemp=$(cat /sys/class/thermal/thermal_zone0/temp)
if [[ $cputemp -lt 55000 ]]; then
fanspeed="0x00"
elif [ $cputemp -ge 55000 -a $cputemp -lt 60000 ]; then
fanspeed="0x10"
elif [ $cputemp -ge 60000 -a $cputemp -lt 65000 ]; then
fanspeed="0x32"
elif [ $cputemp -ge 65000 ]; then
fanspeed="0x64"
fi
i2cset -y 1 0x01a 0x80 $fanspeed i
sleep $sleeptime
done
1 Like