Open Raghavendra617 opened 12 months ago
scrcpy version: v2.0
Use 2.1.1. #3784
Version 2.1.1 does not fix this sadly.
No, it's possible to control the device with keyboard and mouse in Android 14 with scrcpy 2.1.1. What does not work is "turn screen off".
I can confirm after updating to android 14 today on my pixel 5, the screen no longer turns off and I have a new error in the terminal.
C:\scrcpy\scrcpy --window-title=hooligeek --turn-screen-off --stay-awake --window-x=1 --window-y=31 --window-height=1008
C:\scrcpy>myscrcpy.bat
scrcpy 2.1.1 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO: --> (usb) 0C101FDD4003AV device Pixel_5
C:\scrcpy\scrcpy-server: 1 file pushed, 0 skipped. 80.5 MB/s (56995 bytes in 0.001s)
[server] INFO: Device: [Google] google Pixel 5 (Android 14)
INFO: Renderer: direct3d
INFO: Texture: 108[server] ERROR: Could not invoke method
java.lang.NoSuchMethodException: android.view.SurfaceControl.getPhysicalDisplayIds []
0 at java.lang.Class.getMethod(Class.java:2937)
x2336
at java.lang.Class.getMethod(Class.java:2449)
at com.genymobile.scrcpy.wrappers.SurfaceControl.getGetPhysicalDisplayIdsMethod(SurfaceControl.java:137)
at com.genymobile.scrcpy.wrappers.SurfaceControl.getPhysicalDisplayIds(SurfaceControl.java:144)
at com.genymobile.scrcpy.Device.setScreenPowerMode(Device.java:319)
at com.genymobile.scrcpy.Controller.handleEvent(Controller.java:169)
at com.genymobile.scrcpy.Controller.control(Controller.java:83)
at com.genymobile.scrcpy.Controller.lambda$start$0$com-genymobile-scrcpy-Controller(Controller.java:91)
at com.genymobile.scrcpy.Controller$$ExternalSyntheticLambda1.run(Unknown Source:4)
at java.lang.Thread.run(Thread.java:1012)
[server] ERROR: Could not get physical display ids
Terminal output prior to OS update
C:\scrcpy>myscrcpy.bat
scrcpy 2.1.1 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO: --> (usb) 0C101FDD4003AV device Pixel_5
C:\scrcpy\scrcpy-server: 1 file pushed, 0 skipped. 80.7 MB/s (56995 bytes in 0.001s)
[server] INFO: Device: [Google] google Pixel 5 (Android 13)
INFO: Renderer: direct3d
INFO: Texture: 1080x2336
[server] INFO: Device screen turned off
Can confirm that controlling the device with mouse and keyboard does not work on Pixel 8 pro with android 14
@Lpptrex Which scrcpy version?
2.0
On Thu, Oct 19, 2023, 20:50 Romain Vimont @.***> wrote:
Which scrcpy version?
— Reply to this email directly, view it on GitHub https://github.com/Genymobile/scrcpy/issues/4342#issuecomment-1771535397, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADH2VY3JAQ24GGZJW3YHTPTYAFY6HAVCNFSM6AAAAAA52BL7SKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZRGUZTKMZZG4 . You are receiving this because you commented.Message ID: @.***>
Then that's expected. Use scrcpy v2.1.1.
Confirmed that this happened to me as well on 2.1.1. Appears to have been resolved in 2.3:
https://github.com/Genymobile/scrcpy/releases/tag/v2.3
Can confirm on my end that I no longer receive this error and my screen turns off as expected with -S
after upgrading to the latest release (2.3.1 at the time of writing)
Environment
Describe the bug A clear and concise description of what the bug is.
On errors, please provide the output of the console (and
adb logcat
if relevant).Please do not post screenshots of your terminal, just post the content as text instead.