-
-
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
How can I get scrcpy to open automatically as I connect phone to usb? Also screen off upon exit and allow access to phone data on the phone upon connection.. #2103
Comments
https://github.com/Genymobile/scrcpy#autostart-on-device-connection
If you talk about the USB debugging popup, just check "Always accept" (or similar). If you talk about the "MTP/PTP" dialog, I don't know.
When you unplug the device, it leaves the screen as is. If you pass |
I use --turn-screen-off on shortcut and it turns screen off. Upon exiting the app to unplugging the phone switches screen to ON. Id like screen to stay as is (which is initially off by --turn-screen-off) upon both exiting the pap and unplugging but now it defaults screen to ON. how can I make screen always stay off? where do I place this command on shortcut? the prompt is ""Allow access to phone data? the connected device will be able to access data on this phone." Its samsung S7 android 8 version. there is no "always accept" how can I have this always accept? |
If you use |
I just tested, exactly as you said, it still turns the device screen on I managed to disable prompt, it was thanks to installing samsung USB driver for mobile phones.. now there is no prompt upon plugging USB where do I place this command on shortcut? Where will I place the --legacy-paste within the shortcut? How can I take screenshot with scrcpy? |
Oh, on my device, USB-unplugging the device turns it on, scrcpy or not.
Sorry, I don't really know how Windows shortcuts work.
Currently, it's not possible (you can only record a video |
Could you please tell me what I need to write within vbs or bat file for all these to be applied together?
how could these be applied to shortcut? If I place this on target section of the shortcut (it has to be shortcut for .exe file, then it turns screen off, but if I add legacy and adb autostart the shortcut doesn't run the app. how could I make this work? Also how can I create exe file for 1.17 version? there is only scrcpy.exe. Id like to have as before scrcpy-noconsole.exe and preferably an exe along with all these features above Id like to add. How can that be done? note: I just checked, yes closing app doesn't turn on screen. How can I have the screen not go off when unplugging USB? Thank you |
When I execute autoadb scrcpy -s '{} on the same folder with scrcpy.exe, adb.exe and autoadb.exe inside, I have this error message : Deteted device mveuq4twkjg6pn8x I have no problem running scrcpy manually besides that... Thanks for any help ! |
Do not add quotes (command-line parsing on Windows is weird):
|
Wow, it was so simple, thanks for the quick reply ! Merci ! (pour ça et scrcpy, j'en profite !) |
It's |
Thx you very much for the new link for autoadb, cause the one upper, goes to the main Scrcpy page... |
3 questions:
Is there a way for the phone to automatically run the scrcpy shortcut on the taskbar as soon as I plug USB to the phone?
How can I always allow the prompt on android screen to access the phone data when I plug the phone to computer?
How can I force screen not to turn on when I unplug the phone from computer or close the scrcpy app?
Thank you
The text was updated successfully, but these errors were encountered: