v1.14
Genymobile/scrcpyv1.14May 27, 2020by rom1v
AI Summary
Implements seamless copy-paste between Android and the computer and adds a stay-awake option to prevent the device from sleeping.
Key Highlights
- Seamless copy-paste from Android to computer (Ctrl+V) and computer to Android (Ctrl+Shift+V).
- New `--stay-awake` option to keep the device screen on.
- Fixed HiDPI issues on secondary monitors.
- Improved Ctrl+C handling on Windows to prevent recording corruption.
New Features
- Seamless copy-paste
- Stay awake option
- Turn screen on shortcut (Ctrl+Shift+o)
- Advanced codec options
- HiDPI fixes
- Verbosity configuration
Full Release Notes
_To receive a notification on new releases, click on **Watch > Releases only** on the top._ --- **scrcpy v1.14** Changes since v1.13: - Add --stay-awake (#631) - Add Ctrl+Shift+o shortcut to turn screen on (#175) - Implement seamless copy-paste from Android to computer (#1056, #1423) - Implement seamless UTF-8 copy-paste from computer to Android >= 7 (#786) - Improve --show-touches behavior - Properly handle Ctrl+C on Windows (avoid to corrupt recording) (#818) - Add --verbosity to configure log level at runtime - Add --codec-options to pass MediaFormat options directly (#1325) - Add --force-adb-forward - Apply workarounds only on error (#994) - Increase LOD bias to reduce blurring on trilinear filtering (#1394) - Fix HiDPI issues on secondary screen (#1408, #15) - Fix rendering issues (#1408, #787) - Fix window restoration regression (#1346) - Fix unexpected focus behavior on scroll (#1362) - Fix "buffer full" error on Ctrl+Shift+v (#1425) - Upgrade platform-tools to 30.0.0 (adb) in Windows releases --- # Highlights ## Stay awake A new option has been added to prevent the device to sleep: ```bash scrcpy --stay-awake scrcpy -w # short option ``` This is especially useful when `--turn-screen-off`/`-S` is enabled, because the device screen will stay awake (no lock screen to unlock after some delay) with screen off: ```bash scrcpy -Sw # turn sceen off and stay awake ``` The initial "stay awake" state is restored when scrcpy is closed. This is the case even on disconnection/unplug (a new mechanism has been implemented to cleanup on disconnection, `--show-touches` also benefits from it). ## Turn screen on The shortcut to turn the screen back on after `--turn-screen-off` or `Ctrl`+`o` had been removed (8c8649cfcd710859ce18eab557ed2af8cedb9a42) due to issues on some devices. Of course, it was still possible to turn it back on using the power button (twice), but it was not very convenient. Therefore, to turn the screen on, the shortcut `Ctrl`+`Shift`+`o` has been reactivated in this release. In practice, it works on many devices (in fact, I could not reproduce the issue anymore). ## Seamless copy-paste Clipboard synchronization between the Android device and the computer allowed to transfer UTF-8 text, but copy-pasting required an annoying two-steps copy. Now, you can copy a text on Android (long-press on a text field, then click COPY), and immediately press `Ctrl`+`v` on the computer to paste it. In the other direction, `Ctrl`+`Shift`+`v`, in addition to synchronizing the clipboards, now injects a PASTE command (if the device runs Android >= 7). This preserves UTF-8 text. ## Fix HiDPI issues on secondary screen A rework of the rendering code (#1408) fixes the long-standing issue #15, causing wrong click locations on secondary monitors (especially on macOS). ## Properly handle Ctrl+C on Windows On Windows, Ctrl+C in the terminal just killed the program, without any cleanup. This was particularly annoying while recording, because in that case the resulting file was corrupted (#818). Pressing Ctrl+C on Windows now quits the app properly (like on the other platforms). ## Advanced codec options A new advanced option has been added to pass any raw option to [`MediaFormat`]. This could be used for example to change the [profile]/[level] of the codec: ``` scrcpy --codec-options profile=1,level=4096 ``` See #1226 and #1325. [`MediaFormat`]: https://developer.android.com/reference/android/media/MediaFormat [profile]: https://en.wikipedia.org/wiki/Advanced_Video_Coding#Profiles [level]: https://en.wikipedia.org/wiki/Advanced_Video_Coding#Levels