Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade
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:
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
Using GUI Tools:
GNOME Display Settings: If you are using a GNOME desktop environment, you can change the resolution through the graphical interface.
KDE Display Settings: For KDE users, the process is similar.
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.