Fix Display Appearing Zoomed With Multi-Monitor Setup Using xrandr

Abstract: Resolve zoomed display issues on Linux multi-monitor setups by using xrandr to manually set correct resolution and position.

Created: 2026-09-14 by

Use the xrandr command to manually set the correct resolution and position for your monitors, overriding any incorrect auto-detection that causes a zoomed-in appearance. By specifying the output name and desired geometry in the terminal, you can restore normal scaling and ensure each display renders at its native pixel density without distortion.

Understanding the Zoom Issue

When you connect multiple displays to a Linux system, the X server or Wayland compositor often attempts to automatically configure the layout. This process relies on Extended Display Identification Data (EDID) sent by the monitor. Sometimes, this data is incomplete, corrupted, or misinterpreted by the graphics driver. The result is a display that appears "zoomed in," meaning only a portion of the screen is visible, or the content is scaled incorrectly because the system believes the monitor has a different resolution than it actually does. This issue is particularly common when using older monitors, HDMI splitters, or docking stations that may not pass EDID information correctly. It can also happen if the primary monitor’s settings conflict with the secondary display’s capabilities. Instead of relying on graphical interface tools which might cache bad settings, using the command line provides direct control over how the X server interprets your hardware. For users who need to enable a monitor that the system completely ignores, checking out How to Use xrandr Command to Turn On Your Monitor in Linux can provide additional context on basic output detection.

Identifying Your Monitor Outputs

Before applying any fixes, you must identify the exact names assigned to your physical ports by the operating system. Linux assigns logical names like HDMI-1, DP-2, or VGA-0 rather than generic terms like "Monitor 1." These names vary depending on your graphics card manufacturer and the specific port you used to plug in the cable. Open your terminal and run the following command:
xrandr --query
Look for the section labeled connected. Each connected output will be listed with its current resolution and refresh rate. If a monitor is physically connected but shows as disconnected, the system cannot see it, and you may need to troubleshoot cables or drivers first. Note down the name of the monitor that appears zoomed. You will need this identifier for the next steps.

Setting the Correct Resolution Manually

Once you have identified the output name, you can force the system to use the correct resolution. Most modern monitors have a native resolution, such as 1920x1080 or 2560x1440. If the system is displaying a lower resolution or an unsupported aspect ratio, the image will stretch or zoom. To fix this, use the --output flag followed by the monitor name and the --mode flag with the desired resolution. Replace OUTPUT_NAME with the identifier you found earlier and adjust the resolution values to match your monitor's specifications.
xrandr --output OUTPUT_NAME --mode 1920x1080
If the desired resolution is not listed in the query output, you may need to add it manually using the --addmode command. This requires generating a modeline, which can be complex. However, in many cases, simply selecting a standard resolution from the existing list resolves the zooming issue by forcing the scaler to align with the panel's grid.

Adjusting Position and Scaling

Sometimes the resolution is correct, but the positioning is wrong, causing parts of the desktop to be cut off or shifted unexpectedly. You can explicitly define where the monitor sits relative to others using the --pos parameter. This takes coordinates in pixels, where 0x0 represents the top-left corner of the primary screen. For example, if you have two monitors side-by-side and want the second one to the right of the first, you might use:
xrandr --output HDMI-1 --primary --mode 1920x1080 \
       --output DP-1 --mode 1920x1080 --pos 1920x0
This command sets HDMI-1 as the primary display and places DP-1 immediately to its right. If your display still looks zoomed, check if your desktop environment has a global scaling setting enabled. Some compositors apply a scale factor (e.g., 1.25x or 2x) for HiDPI screens, which can interfere with manual xrandr settings. Disabling fractional scaling in your system settings often helps xrandr take full control. For more advanced visual adjustments, including color calibration that might complement your layout changes, refer to Adjusting Monitor Colors with 3D Aglyph, Xrandr, and Gamma.

Making Changes Persistent

The xrandr commands applied in the terminal are temporary. They will revert to default settings after a reboot or logout. To make your configuration permanent, you need to save the command sequence. One reliable method is to add the command to your startup applications. In most desktop environments, you can find a "Startup Applications" tool in the settings menu. Add a new entry with the full xrandr command you tested. Alternatively, you can create a script in your home directory and call it from your window manager’s configuration file, such as .xprofile or .bashrc, depending on your setup. If you encounter issues where the second monitor remains black despite correct settings, review troubleshooting guides for specific hardware conflicts, such as those discussed in Ubuntu 22.04: Second Monitor Stays Black after NVIDIA Graphics Card Plug-in.

Frequently Asked Questions

Why does my monitor show a lower resolution than its native spec?

This usually happens because the graphics driver fails to read the monitor's EDID data correctly, defaulting to a safe, low-resolution mode. Using xrandr to manually set the mode bypasses this automatic detection error. Ensure your cable supports the bandwidth required for higher resolutions.

Can I use xrandr to rotate a monitor?

Yes, you can use the --rotate flag with values like normal, left, right, or inverted. This is useful for vertical displays or tablets. Combine this with position flags to ensure the rotated screen aligns correctly with your other monitors.

What if xrandr says the mode is not found?

If the desired resolution is not listed, the driver may not support it or the connection is unstable. Try using a different cable type, such as switching from VGA to HDMI or DisplayPort, as analog connections often struggle with high resolutions. You can also try lowering the refresh rate to see if the connection stabilizes.

Does this work on Wayland compositors?

Support varies significantly between Wayland implementations. While GNOME and KDE Plasma have their own scaling mechanisms, they may ignore xrandr commands unless running in XWayland compatibility mode. Check your session type; if you are on Wayland, consider adjusting scaling in the system settings instead.

How do I reset all display settings to default?

You can restart the display manager service, which reloads the default configuration files. On Ubuntu-based systems, you can often do this by pressing Ctrl+Alt+Backspace or restarting the gdm or sddm service. This clears any temporary xrandr overrides applied during the session.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More