This object is in archive! 
The phone locks instead of just turning off the screen.
Closed
The locus can turn off/on the screen using gestures or a hardware button, as well as when driving along the route. But in fact, instead of turning off the screen, the phone becomes locked. It seems to me that such an action is excessive and unjustified. In addition, this approach in some cases causes (https://help.locusmap.eu/topic/25680-erroneous-lock-of-the-locus-screen) significant inconvenience when using Locus.
Is it possible to just turn off the screen instead of locking the phone?
I'm a little confused because I can turn off the screen without locking the phone. At the same time, security features are enabled on the phone. I can do it with my own hands by pressing the power button. I can also do this with tasker, and for me that means it can be done from the program.
I'm a little confused because I can turn off the screen without locking the phone. At the same time, security features are enabled on the phone. I can do it with my own hands by pressing the power button. I can also do this with tasker, and for me that means it can be done from the program.
Yes, this is a time delay. And this time delay is set in the phone settings.
Thus, I claim that the functions of turning off the screen and locking the phone are different and independent functions, and they can be used separately.
Yes, this is a time delay. And this time delay is set in the phone settings.
Thus, I claim that the functions of turning off the screen and locking the phone are different and independent functions, and they can be used separately.
I have turned off the lock of the phone. I have been doing this for 5 years sol. It makes a lot of things easier, even with Locus.
I have turned off the lock of the phone. I have been doing this for 5 years sol. It makes a lot of things easier, even with Locus.
It seemed to me that the solution was very simple. All you have to do is send the code of pressing the power button (26) to the phone, and the screen will either turn off or turn on. This is exactly what I do with tasker when Locus is running. And everything works fine.
It seemed to me that the solution was very simple. All you have to do is send the code of pressing the power button (26) to the phone, and the screen will either turn off or turn on. This is exactly what I do with tasker when Locus is running. And everything works fine.
Hi, Zdeněk informed me about your suggestion with the key event.
Anyway, any idea how to send key events on Android? Because I was able to find out only one solution so far, that requires special system permission INJECT_EVENTS, that is not available for the Locus Map app. I'm surprised if Tasker is able to do this, as it looks to me like a big security hole if any app should without warning send any key events to the whole system.
Hi, Zdeněk informed me about your suggestion with the key event.
Anyway, any idea how to send key events on Android? Because I was able to find out only one solution so far, that requires special system permission INJECT_EVENTS, that is not available for the Locus Map app. I'm surprised if Tasker is able to do this, as it looks to me like a big security hole if any app should without warning send any key events to the whole system.
I will probably be able to do this because the phone has ROOT installed.
I will probably be able to do this because the phone has ROOT installed.
Heh, oki. This is the correct reason :).
Heh, oki. This is the correct reason :).
I did everything I could. :-(
I did everything I could. :-(
A. I understood how it should work.
And it works like an idea.
But my phone allows you to set a minimum screen shutdown time of 15 seconds. In practice, this is hardly applicable.
Still, let me remind you once again that the Tasker "Turn off" command is executed instantly.
Maybe ask the Tasker developer how this is done programmatically?
A. I understood how it should work.
And it works like an idea.
But my phone allows you to set a minimum screen shutdown time of 15 seconds. In practice, this is hardly applicable.
Still, let me remind you once again that the Tasker "Turn off" command is executed instantly.
Maybe ask the Tasker developer how this is done programmatically?
Hi, I'm looking at this problem a little more. Only a single hack work +- reliable > method is also used by the tasker with a short timeout. It does not matter if your phone supports only 15 sec. The app may over API set even shorter time and this is used here.
I'll let you know if this works when I and users on the forum do some field testing. Anyway, watch the news in the next version. If all went well, this may be an official method that may solve the reported issue.
Menion
Hi, I'm looking at this problem a little more. Only a single hack work +- reliable > method is also used by the tasker with a short timeout. It does not matter if your phone supports only 15 sec. The app may over API set even shorter time and this is used here.
I'll let you know if this works when I and users on the forum do some field testing. Anyway, watch the news in the next version. If all went well, this may be an official method that may solve the reported issue.
Menion
Replies have been locked on this page!