Another update: The fan only powers off when I hold the power button on the Pi, if I shut down the system by the regular shutdown method in emulationstation or by pressing the button, the fan still stays on. So, essentially back at square one.
I've been trying to run a bash file using the scripts on emulationstation documentation. I can't tell if they are even running. I'm using a modified version of the Jeremy Cook bash script since I cant run contrab like in the video.
temp-fan(permanent).sh
#!/bin/bash ontemp=55 gpio -g mode 3 out temp=$(vcgencmd measure_temp | egrep -o '[0-9]*\.[0-9]*') echo $temp #use BCM pin 3, as pin 2 is used for PSU conrol temp0=${temp%.*} echo $temp0 fan_check () { if [ $temp0 -gt $ontemp ] then echo greater than $ontemp fan on gpio -g write 3 1 else echo less than or equal to $ontemp fan off gpio -g write 3 0 fi } while true do fan_check sleep 60 doneAny advice is appreciated.