diy-guy wrote:I just watched those logfiles at the time my errors occured but there is poorly no useful entry
If whatever is happening locks up the entire machine, would there be any way for it to write a useful entry?
So there seems to be a problem with permanently (5sec delay) pinging an Bluetooth MAC adress via l2ping. This script works for about 10minutes then the screen freezes and my PI3 isn´t responding via ssh and has to be hart rebooted.
No one is going to know if there is some problem unless they happen to have done exactly the same things you are doing. But clearly the answer is to debug your program.
Question number one, what line in your script is causing the problem, if it is really the script at all. Maybe you've got a hardware problem or something else in some other software is messed up.
So debug it by removing pieces that seem most likely to be a problem and see if the problem still occurs. You can't do this so easy if it takes days to crash but your claim is five minutes. Remove the bluetooth pings and see what happens. Does it still blow up?
Let's say you find out it is the bluetooth that kills everything. That's huge because then you can ask a question about bluetooth and not a question about your program, which only you have any experience with. Or better, first google about the topic to see if others are having bluetooth ping lock up problems on the pi, probably have to ask more generally but maybe not.
Leaving aside the logic in trying to find out if you are home every five seconds in order to save money by turning off a monitor. Why not every five minutes? Even if you feel like you need to turn the monitor on more quickly when you get home and can't just wiggle the mouse, at least *test* with a longer delay. You want to start to get a feel for why the system is blowing up when you bluetooth ping, if that's what is happening.