Thanks for this! While I've used tasker before, I found your post a little hard to follow. What I did was set up a profile like this:Made a quick Tasker Profile which seems to be working just like the Mod. Only things needed are Tasker and Secure Settings.
Below is the description and I have attached the xml as well. If anyone sees an issue I will try and correct it then re-upload.
Only thing new is a loop and a wait. I noticed even though the wake lock should continue until turned off it stops on its own after 15-20 minutes so the new code just makes it wait 15 minutes then reset the wake lock. So far I haven't had any deep sleep in over 2 hours so seems to be working better now.Code:Profile: Screen Off Wake Lag (5) State: Display State [ Is:eek:ff ] Enter: Wake Lag Mod (17) A1: Secure Settings [ Configuration:CPU Awake Only Manual - On Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ] Exit: Wake Lag Off (23) A1: Secure Settings [ Configuration:CPU Awake Only Manual - Off Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
Code:Profile: Screen Off Wake Lag (5) State: Display State [ Is:eek:ff ] Enter: Wake Lag Mod (17) Abort Existing Task A1: Secure Settings [ Configuration:CPU Awake Only Manual - On Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):5 Continue Task After Error:eek:n ] A2: [X] Notify Sound [ Title:Test Text: Icon:null Number:0 Sound File:/storage/sdcard1/Notifications/mirai_nikki_tone.mp3 Priority:3 ] A3: Wait [ MS:0 Seconds:0 Minutes:15 Hours:0 Days:0 ] A4: Goto [ Type:Action Number Number:1 Label: ] Exit: Wake Lag Off (23) A1: Secure Settings [ Configuration:CPU Awake Only Manual - Off Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):5 ]
Display state off: wake lag mod (task)
Wake lag mod task: Configuration: CPU Awake only manual on
That's it. So far it's working, but I feel like I'm missing something since your post was more involved. I didn't understand "package" after manual-on, or where to find most of those settings for the actions you outlined. Is there a problem with the way I did it? Thanks again!