Any way to use it without the phone screen on.
scrcpy --turn-screen-off
or Ctrl+o at any time in the scrcpy window.
@rom1v I tried to make a shortcut to launch the no console executable with this parameter and it didn't work. Is it possible? Didnt found any arg to disable the console on the normal client too.
@fefo-dev I got it working...
@rom1v thanks, misunderstood the documentation initially, on the other note is there any way for right click (while scren is off) to automatically go into this mode instead of also turning on the screen while doing it. I've also got another requests that the screen would turn off when minimizing the window .
And another one, when the window gets minimized if oz could stop streaming and continue when its maximized again.
is it possible to control the device with no mirroring?, I just want to control the device with mouse and keyboard with no mirroring on the computer.
@iamjoshuabcxvii , you can do it with the gui interface, even without scrcpy on guiscrcpy
https://srevinsaju.github.io/guiscrcpy/
guiscrcpy - your PC is your Android device
@iamjoshuabcxvii , you can do it with the gui interface, even without scrcpy on guiscrcpy
https://srevinsaju.github.io/guiscrcpy/
guiscrcpy - your PC is your Android device
it looks like the same SCRCPY anyway, is there a way to not mirror the phone screen really and just control it with mouse and KB?.
You can do it with your mouse , no keyboard. The panels remain open and are connected even though mirroring is not enabled, implying you can power on / off your device remotely or press the home key without mirroring. You can also do swipes
Note: guiscrcpy is completely independent module from scrcpy. It is like an add-on, so it has its own engine
@iamjoshuabcxvii No, not possible with _scrcpy_.
Ref https://github.com/Genymobile/scrcpy/issues/87#issuecomment-378775565 and https://github.com/Genymobile/scrcpy/issues/279#issuecomment-453819354
is there any way for right click (while scren is off) to automatically go into this mode instead of also turning on the screen while doing it
See #760
this feature not working, there is a error showing

Which Android version?
_(please copy-paste the text here instead of a screenshot, so that it can be searched)_
this feature not working, there is a error showing
@rom1v I have meet this call stack on my oneplus 7 pro with Android 10 beta 1. The exception happens in reflection target. I guess it is a bug from beta build.
Finally got it to work. For some reason -s didn't work with scrcpy-noconsole but --turn-screen-off did.
For reference I created a .bat file with _scrcpy-noconsole --turn-screen-off_ . However, the .bat itself creates a cmd window to run the command, and closing it closes scrcpy. So I found a way to run all off that silently from a .vbs file with _CreateObject("Wscript.Shell").Run "your.bat", 0, True_ . Trying to run scrpcy with arguments directy failed for me, but it should be some syntax issue.
For some reason -s didn't work
Because it's -S? :)
is there any way for right click (while scren is off) to automatically go into this mode instead of also turning on the screen while doing it
See #760
Can a hotkey be made to auto issue ctrl+o after the right click?
this feature not working, there is a error showing
@rom1v I have meet this call stack on my oneplus 7 pro with Android 10 beta 1. The exception happens in reflection target. I guess it is a bug from beta build.
Same errors here with Android Q stable release.
Unable to control from PC while starting with -S tag.
Also while launched normally(without -S), input control from PC is lost as soon as Ctrl+O is pressed, also screen on both ends get turned off.
For some reason -s didn't work
Because it's
-S? :)
I have used uppercase "-S".
Below is the error messages I'm getting:
C:\scrcpy\scrcpy-server.jar: 1 file pushed. 1.3 MB/s (22470 bytes in 0.016s)
INFO: Initial texture: 720x1280
[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
Same errors here with Android Q stable release.
java.lang.NoSuchMethodException: android.view.SurfaceControl.getBuiltInDisplay [int]
This is weird, because you enter the code where Build.VERSION.SDK_INT < Build.VERSION_CODES.Q:
What is the value of Build.VERSION.SDK_INT on your device?
diff --git a/server/src/main/java/com/genymobile/scrcpy/wrappers/SurfaceControl.java b/server/src/main/java/com/genymobile/scrcpy/wrappers/SurfaceControl.java
index 5b5586f..ffa49ee 100644
--- a/server/src/main/java/com/genymobile/scrcpy/wrappers/SurfaceControl.java
+++ b/server/src/main/java/com/genymobile/scrcpy/wrappers/SurfaceControl.java
@@ -6,6 +6,8 @@ import android.os.Build;
import android.os.IBinder;
import android.view.Surface;
+import com.genymobile.scrcpy.Ln;
+
@SuppressLint("PrivateApi")
public final class SurfaceControl {
@@ -80,6 +82,8 @@ public final class SurfaceControl {
try {
// the method signature has changed in Android Q
// <https://github.com/Genymobile/scrcpy/issues/586>
+ Ln.d("SDK_INT = " + Build.VERSION.SDK_INT);
+ Ln.d("VERSION_CODES.Q = " + Build.VERSION_CODES.Q);
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) {
return (IBinder) CLASS.getMethod("getBuiltInDisplay", int.class).invoke(null, builtInDisplayId);
}
I'm getting the exact same error as npes87184 and manishSbisht. (so, no need to copy&paste again). It seems a common issue on those devices (at least on Q roms)
Oneplus 7 pro, running beta 4 of android Q.
What is the value of
Build.VERSION.SDK_INTon your device?
Do I need to setup a environment (devtools to debug, android studio, etc) or it is possible to get this value from adb shell getprop?
I don't know if adb shell getprops lists any sensitive data, but here are some props
[ro.build.product]: [OnePlus7Pro]
[ro.build.version.release]: [10]
[ro.build.version.sdk]: [29]
[ro.build.version.min_supported_target_sdk]: [23]
[ro.rom.version]: [OP7Pro_O2_BETA_4]
@f3liperamos It's fixed on dev branch (the next release will have the fix). See #835
@f3liperamos It's fixed on
devbranch (the next release will have the fix). See #835
Great! I didn't see that issue before because it was on closed state already and I didn't notice we had all those oneplus users opening bugs, my bad.
I was willing to ~try~ share some info since I had the device (and it's probably not a common one) but I have no experience with android&java stuff.
Thanks for your had work!
Most helpful comment
or
Ctrl+oat any time in the scrcpy window.