Utilize QtScrcpy and ToDesk to control Android Q remotely

Remote control is never easy job, but it’s really rigid demand in certain situation. There are many ready-to-use paid services, here I would like to share a free way to realize it.

Final achievement:

Control android device wirelessly at anytime and anywhere


  1. Android mobile phone you want to control with wireless adb debug enabled.
  2. Win11 PC connected to the same wifi point as the phone.
  3. ToDesk client installed on the PC and device you want to perform the control.

Basically, you should make QtScrcpy working locally on the PC wirelessly, fllowing this instruction. And if you closed the remote window, the mobile phone will automatically locked and screened off. After a while, you may find that the remote window can’t be launched again, even though the device ID is valid though adb devices, and the device is already connected.

adb devices
adb run
AdbProcessImpl::out:List of devices attached device

wireless connect...
adb run
AdbProcessImpl::out:already connected to

start server...
AdbProcessImpl::out:C:/app/QtScrcpy-win-x64-v2.2.1/scrcpy-server: 1 file pushed, 0 skipped. 102.2 MB/s (69007 bytes in 0.001s)

If this is the situation, you can try to light up the phone though adb shell input keyevent 26, which simulatively trigger the power button. After that, you may launch the device again.

adb run
start server...
AdbProcessImpl::out:C:/app/QtScrcpy-win-x64-v2.2.1/scrcpy-server: 1 file pushed, 0 skipped. 60.7 MB/s (69007 bytes in 0.001s)
AdbProcessImpl::out:[server] INFO: Device: [OnePlus] OnePlus HD1900 (Android 10)

server start finish in 1.431s

AdbProcessImpl::out:[server] DEBUG: Using video encoder: 'OMX.qcom.video.encoder.avc'
[server] DEBUG: Display: using SurfaceControl API

Now, If you tested the process remotely through ToDesk, while the laptop lid or monitor closed, you will get a white screen(白屏)after launched. This is mostly due to the energy-saving mode of graphics card. To solve this, you can purchase a video card spoofer (显卡欺骗器), or install a virtual display tool on PC.

Here I choose nomi-san/parsec-vdd, which is pretty simple to setup. After create a virtual display and restart QtScrcpy, you should resolve the white screen problem.