Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stay awake error when connecting #21

Closed
Uj947nXmRqV2nRaWshKtHzTvckUUpD opened this issue Jul 7, 2023 · 3 comments
Closed

stay awake error when connecting #21

Uj947nXmRqV2nRaWshKtHzTvckUUpD opened this issue Jul 7, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@Uj947nXmRqV2nRaWshKtHzTvckUUpD
Copy link
Owner

[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:920)
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

@Uj947nXmRqV2nRaWshKtHzTvckUUpD
Copy link
Owner Author

related to Genymobile/scrcpy#2612

@Uj947nXmRqV2nRaWshKtHzTvckUUpD
Copy link
Owner Author

Uj947nXmRqV2nRaWshKtHzTvckUUpD commented Jul 7, 2023

workaround: temporarily fixed on #22

@Uj947nXmRqV2nRaWshKtHzTvckUUpD
Copy link
Owner Author

stay-awake disabled.
per https://github.com/Genymobile/scrcpy/blob/master/doc/device.md:
If the device is not plugged in (i.e. only connected over TCP/IP), --stay-awake has no effect (this is the Android behavior).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant