mirror of
https://github.com/Genymobile/scrcpy
synced 2025-08-22 09:57:30 +00:00
Move "screen off timeout" section in documentation
Place the "screen off timeout" section right after "stay awake", as they serve a similar purpose.
This commit is contained in:
parent
48fc18e380
commit
1fd57ede1f
@ -34,6 +34,31 @@ adb shell settings put global stay_on_while_plugged_in 0
|
|||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## Screen off timeout
|
||||||
|
|
||||||
|
The Android screen automatically turns off after some delay.
|
||||||
|
|
||||||
|
To change this delay while scrcpy is running:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
scrcpy --screen-off-timeout=300 # 300 seconds (5 minutes)
|
||||||
|
```
|
||||||
|
|
||||||
|
The initial value is restored on exit.
|
||||||
|
|
||||||
|
It is possible to change this setting manually:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# get the current screen_off_timeout value
|
||||||
|
adb shell settings get system screen_off_timeout
|
||||||
|
# set a new value (in milliseconds)
|
||||||
|
adb shell settings put system screen_off_timeout 30000
|
||||||
|
```
|
||||||
|
|
||||||
|
Note that the Android value is in milliseconds, but the scrcpy command line
|
||||||
|
argument is in seconds.
|
||||||
|
|
||||||
|
|
||||||
## Turn screen off
|
## Turn screen off
|
||||||
|
|
||||||
It is possible to turn the device screen off while mirroring on start with a
|
It is possible to turn the device screen off while mirroring on start with a
|
||||||
@ -71,31 +96,6 @@ adb shell cmd display power-on 0
|
|||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Screen off timeout
|
|
||||||
|
|
||||||
The Android screen automatically turns off after some delay.
|
|
||||||
|
|
||||||
To change this delay while scrcpy is running:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
scrcpy --screen-off-timeout=300 # 300 seconds (5 minutes)
|
|
||||||
```
|
|
||||||
|
|
||||||
The initial value is restored on exit.
|
|
||||||
|
|
||||||
It is possible to change this setting manually:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# get the current screen_off_timeout value
|
|
||||||
adb shell settings get system screen_off_timeout
|
|
||||||
# set a new value (in milliseconds)
|
|
||||||
adb shell settings put system screen_off_timeout 30000
|
|
||||||
```
|
|
||||||
|
|
||||||
Note that the Android value is in milliseconds, but the scrcpy command line
|
|
||||||
argument is in seconds.
|
|
||||||
|
|
||||||
|
|
||||||
## Show touches
|
## Show touches
|
||||||
|
|
||||||
For presentations, it may be useful to show physical touches (on the physical
|
For presentations, it may be useful to show physical touches (on the physical
|
||||||
|
Loading…
x
Reference in New Issue
Block a user