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 Adjust Screen Resolution on Raspberry Pi

The Raspberry Pi is a versatile and compact computer that can be used for a variety of projects, from home automation to media centers. One common task when setting up a Raspberry Pi is adjusting the screen resolution to ensure that the display output is optimal for your monitor or TV. This article will guide you through the process of adjusting the screen resolution on a Raspberry Pi using both the graphical user interface and the command line.

Examples:

  1. Using the Raspberry Pi Configuration Tool (Graphical Interface):

    • Boot up your Raspberry Pi and log in to the desktop environment.
    • Click on the Raspberry Pi icon in the top-left corner to open the main menu.
    • Navigate to "Preferences" and select "Raspberry Pi Configuration."
    • In the "Raspberry Pi Configuration" window, go to the "Display" tab.
    • Here, you can select the desired resolution from the dropdown menu.
    • Click "OK" to apply the changes and reboot your Raspberry Pi if prompted.
  2. Using the Command Line:

    • Open a terminal window on your Raspberry Pi.
    • Edit the config.txt file located in the /boot directory using a text editor like nano:
      sudo nano /boot/config.txt
    • Look for the following lines and uncomment them (remove the # at the beginning) or add them if they are not present:
      hdmi_group=2
      hdmi_mode=82
      • hdmi_group=2 sets the display to DMT (Display Monitor Timings), which is typically used for computer monitors.
      • hdmi_mode=82 sets the resolution to 1920x1080 at 60Hz. You can change this value to match your desired resolution. Refer to the Raspberry Pi documentation for a complete list of supported modes.
    • Save the changes and exit the text editor (in nano, press CTRL + X, then Y, and Enter).
    • Reboot your Raspberry Pi to apply the changes:
      sudo reboot
  3. Using the xrandr Command:

    • First, install xrandr if it is not already installed:
      sudo apt-get install x11-xserver-utils
    • List available resolutions and connected displays:
      xrandr
    • Set the desired resolution using the following command:
      xrandr --output HDMI-1 --mode 1920x1080
      • Replace HDMI-1 with the correct display identifier from the xrandr output.
      • Replace 1920x1080 with your desired resolution.

By following these steps, you can successfully adjust the screen resolution on your Raspberry Pi to suit your display needs.

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.