JonasBernard / FakeStandby

An Android app for turning the screen off while keeping apps running.
https://fakestandby.jonasbernard.de
GNU General Public License v3.0
414 stars 25 forks source link

Screen going back to normal (not black) after exactly 30 seconds #69

Open coloratacirca opened 1 year ago

coloratacirca commented 1 year ago

Describe the bug When fake standby is started the screen goes black but only for 30 seconds, then it goes back to normal. Secure mode is not on and I gave it all the permission the app asked + permission for working in background and permission to ignore battery optimization.

To Reproduce I just installed the apk from F-Droid, followed what the app said about the permission and such and tried to execute it. I also tried with downloading the apk from github (you never know) but same result.

Expected behavior As far as I understood, the screen should stay black indefinitely

Device information:

coloratacirca commented 1 year ago

I also tried using an older version (1.3.3 as it was suggested in another issue) and the same problem happens, so I guess it's an issue with my phone and/or settings

ghost commented 1 year ago

Did you make sure that Secure mode is disabled in the FakeStandby settings?

coloratacirca commented 1 year ago

yes I did. With secure mode on the screen goes back to normal after 15 seconds, as it shod be. With Secure mode turned off, the screen goes back to normal after 30 seconds

E0697 commented 1 year ago

Same here. Same device and OS.

E0697 commented 1 year ago

This seems related to the screen-off time and the period changes accordingly.

JonasBernard commented 1 year ago

I did some research on that. It seems like the timeout habdler I use has unexpected behaviour, when initialising using the constructor without any arguments. So I will (as soon as I find the time) add the recommend argument and publish a new version.

rak-rak commented 1 year ago

Same issue on Samsung S22+, Android 13

Display wakes up after 30 seconds.

rak-rak commented 11 months ago

Hi, more clarification to that issue: "30 seconds" is the time that is set in Android until the display turns off. If you set this to e.g. "2 minutes" and use FakeStandby, the screen will be enabled after 2 minutes. Weird.

That means: Using FakeStandby the display will turn on after the time that is set in Android to turn the display off. (Samsung Android 13).

Workaround could be:

  1. FakeStandby should set the time in Android for display turn off to a very big value.
  2. Then show the black screen
  3. After the user has turned the display on, FakeStandby should set the Android setting to previous value.