Gesture navigation stops working after connecting to scrcpy
Environment
- OS: Nixos
- Scrcpy version: 3.2
- Installation method: nixpkgs
- Device model: Galaxy S20 (SM-G980F/DS)
- Android version: 13
Describe the bug
After using scrcpy on my phone, my gesture navigation stops working. I am unable to swipe up to close apps, or from the left or right of the screen to go back. Not with physical input on the phone, while it's connected or anytime after. Not with mouse input using scrcpy either (default, uhid, aoa, or sdk).
Any other input works, I can use apps (but not close them) and I can access my notifications, etc.
A full restart of the device is required for functionality to return. This, or changing navigation to button controls - gestures still won't work until a restart.
I can't reproduce on a Pixel 8. I always use gesture navigation, and have never observed this issue. :/
Are there any logs that I could share?
Hi, I am facing the exact same issue with my setup. Only difference is that I am able to use the up gesture but left and right gesture dont seem to work until I restart. Sharing the details here
- OS: MacOS Sonoma 14.5 (Apple M2)
- Scrcpy version: 3.2
- Installation method: homebrew
- Device model: Galaxy S25U (SM-S938B/DS)
- Android version: 16
- I have enabled force desktop mode, freeform windows on secondary disply and force apps to be resizable.
- Command used to run scrcpy:
scrcpy --new-display=1920x1200/200 -f
Please let me know if any other information is required to reproduce this or if I can help in some way.
Hi, I am facing the exact same issue with my setup. Only difference is that I am able to use the up gesture but left and right gesture dont seem to work until I restart. Sharing the details here
- OS: MacOS Sonoma 14.5 (Apple M2)
- Scrcpy version: 3.2
- Installation method: homebrew
- Device model: Galaxy S25U (SM-S938B/DS)
- Android version: 16
- I have enabled force desktop mode, freeform windows on secondary disply and force apps to be resizable.
- Command used to run scrcpy:
scrcpy --new-display=1920x1200/200 -fPlease let me know if any other information is required to reproduce this or if I can help in some way.
I have the exact same problem with S25U, Scrcpy 3.3.3 and Windows 11 25H2. Left and right back gestures disappear, home gesture from the bottom keeps working. This happens when I use --new-display.
Hi fwiw, I was able to find a way to prevent this bug from happening
- Start scrcpy when phone is unlocked.
- Do not lock the phone when using scrcpy.
- Close scrcpy when phone is unlocked.
Note that you can use Leader + O and Leader + Shift + O to toggle phone display but do not lock the phone by power button.
Hi fwiw, I was able to find a way to prevent this bug from happening
1. Start scrcpy when phone is unlocked. 2. Do not lock the phone when using scrcpy. 3. Close scrcpy when phone is unlocked.Note that you can use Leader + O and Leader + Shift + O to toggle phone display but do not lock the phone by power button.
Yeah, I managed to find this workaround myself. It seems screen locking while it is connected is what is causing the issue (or at least one of the ways)