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

v2.1.1 ERROR: Could not request to turn screen off if control is disabled #4175

Closed
wicope opened this issue Jul 19, 2023 · 2 comments
Closed

Comments

@wicope
Copy link

wicope commented Jul 19, 2023

v2.0 work

scrcpy \
--serial 1407bef7 \
--v4l2-sink=/dev/video0 --no-display \
--video-codec=h265 --video-encoder='OMX.qcom.video.encoder.hevc.cq' \
--lock-video-orientation=1 \
--video-bit-rate=60M \
--turn-screen-off \
--stay-awake \
--power-off-on-close \
--no-audio

v2.1.1 not work

scrcpy \
--serial 1407bef7 \
--v4l2-sink=/dev/video0 --no-display \
--video-codec=h265 --video-encoder='OMX.qcom.video.encoder.hevc.cq' \
--lock-video-orientation=1 \
--video-bit-rate=60M \
--turn-screen-off \
--stay-awake \
--power-off-on-close \
--no-audio
scrcpy 2.1.1 <https://github.com/Genymobile/scrcpy>
WARN: --no-display is deprecated, use --no-playback instead.
ERROR: Could not request to turn screen off if control is disabled

scrcpy --serial 1407bef7 --v4l2-sink=/dev/video0 --no-playback --video-codec=h265 --video-encoder='OMX.qcom.video.encoder.hevc.cq' --lock-video-orientation=1 --video-bit-rate=60M --turn-screen-off --stay-awake --power-off-on-close --no-audio
scrcpy 2.1.1 <https://github.com/Genymobile/scrcpy>
ERROR: Could not request to turn screen off if control is disabled
@rom1v
Copy link
Collaborator

rom1v commented Jul 19, 2023

Probably introduced by: 92483fe

It makes sense to disable controls when there is no display (because there is no way to control)… except for the initial --turn-screen-off. So the commit should probably be reverted.

@rom1v
Copy link
Collaborator

rom1v commented Jul 28, 2023

Fixed by 110b3a1. Please test the current dev branch.

@rom1v rom1v closed this as completed in 110b3a1 Nov 1, 2023
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

No branches or pull requests

2 participants