-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
Can't screening with display off on Android 10 #878
Comments
i also get this problem with my oneplus7pro(android 10, scrcpy v1.10) PS C:\Windows\System32> scrcpy -S INFO: scrcpy 1.10 https://github.com/Genymobile/scrcpy D:\scrcpy\scrcpy-server.jar: 1 file pushed. 0.1 MB/s (22546 bytes in 0.159s) INFO: Initial texture: 1440x3120 [server] ERROR: Exception on thread Thread[Thread-1,5,main] java.lang.AssertionError: java.lang.reflect.InvocationTargetException at com.genymobile.scrcpy.wrappers.SurfaceControl.setDisplayPowerMode(SurfaceControl.java:96) at com.genymobile.scrcpy.Device.setScreenPowerMode(Device.java:165) at com.genymobile.scrcpy.Controller.handleEvent(Controller.java:113) at com.genymobile.scrcpy.Controller.control(Controller.java:73) at com.genymobile.scrcpy.Server$1.run(Server.java:45) at java.lang.Thread.run(Thread.java:919) Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method) at com.genymobile.scrcpy.wrappers.SurfaceControl.setDisplayPowerMode(SurfaceControl.java:94) ... 5 more Caused by: java.lang.IllegalArgumentException: displayToken must not be null at android.view.SurfaceControl.setDisplayPowerMode(SurfaceControl.java:1523) ... 7 more |
Hi, someone could be help me? error
`C:\Users\Nayton User\Documents\scrcpy-win64>scrcpy --version dependencies:
|
Which scrcpy version? |
@rom1v Can you help me?
|
So just use the latest version… |
@rom1v However after some time without touching the mirrored screen it goes out. Is it possible to leave the mirrored screen always on? |
hello,i met the similar promble, my HUAWEI phone cannot screen on with display on,and sometime screen off with display on need to try twice,there are some method to solve it ? |
@ShiverZm Sorry, I didn't understand. Which version btw? |
i met two problem, first problem:my HUAWEI phone cannot be lighted when i made it display on with screen off; the second,is that,i made it screen off with display on, i need try it twice,cirl+o twice,my HUAWEI is Android 10 |
in addition,the cannot-not-light means my screen still off |
Even with physical power button?
That's probably device-related. Which version of scrcpy? |
Yeah if i put -S on the startup, i cant control the phone with mouse and keyboard.
Also if i start without -S but using ctrl+o. Still freezing after.
Here is the error displayed on cmd:
[server] ERROR: Exception on thread Thread[Thread-1,5,main]
java.lang.AssertionError: java.lang.NoSuchMethodException: android.view.SurfaceControl.getBuiltInDisplay [int]
at com.genymobile.scrcpy.wrappers.SurfaceControl.getBuiltInDisplay(SurfaceControl.java:82)
at com.genymobile.scrcpy.Device.setScreenPowerMode(Device.java:164)
at com.genymobile.scrcpy.Controller.handleEvent(Controller.java:113)
at com.genymobile.scrcpy.Controller.control(Controller.java:73)
at com.genymobile.scrcpy.Server$1.run(Server.java:45)
at java.lang.Thread.run(Thread.java:919)
Caused by: java.lang.NoSuchMethodException: android.view.SurfaceControl.getBuiltInDisplay [int]
at java.lang.Class.getMethod(Class.java:2072)
at java.lang.Class.getMethod(Class.java:1693)
at com.genymobile.scrcpy.wrappers.SurfaceControl.getBuiltInDisplay(SurfaceControl.java:80)
... 5 more
The text was updated successfully, but these errors were encountered: