MIUI sets timeout to 10 minutes when screen timeout settings are opened and KeepScreenOn is enabled
xmha97 opened this issue · 3 comments
VID_20240403_163852_798.mp4
This is a duplicate of #11. The problem occurs when a user visits the settings for screen timeout and the timeout is set higher than what MIUI allows (10 minutes). MIUI then sets the timeout to 10 minutes. However, it only happens when you visit the settings and as far as I know only on MIUI. When screen timeout is set to a value MIUI allows (when KeepScreenOn is not enabled), there aren't any problems.
Therefore, the solution is simple. Don't visit the screen timeout settings when KeepScreenOn is enabled. 🙂
Thanks for your explanation, but I found the following app that works without problems:
https://github.com/mueller-ma/Coffee
The reason Coffee doesn't have the issue is because it uses by default a wake lock instead of changing the settings. KeepScreenOn doesn't use a wake lock but changes the settings instead.
Thanks for letting me know.