-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
Connection lost when unlocking the screen via wifi or if the screen is locked #1382
Comments
Your device decides to disconnect adb when you unlock the PIN (if you Nothing scrcpy can do I think, unfortunately. |
Seconds before I finish entering the PIN.
|
I tried to unlock by fingerprint, but it gives the same problem.
|
Oh, you might try to disable some USB-related mode when you plug your device (MTP, PTP, whatever). How to configure this option is device-dependant, but sometimes it opens a dialog when you plug your device. |
It worked! I disabled data transfer, it was set as default "No data transfer". Now I can unlock it and the window doesn't close anymore. |
Hello, Am I experiencing the same issue as this one ? A Minimal reproduction steps :
Alternative reproduction steps :
It's already disabled on my device. Thanks |
Possibly related on Stack Overflow: ADB losing connection when phone screen turns off |
FWIW, the android native Wireless ADB would always shut off for me, but using the app "WIFI ADB" keeps adb alive when screen is off. |
Environment
Describe the bug
I use these commands to connect:
adb tcpip 5555
adb connect 192.168.0.121
scrcpy
I'm trying to connect via wifi, but whenever I unlock the screen with the PIN, the connection is lost. I tried to unlock it directly on the phone, but the same thing happens.
If I connect with the screen unlocked, I can use scrcpy. When the screen is locked, the connection is lost and I have to do the command "adb connect 192.168.0.121" again to be able to connect.
With the USB cable, I had no problems.
The text was updated successfully, but these errors were encountered: