Hello,
is there a way to include the script in Android?
I found a script but it only controls the fan:
#!/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
i2cget -y 1 0x01a $fanspeed
if [ $cputemp -ge 60000 ]; then
[[ -f /sdcard/Fancontrol/fanlog.txt ]] && echo $(date +"%d-%m-%y %H:%M:%S") $cputemp $fanspeed >> /sdcard/Fancontrol/fanlog.txt
fi
sleep $sleeptime
done
Is there a script that supports the fan, IR and power function?
Hey,
sorry to be so late on this topic. But has anyone figured this out? Been wanting to run LineageOS but I can’t seem to figure out how to run the fan script. Not having much luck using Google.
Please refer to the following post responses:
Fan control:
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 -…
IR control:
One more tidbit I figured I would share as this took some time to understand to get working.
If you want to also control LineageOS with the IR receiver included in the V3 case, do the following:
Create a unix file (Not with windows line endings) called rc_keymap.txt with the following data:
# table argon, type: NEC
0x9c KEY_POWER
0xca KEY_UP
0xd2 KEY_DOWN
0x99 KEY_LEFT
0xc1 KEY_RIGHT
0x80 KEY_VOLUMEUP
0x81 KEY_VOLUMEDOWN
0xce KEY_OK
0xcb KEY_HOME
0x9d KEY_MENU
0x90 KEY_BACK
Boot into recov…
Hope this helps!