LinuxAlternative

Linux · Ferramentas do Sistema

xrandr

xrandr is a command-line tool to manage display outputs, resolution, and screen layout on Linux systems using X11.

Código abertoGrátis
Seja o primeiro a avaliar
Licença
MIT
Versão mais recente
1.5.4

O que é o xrandr?

xrandr has been part of the X Window System since the early 2000s and is a standard utility on most Linux desktops. It allows users to configure screen resolution, rotation, and multi-monitor setups directly from the terminal. It's mature, stable, and widely supported across distributions.

It's best suited for users comfortable with the command line or those who need fine-grained control over display settings that GUI tools might not expose. System administrators, Linux power users, and people running minimal desktop environments often rely on xrandr for automation and troubleshooting.

Compared to Intel Graphics Command Center, xrandr feels less user-friendly but more direct and scriptable. There's no GUI, no animations, and no hand-holding—but it's fast, reliable, and works even when the desktop environment fails. You trade convenience for control.

Ideal para: Users who need precise, scriptable control over display settings on X11 systems.

Principais recursos do xrandr

  • Adjust screen resolution dynamically
  • Enable or disable display outputs
  • Rotate screens (normal, inverted, left, right)
  • Set custom screen positions (left-of, right-of, etc.)
  • Mirror or extend displays
  • Support for multiple monitors
  • Command-line scripting and automation
  • Query current display configuration

Prós

  • Lightweight and fast
  • Available on nearly all Linux systems with X11
  • Highly scriptable for automation
  • Works without a desktop environment
  • Fine control over display layout

Contras

  • No graphical interface
  • Steeper learning curve for beginners
  • Does not support Wayland natively (use wlr-randr instead)

Programas do Windows que o xrandr substitui

Como instalar o xrandr no Linux

Fedorasudo dnf install xrandr
Arch / Manjarosudo pacman -S xorg-xrandr
openSUSEsudo zypper install xrandr

Dicas para quem vem do Windows

If you're used to Intel Graphics Command Center, expect no drag-and-drop or visual previews. Instead, use commands like 'xrandr --output HDMI-1 --mode 1920x1080 --right-of eDP-1'. Save common setups in shell scripts. Use 'xrandr' with no arguments to list outputs and supported modes before making changes.

xrandr: perguntas frequentes

Does xrandr work on Wayland?

No, xrandr only works on X11. On Wayland, use wlr-randr or your desktop environment's display settings.

How do I list available displays and resolutions?

Run 'xrandr' without arguments to see all connected outputs and their supported modes.

Can I make xrandr settings persistent?

Yes, add your xrandr commands to a startup script like ~/.xprofile or a desktop autostart file.

Why doesn't my display appear in xrandr?

The output might be disconnected or disabled. Try 'xrandr --auto' or check cable connections and GPU detection.

Atualizado em