Skip to content
TheChatArchiveThe Chat Archive
Claudeclaude-opus-4-20250514· AnthropicHugging Face LMArena Human Preference 140K

How do I use an older laptop as a second monitor on arch linux, wayland?

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with chatgpt-4o-latest-20250326’s answer.
  1. User

    How do I use an older laptop as a second monitor on arch linux, wayland?

  2. Claude Assistant

    To use an older laptop as a second monitor on Arch Linux with Wayland, you have a few options. Here's how to set it up:

    Using Barrier (formerly Synergy)

    Barrier allows you to share your mouse and keyboard between computers, though it doesn't extend your display - it just lets you control both machines seamlessly:

    1. Install barrier on both machines:

      sudo pacman -S barrier
      
    2. Configure one laptop as the server (main machine) and the other as client

    3. The mouse will move seamlessly between screens when you reach the edge

    Using VNC for Display Extension

    For actual display extension, you'll need to create a virtual display and stream it:

    1. Install a VNC server that supports virtual displays:

      sudo pacman -S x11vnc tigervnc
      
    2. Create a virtual display using wlr-randr (for wlroots-based compositors) or similar tools

    3. Stream the virtual display to the second laptop via VNC

    Using Deskreen (Web-based Solution)

    Deskreen is a more modern solution that works well with Wayland:

    1. Install deskreen from the AUR:

      yay -S deskreen
      
    2. Run deskreen on your main machine

    3. Open a web browser on the second laptop and connect to the provided URL

    4. Select whether to share entire screen or create a virtual display

    Using Miracast/WiFi Display

    If your laptops support Miracast:

    1. Install gnome-network-displays or miraclecast:

      sudo pacman -S gnome-network-displays
      
    2. Enable WiFi Direct on both devices

    3. Connect through the network displays interface

    The exact setup will depend on your Wayland compositor (Sway, GNOME, KDE Plasma, etc.). Deskreen tends to be the most reliable cross-platform solution for this use case, especially with Wayland's security model making traditional X11 solutions more difficult.

  3. 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

  4. Claude Assistant

    For a pure Wayland solution that extends your display to a second laptop with touch support, you'll need to use wayvnc with a virtual display setup. Here's how:

    Setting up the Main Laptop (Server)

    1. Install wayvnc and create a virtual output:

      sudo pacman -S wayvnc
      
    2. Create a virtual display using headless backend. First, you'll need to determine which Wayland compositor you're using. Run:

      echo $XDG_SESSION_TYPE
      echo $XDG_CURRENT_DESKTOP
      
    3. For creating a virtual display, you'll need to use your compositor's specific method:

      • For wlroots-based compositors: Use WLR_BACKENDS=headless
      • For GNOME: Use gnome-remote-desktop
      • For KDE Plasma: Use krfb-virtualmonitor
    4. Start wayvnc on the virtual display:

      wayvnc --output=HEADLESS-1 0.0.0.0
      

    Setting up the Second Laptop (Client)

    1. Install a Wayland-native VNC viewer:

      sudo pacman -S wlvncc
      
    2. Connect to the first laptop:

      wlvncc <first-laptop-ip>:5900
      

    Enabling Touch Support

    For touch functionality to work properly:

    1. Ensure the VNC connection supports input events (wayvnc does by default)
    2. The touch events from the second laptop will be translated to pointer events on the virtual display

    The main challenge is that without knowing your specific Wayland compositor, I can't give you the exact commands for creating the virtual display. Could you check which compositor you're running? This will help me provide the specific commands for your setup.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.