Does anyone have a good sleep script?
The commands below work great as long as I have superuser access and I type the command myself.
I would like to come up with an idle script and have had much trouble doing this. I haven't found anything online.
The only way I know to get idle time is from the "w" command but that is only based on individual programs and not the system.
I also don't want to introduce a loop that will tax the processor too much.
Any ideas on a good way to do this?
echo mem|tee /sys/power/state
echo disk|tee /sys/power/state