Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade

How to Change Screen Resolution in Linux: A Comprehensive Guide

Screen resolution is a critical aspect of your display settings, affecting how content is rendered on your screen. Whether you are using Linux for personal use, development, or server management, understanding how to adjust screen resolution can enhance your user experience and productivity. This article will guide you through the steps to change screen resolution in a Linux environment, using command-line tools and graphical interfaces.

Examples:

  1. Using xrandr Command:

    xrandr is a command-line tool that provides the ability to set the size, orientation, and/or reflection of the outputs for a screen.

    • List Available Resolutions:

      xrandr

      This command will display all connected displays and their supported resolutions.

    • Set a New Resolution:

      xrandr --output <display_name> --mode <resolution>

      Replace <display_name> with the name of your display (e.g., HDMI-1) and <resolution> with the desired resolution (e.g., 1920x1080).

      Example:

      xrandr --output HDMI-1 --mode 1920x1080
    • Add a New Resolution Mode: If the desired resolution is not listed, you can add it manually.

      cvt 1920 1080

      This generates a modeline for the desired resolution.

      Next, add the new mode:

      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
  2. Using GUI Tools:

    • GNOME Display Settings: If you are using a GNOME desktop environment, you can change the resolution through the graphical interface.

      1. Open the "Settings" application.
      2. Navigate to "Displays".
      3. Select the desired resolution from the drop-down menu and apply the changes.
    • KDE Display Settings: For KDE users, the process is similar.

      1. Open "System Settings".
      2. Go to "Display and Monitor".
      3. Choose the desired resolution and apply the changes.
  3. Persistent Configuration:

    To make the resolution change persistent across reboots, you can create a script and add it to your startup applications.

    • Create a Script:

      nano ~/.screenresolution.sh

      Add the following lines to the script:

      #!/bin/bash
      xrandr --output HDMI-1 --mode 1920x1080

      Save and close the file.

    • Make the Script Executable:

      chmod +x ~/.screenresolution.sh
    • Add to Startup Applications: Depending on your desktop environment, you can add this script to your startup applications via the settings or configuration files.

To share Download PDF

Gostou do artigo? Deixe sua avaliação!
Sua opinião é muito importante para nós. Clique em um dos botões abaixo para nos dizer o que achou deste conteúdo.