Open MIUI 10 on MI9SE: turn on Ambient screen after plug in charger?

Discussion in 'Tasker' started by a-charge, Jul 16, 2019.

  1. a-charge

    a-charge New Member

    Joined:
    Jul 16, 2019
    Messages:
    2
    Likes Received:
    0
    Hi all!

    New to Tasker and struggling to find how can I change the Ambient Screen On/Off option?

    (Found in State that the power state AC, so I think finding how to toggle Ambient should solve my problem)

    Help would be appreciated, thanks for your kind attention!

    P.S. had purchased pro version but it did not help me for now :)
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,477
    Likes Received:
    799
    Hi there. Maybe you can try using the "Custom Setting" action for that. Try using the Magnifying glass in the action with the option to automatically find the setting and see if Tasker can find it. Hope this helps! :)
     
  3. a-charge

    a-charge New Member

    Joined:
    Jul 16, 2019
    Messages:
    2
    Likes Received:
    0
    Hi, and many thanks for your answer!

    Used the find option - and after toggling the desired option as suggested by the app, I found out that it's called doze_always_on !

    Googling ' tasker "doze_always_on" ' gave me this https://www.reddit.com/r/tasker/comments/7cjmcw/ambient_display_pixel_2/ (quoted in italic below for the reference)

    So now I almost have it but need to enable Autotools permissions via adb - will try this later and report how it went!


    You can toggle ambient display on/off in Tasker with Autotools plugin. Refer to this tutorial: Find Custom Settings To Use in AutoTools Secure Settings (https://forum.joaoapps.com/index.ph...ings-to-use-in-autotools-secure-settings.210/)
    level 2

    mnrivera210
    2 points·1 year ago
    Thank you! This worked for me. For anyone with the same question:

    • New Task
    • Plugin -> Autotools -> Secure Settings
    • Configure
    • Custom Setting
    • Setting Type = "Secure"
    • Name = "doze_always_on"
    • Input Type = "Int"
    • Value = "0" OFF/ "1" ON
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,477
    Likes Received:
    799
    But you should be able to simply change it with Tasker itself using the action you used to find it :)
     

Share This Page