Hi all.
Somebody a while back pointed me in the direction of useful shell scripts wiki for wanting to wake and sleep my computer running libreelec.
Im having a hard time trying to get it working correctly.
I have created a prevent_idle_shutdown.sh file in the config directory containing the scripts from here Useful shell scripts [LibreELEC.wiki]
I have then added what I need to to the autostart.sh file
After that I have ran chmod +x on both files to make sure the executable and rebooted.
Then running my pi over samba shares this will prevent my computer from going to sleep, and when stopping the media on the pi the main computer will go to sleep.
My problem is that the next time the computer wakes it will not sleep after the time I have set, it's almost like the script is keeping it awake even though nothing is connecting to it, so basically it only works once.
Anybody know anything about this.
Thanks