Connecting to a projector with XrandR
It’s pretty simple using xrandr
. To activate the VGA port just use (I use 1024x768 as an example resolution of the projector.):
xrandr --output VGA1 --mode 1024x768
To set the screen of the notebook to the same resolution use:
xrandr --output LVDS1 --mode 1024x768
For my netbook, which cannot run under more than 1024x600, it’s possible to scale the output to ensure a 1:1 mirroring:
xrandr --output LVDS1 --mode 1024x600 --scale 1x1.28
The posible resolutions and the names of the devices are shown by just:
xrandr