Mintoris Forum

Author Topic: How to prevent the screen from turning off due to inactivity?  (Read 3038 times)

FabianClub

  • Full Member
  • ***
  • Posts: 78
Companions, I want to ask you how it is done so that during the execution of the program does not turn off the screen due to inactivity.
Is there a command in Mintoris to avoid that?

Chuck

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1899
Re: How to prevent the screen from turning off due to inactivity?
« Reply #1 on: May 24, 2017, 06:48 PM »
The Wakelock On command will keep the device from going to sleep.

Google is trying to eliminate the ability prevent the device from going to sleep, so I'm not sure if the Wakelock command will continue to work on newer versions of Android.

FabianClub

  • Full Member
  • ***
  • Posts: 78
Re: How to prevent the screen from turning off due to inactivity?
« Reply #2 on: May 25, 2017, 05:26 AM »
 ;D Thanks‼

Evelynwed

  • Full Member
  • ***
  • Posts: 26
How to prevent the screen from turning off due to inactivity
« Reply #3 on: Oct 15, 2019, 05:27 PM »
There is a debug mode in settings that gives you the option to never turn screen off when charging, not sure if there is another for all other times.

Applications -> Development -> Stay Awake Screen will never sleep while charging.

VerdaFum

  • Full Member
  • ***
  • Posts: 11
How to prevent the screen from turning off due to inactivity
« Reply #4 on: Oct 15, 2019, 06:54 PM »
I want to disable the display timeout, in the settings you can make it wait up to 30 min before turning off the display.
 
I want it to stay permanently on for demo purposes in our store.
 
How do??