linux

Connecting to Projector using XRANDR

How to connect to an external monitor or projector on Linux using xrandr command line utility with auto-scaling resolution.

xrandr is a command-line utility for connecting to an external monitor or projector. I use it because I don’t have a GUI option for connecting to a projector on my machine.

terminal
xrandr
  • This command lists all connected displays. Once you know which display is connected, you can connect to it using xrandr.
terminal
xrandr --output DPI --auto
  • --auto scales the resolution automatically. You can also set your own resolution, as long as it’s supported by the monitor or projector.
terminal
xrandr --output DP1 --mode 1920x1080

For custom resolution.