Velus It is a tool similar to the macOS & iPad Sidecar function, which can turn your tablet or mobile phone into a graphic tablet/touch screen, and allows the desktop screen to be mirrored or extended to the mobile phone or tablet. It is suitable for Linux, Microsoft Windows and macOS.
To use your phone or tablet as a graphic tablet/touch screen, you only need to install Weylus on your desktop, run a modern web browser (such as Firefox 80+) on your phone or tablet, and have both a desktop and a tablet/ The phone is on the same network.
Weylus allows you to use a tablet or mobile phone to control the mouse, mirror the desktop screen to the tablet, and send keyboard input, all with optional hardware accelerated video encoding (on Linux, VAAPI and NVENC are available; for macOS, only Videotoolbox, On Windows, it can use NVENC or Microsoft’s MediaFoundation).
For Linux, Weylus has more features.It allows the use of a stylus/pen (support pressure and tilt), multi-touch, capture a specific window and draw only on it, and you can use your tablet or phone as Second screen (Extend your current desktop screen). If you use Linux, screen mirroring will also be faster.
It is also worth noting that Weylus is best suited for X11, but it does have experimental Wayland support. Things that don’t work on Wayland include window input mapping, displaying the correct window name, and capturing the cursor.
To use Weylus on Wayland, you need to install PipeWire and xdg-desktop-portal (GStreamer is also required, but it should already be installed; FFmpeg is also used, but you don’t need to install it because it comes with Velus). You also need xdg-desktop-portal-gtk for GNOME, xdg-desktop-portal-kde for KDE Plasma, and xdg-desktop-portal-wlr for wlroots-based compositors such as Sway.
Related: Deskreen makes any device with a web browser the second screen of your computer
The Weylus desktop user interface (above) is basic, with only a few options for setting the binding address, port, and websocket port, as well as the access code for connecting to Weylus. You can also choose to automatically start Weylus, enable Wayland support, and the NVENC and VAAPI hardware acceleration options on Linux (disabled by default).
To connect to Weylus using a smartphone or tablet, the app will display the URL you need to enter in the web browser on your phone/tablet, and a QR code that you can scan to easily connect to it.
When you visit this URL on your phone or tablet, you will get more options (pictured above).On Linux, you will be able to choose whether you want to capture the entire desktop, a specific monitor or window, enable/disable video, capture cursor, mouse, stylus, touch and uinput, set minimum pressure, and set maximum video resolution and minimum frame rate interval
In my test, Weylus was used on Ubuntu 21.04 and iPad 10 Pro Xournal++ In most cases, X11 works well-although sometimes the stylus will miss some strokes. However, it does not work properly under Wayland. The stylus and multi-touch use Wayland to work, but the desktop is not mirrored correctly, all I get is a black screen.
You might also like: Use scrcpy to control Android devices from the desktop
Weylus is available for Linux, macOS and Windows, and you can find all 3 versions of binary files on its release page. On Linux, you will find DEB packages (for Debian/Ubuntu and Linux distributions based on these), and a general archive that should work for any Linux distribution.
If you use a firewall, make sure Port 1701 and 9001 Is open. It’s also important to note that to enable stylus and multi-touch support,
/dev/uinput Need to be written by Weylus- See this page How do i do this.
You might like: Use Touchegg to assign actions to touchpad gestures on Linux-it also supports swipe and pinch multi-touch gestures.