You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Android settings not restored after scrcpy is normally closed. #6540
Scrcpy crashed and closed unexpectedly on 2025/12/14.
Since then the android settings cannot be restored anymore even if scrcpy is closed normally.
ADB is connected wirelessly with Wi-Fi ADB. (No USB cable is used)
Let me show the problem using show_touches as an example.
changed the title [-]Android settings not restored after scrcpy closed.[/-][+]Android settings not restored after scrcpy is normally closed.[/+]on Dec 17, 2025
Scrcpy crashed and closed unexpectedly on 2025/12/14.
What was the crash? Do you have some error message?
I used scrcpy to remotely click and switch off "USB debugging" in Developer option, then scrcpy was closed unexpectedly. I checked my phone and found that it's turned off. Then I long pressed the power button to boot the phone. After that, the issue ocurred. Any settings changed by scrcpy (stay-awake, screen-off-timeout 99999, show-touches, etc) never reverted as I showed in the example.
I found my issue to be the same with #6405. Problem solved after using that scrcpy-server. This issue can be closed.
Thank @rom1v for reaching out and help.
Hi, @rom1v
Sorry I reopen the issue. Although 3.3.4 works, its CPU usage is significantly increased. For 3.3.3, the CPU usage is less than 10% CPU, but for 3.3.4, the CPU is 50%. Is that normal?
Sorry I reopen the issue. Although 3.3.4 works, its CPU usage is significantly increased. For 3.3.3, the CPU usage is less than 10% CPU, but for 3.3.4, the CPU is 50%. Is that normal?
Probably not related to 3.3.3 vs 3.3.4.
If you alternate between 3.3.3 and 3.3.4 with the same use case with the same parameters, can you reproduce consistenly that 3.3.4 has a higher CPU usage?
Sorry I reopen the issue. Although 3.3.4 works, its CPU usage is significantly increased. For 3.3.3, the CPU usage is less than 10% CPU, but for 3.3.4, the CPU is 50%. Is that normal?
Probably not related to 3.3.3 vs 3.3.4.
If you alternate between 3.3.3 and 3.3.4 with the same use case with the same parameters, can you reproduce consistenly that 3.3.4 has a higher CPU usage?
You're right.
After finding the high CPU of 50% in 3.3.4, I didn't know how to roll back to 3.3.3, so I run with 3.3.3 with static build. Therefore the comparison was not fair.
One thing is for sure. When I run with the "brew" version, the CPU is as high as 50%, but when I run with static build, the CPU is as low as 4.6%. Same parameters and same phone. Is that what you expected? In that case I'll use the static build version in the future.
Since the new issue (significant CPU usage gap between "brew install" and "static build" versions) is a totally different one, I'll close this issue again.
Right now I'm satisifed with low CPU usage of "static build" version. If you want me to open another issue to dig into the cause of high CPU of "brew install", I'll do it and provide more input.
Activity
[-]Android settings not restored after scrcpy closed.[/-][+]Android settings not restored after scrcpy is normally closed.[/+]rom1v commentedon Dec 17, 2025
What was the crash? Do you have some error message?
https://github.com/Genymobile/scrcpy/blob/master/doc/device.md#show-touches
# disable show_touches adb shell settings put system show_touches 0js4jiang5 commentedon Dec 17, 2025
I used scrcpy to remotely click and switch off "USB debugging" in Developer option, then scrcpy was closed unexpectedly. I checked my phone and found that it's turned off. Then I long pressed the power button to boot the phone. After that, the issue ocurred. Any settings changed by scrcpy (stay-awake, screen-off-timeout 99999, show-touches, etc) never reverted as I showed in the example.
Do you know how to fix it?
js4jiang5 commentedon Dec 17, 2025
I found my issue to be the same with #6405. Problem solved after using that scrcpy-server. This issue can be closed.
Thank @rom1v for reaching out and help.
rom1v commentedon Dec 17, 2025
Oh, maybe I should release a 3.3.4 soon.
rom1v commentedon Dec 17, 2025
Fixed in scrcpy 3.3.4.
js4jiang5 commentedon Dec 18, 2025
I've tested and confirm that scrcpy 3.3.4 has solved the issue.
js4jiang5 commentedon Dec 18, 2025
Hi, @rom1v
Sorry I reopen the issue. Although 3.3.4 works, its CPU usage is significantly increased. For 3.3.3, the CPU usage is less than 10% CPU, but for 3.3.4, the CPU is 50%. Is that normal?
rom1v commentedon Dec 18, 2025
Probably not related to 3.3.3 vs 3.3.4.
If you alternate between 3.3.3 and 3.3.4 with the same use case with the same parameters, can you reproduce consistenly that 3.3.4 has a higher CPU usage?
js4jiang5 commentedon Dec 18, 2025
You're right.
After finding the high CPU of 50% in 3.3.4, I didn't know how to roll back to 3.3.3, so I run with 3.3.3 with static build. Therefore the comparison was not fair.
One thing is for sure. When I run with the "brew" version, the CPU is as high as 50%, but when I run with static build, the CPU is as low as 4.6%. Same parameters and same phone. Is that what you expected? In that case I'll use the static build version in the future.
js4jiang5 commentedon Dec 18, 2025
Since the new issue (significant CPU usage gap between "brew install" and "static build" versions) is a totally different one, I'll close this issue again.
Right now I'm satisifed with low CPU usage of "static build" version. If you want me to open another issue to dig into the cause of high CPU of "brew install", I'll do it and provide more input.
Merge tag 'v3.3.4' of https://github.com/Genymobile/scrcpy into master