Using an older laptop as a second monitor on Arch Linux with Wayland can be done, but it requires some workarounds, as Wayland does not support traditional X-based remote desktop protocols like x11vnc. Instead, you'll likely need to use network-based remote display solutions. Here are a few well-supported ways to approach this:
🔧 Method 1: Using WayVNC + VNC Client (Recommended for Sway/Wayland setup)
✅ Best for: Sway (Wayland compositor), and other wlroots-based compositors
On main laptop (host / to be mirrored/displayed):
Install WayVNC:
bash
sudo pacman -S wayvnc
Install a VNC authentication tool (optional but recommended):
bash
sudo pacman -S xorg-xauth
Start WayVNC:
Example:
bash
wayvnc 0.0.0.0
You can also specify resolution and encoding if needed.
Open a port in your firewall, if using one (e.g., port 5900 for VNC):
bash
sudo ufw allow 5900
On older laptop (client / second monitor):
Install a VNC viewer:
bash
sudo pacman -S tigervnc
Or use any other client like Remmina, KRDC, etc.
Connect to your main laptop:
bash
vncviewer 192.168.x.x:5900
Replace 192.168.x.x with the IP address of your main laptop.
🛠️ Method 2: Using Deskreen (Cross-platform, works with Wayland)
You can use a browser-based method using Deskreen, which turns any browser into a secondary display.
✅ Pros:
Works over Wi-Fi
OS-agnostic (can use Windows/macOS/Linux as second monitor)
Weylus – turns tablet/PC into drawing device/monitor
(yay -S weylus)
These often work on Wayland too and allow interactive use or pen input.
🧩 Bonus: Combine with bspwm, sway, or wayfire tiling WM features
If both machines are running Linux + Wayland, you might even run:
Independent WMs that sync over something like Barrier (mouse/keyboard sharing)
bash
sudo pacman -S barrier
So the cursor flows between screens (like Synergy).
🚫 Why not use X11 tools like x11vnc?
Wayland doesn't allow screen capture the same way X11 does
Tools like x11vnc and xrandr won't work
You need Wayland-compatible remote/mirror software
Summary Table
Method
Works on Wayland?
Input
Lag
Ease of Setup
Dual Monitor-like?
WayVNC
Yes
View/keyboard
Low
Medium
Yes (mirror/extend)
Deskreen
Yes
Optional
Medium
Easy
Partial
Weylus
Yes
Touch, Pen
Medium
Medium
Partial
Barrier
Yes
Mouse/KB only
Very Low
Easy
No (but useful)
VDO.Ninja
Yes
Optional
High
Easy
Not really
🧭 Tips
Use wired Ethernet for lowest latency.
Set VNC resolution to match client.
Disable display manager splash screens to speed loading.
For stretching across monitors, consider using sway or wayfire which allows hotplugging remote screens.
If you let me know which Wayland compositor you're running (e.g., Sway, KDE/Plasma with Wayland, GNOME), I can give more exact commands and compatibility suggestions.
Let me know! 👨💻
User
I don't really use sway or anything else so I'm not sure how to proceed, also remove any solutions that have to do with X11 or using a browser based app
I'd like to see the screen from the first laptop to the second one, also I'd like to use the touch functionally from the second one
Assistant
Thanks for the clarification. Based on your updated requirements: