Force deep sleep

522 views
Skip to first unread message

Peleke

unread,
Nov 1, 2020, 7:48:50 AM11/1/20
to Tasker
How can I force deep sleep / doze mode earlier than after 30 minutes inactivity with Tasker? 
Is there any Secure Settings command for this such as device_idle_constants? 

João Dias

unread,
Nov 2, 2020, 4:23:30 AM11/2/20
to tas...@googlegroups.com
Maybe you can do that with ADB Wifi? Check this out: https://stackoverflow.com/questions/33439395/how-to-force-doze-on-marshmallow

Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias


Peleke

unread,
Nov 2, 2020, 2:37:24 PM11/2/20
to Tasker
What about using Tasker only by granting the following two permissions:

adb -d shell pm grant net.dinglisch.android.taskerm android.permission.DUMP
adb -d shell pm grant net.dinglisch.android.taskerm android.permission.WRITE_SECURE_SETTINGS  

Then creating a shell command with Secure settings inside of a "Display off" event profile?:

adb shell dumpsys deviceidle force-idle  

I tried this because the app "Naptime" seems to use those two permissions: https://play.google.com/store/apps/details?id=com.franco.doze
Somehow it doesn't seem to work.

João Dias

unread,
Nov 3, 2020, 4:12:08 AM11/3/20
to tas...@googlegroups.com
Sorry, not sure about that either. Did you try using the ADB Wifi action?
Reply all
Reply to author
Forward
0 new messages