Open mon0theist opened 1 month ago
--stay-awake
has the same effect as:
adb shell settings put global stay_on_while_plugged_in 7
https://developer.android.com/reference/android/provider/Settings.Global#STAY_ON_WHILE_PLUGGED_IN
This should prevent the display to turn off after some delay if it is plugged in.
Check the value of:
adb shell settings get global stay_on_while_plugged_in
If setting this value does not change the behavior, this is a bug in your device system.
How is your device plugged? Over USB? On a dock?
Please read the prerequisites to run scrcpy.
Also read the FAQ and check if your issue already exists.
Environment
Describe the bug
A clear and concise description of what the bug is.
The
--keep-awake
flag doesn't appear to do anything, screen still eventually turns off and locks. Running in USB Debugging mode, not OTG mode. Have not tried OTG mode yet.On errors, please provide the output of the console (and
adb logcat
if relevant).No error messages
Please paste terminal output in a code block. Please do not post screenshots of your terminal, just post the content as text instead.