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

Add "screen power mode" command #69

Merged
merged 1 commit into from
Feb 23, 2021
Merged

Conversation

drauggres
Copy link
Collaborator

refs #65

I wasn't able to test -S/--turn-screen-off with original scrcpy: on my devices it disables rendering on the screen, so I have static image on it.
I implemented similar behavior (as far as can understand original source code): checkbox and button are under More menu (three dots).

@kwiksilver, please try it and let me know if it works as you expected.

Before starting server you can change LOG_LEVEL to 'DEBUG' here:

export const LOG_LEVEL = 'ERROR';

to see scrcpy debug messages in logcat.

@kwiksilver
Copy link

Everything works perfectly. I've tested it on two devices and everything works as expected.

Did you want the logcat or did you not need it because it's working?

@drauggres
Copy link
Collaborator Author

Did you want the logcat or did you not need it because it's working?

Since it works, I don't need logcat.
Thank you, @kwiksilver.

@drauggres drauggres merged commit 6898582 into develop Feb 23, 2021
@drauggres drauggres deleted the feature/turn-screen-off branch February 23, 2021 18:28
@kwiksilver
Copy link

In the dev branch where did the options for "CODEC_OPTIONS = 'profile=1,level=1';" go? Only MSE works in dev. It appears that option is no longer in the Constants file.

@drauggres
Copy link
Collaborator Author

In the dev branch where did the options for "CODEC_OPTIONS = 'profile=1,level=1';" go? Only MSE works in dev. It appears that option is no longer in the Constants file.

You can set it from the UI. I added a configuration dialog, you can open it by clicking on the Configure stream button.

@drauggres
Copy link
Collaborator Author

Looks like codec options are broken in develop.
You also can try to use a different encoder instead.

@drauggres
Copy link
Collaborator Author

Looks like codec options are broken in develop.

Fixed in d6a72bf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants