EloiStree / HelloInput

Collect of information about old project on Input in aim to do a workshop on the topic
0 stars 0 forks source link

Topic: Remote Control Android from SCRCOPY #164

Open EloiStree opened 3 weeks ago

EloiStree commented 3 weeks ago

1. SCRCPY's Feature to Disable the Screen:

Yes, scrcpy has a feature to turn off the screen of an Android device while maintaining mirroring on your computer. This is useful for saving battery on your device and reducing screen wear. You can toggle the device screen off by pressing Ctrl + o (or using the --turn-screen-off option when launching scrcpy from the command line).

2. Network Bandwidth and scrcpy:

scrcpy can work over both USB and Wi-Fi. Over USB, network bandwidth isn’t an issue since it doesn’t use Wi-Fi at all. However, if you're using it over Wi-Fi, it does consume some bandwidth, as it continuously streams the device's display to your computer. Lowering the bit-rate or resolution can help reduce bandwidth usage:

   scrcpy --bit-rate 2M --max-size 1024

This command sets the bit rate to 2 Mbps and limits the resolution, which should reduce network load. Note that reducing the screen resolution might affect clarity but helps keep bandwidth usage low.

3. Sending Mouse and Keyboard Inputs via scrcpy:

Yes, scrcpy supports full interaction with your Android device using your computer’s mouse and keyboard. You can click, drag, type, and use shortcuts. It mirrors inputs directly as though you’re interacting with the device. So, you can "PostSend" (i.e., interact) through the scrcpy window using standard keyboard and mouse commands without needing any additional ADB commands.

Let me know if you’d like more details on any specific aspect!