Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade
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:
Using the Raspberry Pi Configuration Tool (Graphical Interface):
Using the Command Line:
config.txt
file located in the /boot
directory using a text editor like nano:
sudo nano /boot/config.txt
#
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.CTRL + X
, then Y
, and Enter
).sudo reboot
Using the xrandr
Command:
xrandr
if it is not already installed:
sudo apt-get install x11-xserver-utils
xrandr
xrandr --output HDMI-1 --mode 1920x1080
HDMI-1
with the correct display identifier from the xrandr
output.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.