idle shutdown
-
is there a way or has someone already done it.
to program a way for the Pi to auto shutdown once its been idle for a set amount of time.i know next to nothing about making a script like this.
-
@ExarKunIv You can use
incron
to take a look into folder/dev/shm
if there is a file change in the folder. Then usecronjob
and let it count a value+1 per minute. If the value is 10 then you can initialize a sleepmode.
Ifincron
recognizes a new file or file change the counter is set to 0. -
Well, there is a recent set of PRs that would add scripting support for Emulationstation and you could hook up a script to shutdown ES when the sleep event is triggered.
You'll have to wait for the modifications to be finalized and added, but in the mean time you could give it a try with @cyperghost's idea. -
@mitu good to know. that will be nice once it is added
@cyperghost thank you. i have a start on where to start playing with it.
-
@mitu Nearly forget that there is a WIP PR ;) I think this can be a usefull addition to our installations now.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.