-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
[Feature] Control without phone screen turning on #793
Comments
or |
@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... |
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 |
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 #87 (comment) and #279 (comment) |
See #760 |
Which Android version? (please copy-paste the text here instead of a screenshot, so that it can be searched) |
@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. |
Because it's |
Can a hotkey be made to auto issue ctrl+o after the right click? |
Same errors here with Android Q stable release.
I have used uppercase "-S". Below is the error messages I'm getting:
|
This is weird, because you enter the code where scrcpy/server/src/main/java/com/genymobile/scrcpy/wrappers/SurfaceControl.java Lines 83 to 85 in 1f8ba1c
What is the value of 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)
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
|
@f3liperamos It's fixed on |
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 Thanks for your had work! |
Any way to use it without the phone screen on.
The text was updated successfully, but these errors were encountered: