jtxBoard on a desktop (over adb and scrcpy) #1554
mcastillof
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, I just wanted you to know that jtxBoard may be used on a desktop (GNU/Linux, MACOS and Windows) by using ADB and a program called scrcpy.
Scrcpy is a tool that "mirrors Android devices (video and audio) connected via USB or over TCP/IP, and allows to control the device with the keyboard and the mouse of the computer. It does not require any root access."
When using scrcpy, you probably will want to use a script to optimize the experience, like change the DPI, change and lock rotation to landscape. This is the script that I use, you should change rotation, density and resolution settings, before and after the scrcpy command, also when finishing your session with scrcpy always close its window to allow the execution of the last commands to go roll back the temporal configs:
Clipboard is shared between your desktop and your phone, so ctrl+c and ctrl+v works fine. I still need to investigate which are the best arguments for scrcpy for mouse clicks
You may need to setup the physical keyboard to your layout in your phone by going to Settings/System/Language & input/Physical keyboard. The physical keyboard option is only available when scrcpy is running.
For unlocking (pattern) automatically the phone I used "adb shell getevent" to record the pattern as I swiped it on the phone screen and "adb shell sendevent /dev/input/event4" to simulate it later.
Have fun!
Beta Was this translation helpful? Give feedback.
All reactions