How to Configure Dual Monitors and Multi-Display Layouts in Ubuntu

Connecting an external monitor to an Ubuntu laptop or expanding an Ubuntu desktop workstation with dual screens dramatically expands screen workspace, making side-by-side multitasking effortless. However, when first connecting a second display via HDMI, DisplayPort, or USB-C, Ubuntu may place displays in reverse order, mirror screens unexpectedly, or set mismatched refresh rates. Fortunately, modern Ubuntu releases (including Ubuntu 22.04 LTS and 24.04 LTS) include an intuitive multi-monitor configuration dashboard to arrange displays perfectly.

Connecting and Detecting Displays in Ubuntu

Ubuntu features plug-and-play monitor detection powered by Wayland and X11:

  1. Connect your second monitor to your computer using HDMI, DisplayPort, or USB-C Thunderbolt.
  2. Power on the monitor and select the correct input source on the screen’s hardware menu.
  3. Open the Ubuntu Settings app from the dock or application launcher.
  4. In the left sidebar, click on Displays.
  5. At the top of the window, Ubuntu will show numbered visual blocks representing your detected monitors.

Arranging Display Positions to Match Physical Desk Setup

To ensure your mouse pointer moves smoothly between screens without hitting invisible walls:

  1. In the Displays settings window, click and drag the monitor rectangles to mirror your real-world desk arrangement (e.g., drag Display 2 to the right, left, or above Display 1).
  2. Align the top or bottom edges of the rectangles to match where your mouse naturally crosses the boundary.
  3. Click the green Apply button in the top-right corner.
  4. Test moving your mouse cursor across the screen divide. If satisfied, click Keep Changes.

Choosing Display Modes (Join Displays vs. Mirror)

Ubuntu supports multiple presentation profiles:

  • Join Displays (Extended Desktop): Treats both monitors as one giant unified workspace, allowing you to drag windows freely between screens. This is the recommended setting for daily productivity.
  • Mirror: Replicates identical screen content on both displays. Essential when presenting slides to clients via an external conference projector.
  • Single Display: Turns off your laptop panel completely while docked, running exclusively on your larger external monitor.

Setting the Primary Display and Independent Refresh Rates

Configure which screen holds the primary system panel:

  1. Click on the monitor rectangle you wish to designate as your primary workstation.
  2. Check the box or toggle labeled Primary Display.
  3. Below the layout diagram, customize individual hardware settings for that monitor:
    • Resolution: Choose native resolution (e.g., 2560×1440 or 3840×2160).
    • Refresh Rate: Set independent frequencies (e.g., run a 144Hz gaming panel at 144Hz while an auxiliary 60Hz document monitor runs at 60Hz).
    • Orientation: Select Portrait Right or Portrait Left if you use a vertically rotated document monitor.
  4. Click Apply to commit changes.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.