Timeline for Minimal way to always have screen on on Android?
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 20, 2019 at 21:31 | comment | added | Patrick Rynhart | Thank you - yes we're using them for kiosks. Will try this out but this looks like a good workaround. Thank you - Patrick | |
Aug 19, 2019 at 19:59 | comment | added | alecxs |
@PatrickRynhart if you use it in kiosk mode with very limited gui, just send a tap to corner every 15 seconds i don't think this harms much (will drop notifications). for more safety you can increase the display timeout up to 30 min and decrease the tap frequency (even tap outside of display will work) while [ 1 ]; do input tap 720 1260; sleep 15; done
|
|
Aug 18, 2019 at 2:49 | comment | added | Patrick Rynhart | Hmmm - wonder if I can use some of the commands from github.com/Genymobile/scrcpy/issues/101 to achieve what I want (via the "adb shell settings put system screen_*" commands). After looking at developer.android.com/reference/android/provider/… there seems to be quite a few settings that have been deprecated though..... | |
Aug 18, 2019 at 2:05 | comment | added | Patrick Rynhart | Actually another thought I just had - is there somewhere where you can set the "dim" percentage for the display. E.g. If dim is going to 30% of the total screen brightness, can I set "dim" to 100%. This way - even if the screen is going into "dim" mode it won't matter (i.e. no need to send 'tap'/'mouse'/'key' events to the display) | |
Aug 18, 2019 at 1:59 | comment | added | alecxs | not sure if there is a keycode for unlock. the only other harmless input event i can imagine is a mouse cursor moving (not touch/swipe) but the cursor might be visible | |
Aug 17, 2019 at 23:34 | comment | added | Patrick Rynhart | Ugh - maybe spoke too soon. After a certain amount of time (even with "Settings -> Developer Options -> Stay Awake On") the screen will dim, and dims almost to the point where you can't see anything. A "tap" will bring the screen back to full brightness - but is there a way to maintain 100% brightness ? | |
Aug 17, 2019 at 22:27 | vote | accept | Patrick Rynhart | ||
Aug 17, 2019 at 13:37 | history | edited | alecxs | CC BY-SA 4.0 |
added code example
|
Aug 17, 2019 at 12:53 | history | answered | alecxs | CC BY-SA 4.0 |