@Pedro-Vieira said in Push button (ON/OFF) script problems?:
@lackyluuk said in Push button (ON/OFF) script problems?:
calm down @miserytom
I suggest you to put it into
/recalbox/scripts
and then in/etc/init.d
(where all startup scripts are located) you could place another script which is starting your fan script in a background processHello everyone,
I'm totally Noob with Linux and Raspberry Pi and I need your help. I'm following the lackyluuk Fan Control project, but I have some doubts.
1 - I put the entire lackyluuk code line in a .py file and transferred it to Share / System. I tried using the Tardigrada mode "chmod + x fancontrol.py" but it did not work.
2 - I tried to put fancontrol.py in the / recalbox / scripts and /etc/init.d folders, but the Terminal did not allow it, said the folder is Ready Only.
3 - As I already moved as the Arduino, I know that a code of this is being processed all the time, this will not affect the performance in games and Kodi? Would you like to have this code only be activated by special event trigger?
Some considerations:
I am using the GPIO 14 because it is a PWM I / O port and can later use it in a Fan Control With PWM project.
I used the Python Debug Mode Terminal (/ usr / bin / env python) and ran row by line, when it arrives in command below it's error. Even so, I was able to turn the Fan on and off manually with GPIO.output (GATE, "True / False").def getCPUtemperature():
res = os.popen('vcgencmd measure_temp').readline()
return(res.replace("temp=","").replace("'C\n",""))Thank tou all.
Please, delete this post and the above. I already made it work.