Set Display Screen Resolution in Ubuntu
In this article
To set the display screen resolution in Ubuntu, open Settings from the system menu, go to Displays, select your monitor, and choose a resolution from the drop-down list. You can also change the resolution using a terminal command or a GUI tool like arandr for more control. This guide covers the built-in method, command-line alternatives, and troubleshooting common issues.
Why Resolution Matters
The display resolution determines how many pixels are shown on your screen, affecting sharpness, text size, and the amount of visible desktop space. Using the native resolution of your monitor—usually the highest supported—gives the clearest image. Lower resolutions can make text and icons appear larger but less sharp, while higher resolutions offer more room but may require scaling to keep text readable. Ubuntu's default settings usually pick the recommended resolution automatically, but you may need to adjust it when connecting an external monitor, using a projector, or after a graphics driver update.
Using the GUI (Settings → Displays)
The simplest way to change resolution is through the graphical interface. Here are the steps for the default GNOME desktop (Ubuntu 22.04 and later):
- Click the system menu in the top-right corner (the power icon or the arrow) and select Settings.
- In the left sidebar, click Displays.
- You'll see a diagram of your monitor(s). Click on the monitor you want to adjust.
- Under Resolution, click the drop-down list and select a value (e.g., 1920×1080, 1366×768).
- Click Apply in the top-right corner. A confirmation dialog appears; click Keep Changes to confirm, or wait for the countdown to revert automatically if the screen becomes unreadable.
If you don't see the resolution you need, it may be because the monitor isn't detected properly or the graphics driver doesn't support it. In that case, try the command-line method below.
Using Terminal (xrandr)
For more control, you can use the xrandr command-line tool, which is preinstalled on most Ubuntu systems. It lets you list available resolutions and change them on the fly.
- List connected outputs and their resolutions:
xrandr
This shows outputs likeHDMI-1,DP-1, oreDP-1(laptop screen) and lists modes with a*next to the current one. - Set a resolution for a specific output:
xrandr --output HDMI-1 --mode 1920x1080
ReplaceHDMI-1with your output name and1920x1080with the desired mode. - Set the refresh rate:
xrandr --output HDMI-1 --mode 1920x1080 --rate 60
The rate must be supported by the monitor.
If the mode you want isn't listed, you can add it manually using cvt and xrandr --newmode. For example, to add 1920x1080 at 60Hz:
cvt 1920 1080 60
xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr --addmode HDMI-1 1920x1080_60.00
xrandr --output HDMI-1 --mode 1920x1080_60.00
This is useful when a monitor's EDID (Extended Display Identification Data) doesn't report a mode correctly, but the display physically supports it.
Making the Change Permanent
Changes made with xrandr are temporary and reset after logout or reboot. To make them permanent, you can add the commands to a startup script or use a tool like arandr (a graphical front-end for xrandr) that lets you save a configuration.
- Using arandr: Install it with
sudo apt install arandr, launch it, arrange your monitors and set resolutions, then click Save As to create a shell script. Add that script to Startup Applications (search for "Startup Applications" in the activities overview). - Using a .xprofile file: Create a file named
.xprofilein your home directory and add the xrandr commands. This runs when you log in. - Using /etc/X11/xorg.conf: For persistent driver-level settings, you can create an Xorg configuration file, but this is more advanced and rarely needed.
Common Problems and Fixes
If the resolution you want isn't available, the most common causes are:
- Outdated or missing graphics drivers: For NVIDIA, AMD, or Intel GPUs, install the proprietary drivers via Software & Updates → Additional Drivers. For NVIDIA, you can also run
sudo ubuntu-drivers autoinstall. - Wrong cable or port: HDMI, DisplayPort, and USB-C have different bandwidth limits. A 4K monitor may need a DisplayPort or HDMI 2.0+ cable to reach 60Hz. Try a different cable or port.
- Monitor not detected: Check the cable connection and try a different port. You can also press
Super+Pto cycle display modes (mirror, extend, etc.). - Scaling issues: If text is too small at high resolution, adjust the Scale option in the Displays settings (e.g., 200% for 4K).
If the screen goes black after applying a resolution, wait for the 20-second countdown to revert. If it doesn't revert, reboot and use the terminal to set a safe resolution.
Command-Line Alternatives
Besides xrandr, there are other tools:
- gnome-control-center displays: The GUI we already covered.
- wlr-randr: For users on Wayland (the default in Ubuntu 22.04+ if you use GNOME),
xrandrmay not work. Usewlr-randrinstead, though it's not preinstalled—install withsudo apt install wlr-randr. - Disper: A tool for multi-display setups, but it's not actively maintained.
For most users, the GUI is sufficient. The terminal is useful for scripting or when the GUI doesn't offer the desired mode.
Frequently Asked Questions
Why is my resolution stuck at 1024x768?
This usually means the graphics driver isn't installed or the monitor isn't sending the correct EDID. Install the recommended driver from Software & Updates → Additional Drivers and reboot. If that doesn't help, try a different cable or port.
Can I set a custom resolution not listed?
Yes, using xrandr with cvt as shown above. Be careful: setting a mode the monitor doesn't support can cause a blank screen. Use the timeout to revert if needed.
Why does my 4K monitor only show 30Hz?
This is usually a cable bandwidth issue. Use a high-speed HDMI cable (or DisplayPort) and make sure the port supports HDMI 2.0 or higher. You can also try lowering the resolution to get 60Hz.
How do I change the resolution for the login screen?
The login screen uses a separate session. To adjust it, you may need to edit the GRUB boot parameters or create an Xorg configuration file. A simpler workaround is to change the resolution after login; the login screen will adjust automatically on the next boot if the monitor is detected.
Does changing resolution affect performance?
Yes, lower resolutions can improve frame rates in games and reduce GPU load, but make text less sharp. For everyday use, stick to the native resolution and use scaling if needed.