I am running the newest version Linux raspberrypi 4.1.10-v7+ #820 SMP PREEMPT Sun Oct 4 16:26:51 BST 2015 armv7l GNU/Linux on an RPi 2,
And when I read the temperature pf the CPU though any method my system eventually completely crashes.
I've tried cat /sys/class/thermal/thermal_zone0/temp and vcgencmd measure_temp and I even tried a python script like this:
f=open("/sys/class/thermal/thermal_zone0/temp")
while True:
f.seek(0)
temp=f.read()
#do something
but they all eventually crash my RPi so bad that all of the lights (ACT and PWR) and my wifi card LED just stay on, no flashing nothing. After that I can just unplug it, plug it back in, and be good to go.
Is there any fix for this? A way to prevent it?