djs icon indicating copy to clipboard operation
djs copied to clipboard

djs not run when system-standby

Open ibnusaja opened this issue 4 years ago • 2 comments

*sorry my English bad.

This my config djs

1815 /data/script/script.sh;

The script is running normaly, but sometime when the screen off, the script not running on time,

and when the screen comes back on, the script runs normally

ibnusaja avatar Dec 29 '21 11:12 ibnusaja

This is a limitation of Android and/or Magisk. Whatever is in your script may not be available in sleep mode. The script must hold a wakelock in some way to ensure the environment is favorable.

VR-25 avatar Jan 09 '22 08:01 VR-25

I ran into the same issue and searched everywhere for a solution but there was none.

In the end, I thought of using the stock Android alarm app to hold the wake lock via a silent alarm and force close the alarm after script has finished running. I use sqlite3 to create/delete alarms as required by config.txt.

George-Seven avatar Aug 31 '22 23:08 George-Seven