Screen Timeout Issue

Dimlos

Member
Shell script did not work, but the adb command did.

With ADB Shell [Tasker Plugin], no root is needed.
 

Attachments

  • screen timeout.jpg
    screen timeout.jpg
    333.9 KB · Views: 6
  • adb shell command.jpg
    adb shell command.jpg
    253.2 KB · Views: 6

FrameXX

Well-known member
Shell script did not work, but the adb command did.

With ADB Shell [Tasker Plugin], no root is needed.
Nice.

It's important to note that after every restart of your device you will need to setup adb tcpip again.
 

Swap_File

New member
On Oxygen OS 12 on my OnePlus 8 Pro:

Shell script: "settings put system screen_off_timeout 30000"

Actions - Shell Script - Rooted - No Helper: Works

Actions - Shell Script - Non-Rooted - No Helper : Doesn't work.

Actions - Shell Script - Rooted - Helper : Doesn't work.

Actions - Shell Script - Non-Rooted - No Helper : Doesn't work.

Actions - System Setting - System: Doesn't work.

Actions - System Setting - Secure - No Helper: Doesn't work.

Actions - System Setting - Secure - With Helper : Doesn't work.

Actions - System Setting - Global - No Helper: Doesn't work.

Actions - System Setting - Global - With Helper : Doesn't work.

Actions - Set Screen Time Out : Doesn't work.
 

dhj49er

Active member
Is this going to be resolved soon ? Screen time out issue is quite annoying... thank you !
I don't think the issue is in Macrodroid.
The issue exists on many Oppo phones and now One plus phones that have moved to the Oppo OS.
I no longer have an Oppo phone and my new Huawei phone doesn't have this issue. It also sets media volume when the screen is off, something else the Oppo phone didn't do.
The Huawei has the annoying confirmation dialog when an app tries to turn on or off Bluetooth.
Unfortunately phone manufacturers like to customise Android for their own OS, some more than others, so there will be differences.
 

alboon2000

New member
OK then I suppose it's not possible to modify MD so as to make this functionality work on Oppo devices... That's too bad, because playing with sreen off delay and AOD settings was very nice. Thank you anyway for your hard work.
 

alboon2000

New member
I just tried it (I didn't want a solution involving pluging the phone to my PC at every restart, but I don't have a choice obviously) and I think it works. Thank you !
 

alboon2000

New member
Oh, OK... But didn't FrameXX say "after every restart of your device you will need to setup adb tcpip again." ? Anyway, I'll try and see by myself.

And also, I wanted to play with AOD settings. I saw that the (secure) settings were, apparently :
Setting_AodEnable=1
Setting_AodSwitchEnable=1

I tried some ADB shell commands but, although it's done without any error, AOD won't be activated this way. I must miss something I suppose...
 

Jacob L

Moderator
Oh, OK... But didn't FrameXX say "after every restart of your device you will need to setup adb tcpip again." ? Anyway, I'll try and see by myself.

And also, I wanted to play with AOD settings. I saw that the (secure) settings were, apparently :
Setting_AodEnable=1
Setting_AodSwitchEnable=1

I tried some ADB shell commands but, although it's done without any error, AOD won't be activated this way. I must miss something I suppose...
I made a mistake about the reboot thing. Also MacroDroid has an ambient display action built in, maybe that helps
 

Dimlos

Member
I believe it is possible to turn AOD on and off without ADB...
First post is about screen timeouts, not AOD. If we are on different topics, maybe we should have a separate thread?
 

alboon2000

New member
Yes when I updated my OP8T to Android 12, AOD, screen off delay, and volume settings stopped working properly. Soon after there was a MD update which fixed the volume settings. Screen off delay is now +/- fixed thanks to the ADB shell command solution. But regarding AOD I couldn't find something (the built in MD command doesn't work anymore for me).
Noted for another thread.
Thank you !
 
Top