You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Screen does not stay on while plugged in
C:\Users\batah\Downloads\scrcpy-win64-v2.1.1>scrcpy --stay-awake --max-size=1200 --power-off-on-close --no-power-on --turn-screen-off --disable-screensaver
scrcpy 2.1.1 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO: --> (usb) 10fba88d device IN2013
C:\Users\batah\Downloads\scrcpy-win64-v2.1.1\scrcpy-server... file pushed, 0 skipped. 52.4 MB/s (56995 bytes in 0.001s)
[server] INFO: Device: [OnePlus] OnePlus IN2013 (Android 13)
[server] ERROR: Could not change "stay_on_while_plugged_in"
com.genymobile.scrcpy.SettingsException: Could not access settings: put global stay_on_while_plugged_in 7
at com.genymobile.scrcpy.Settings.execSettingsPut(Settings.java:24)
at com.genymobile.scrcpy.Settings.putValue(Settings.java:59)
at com.genymobile.scrcpy.Settings.getAndPutValue(Settings.java:78)
at com.genymobile.scrcpy.Server.initAndCleanUp(Server.java:63)
at com.genymobile.scrcpy.Server.lambda$startInitThread$2(Server.java:168)
at com.genymobile.scrcpy.Server$$ExternalSyntheticLambda3.run(Unknown Source:2)
at java.lang.Thread.run(Thread.java:1012)
Caused by: java.io.IOException: Command [settings, put, global, stay_on_while_plugged_in, 7] returned with value 255
at com.genymobile.scrcpy.Command.exec(Command.java:16)
at com.genymobile.scrcpy.Settings.execSettingsPut(Settings.java:22)
... 6 more
INFO: Renderer: direct3d
INFO: Texture: 544x1200
[server] INFO: Device screen turned off
The text was updated successfully, but these errors were encountered:
Environment
Describe the bug
Screen does not stay on while plugged in
The text was updated successfully, but these errors were encountered: