If you are doing a presentation with your laptop you want to use multiple displays. One display will be your LCD laptop screen and the second display will be a clone screen to connected projector or TV by use of VGA input port. This task is very simple with xrandr Linux command. First determine if your VGA output port is available. To do this run xrandr with no arguments:

$ xrandr
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 1024 x 1024
VGA disconnected (normal left inverted right x axis y axis)
LVDS connected 1024x768+0+0 (normal left inverted right x axis y axis) 246mm x 185mm
1024x768 50.0*+ 60.0 40.0
800x600 60.3
640x480 60.0 59.9

You can see that VGA port is available but disconnected. Now plugin TV or projector to your VGA port on your laptop or computer and run xrandr again and you should get an output similar to the one below:

$ xrandr
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 1024 x 1024
VGA connected (normal left inverted right x axis y axis)
1024x768 75.1 75.0 70.1 60.0
832x624 74.6
800x600 72.2 75.0 60.3 56.2
640x480 75.0 72.8 75.0 60.0 59.9
720x400 70.1
LVDS connected 1024x768+0+0 (normal left inverted right x axis y axis) 246mm x 185mm
1024x768 50.0*+ 60.0 40.0
800x600 60.3
640x480 60.0 59.9

xrandr now returns that the projector is connected and available with listed resolutions. All what needs to be done at this stage is to tell xorg manager to clone display to VGA port. This will produce two exact clone copies. To do that run command:

xrandr --output VGA --auto

Now you should have exact clone of yur LCD screen projected to your projector.

Free Linux eBooks

Do you have the right skills?

Our IT Skills Watch page reflects an up to date IT skills demand leaning towards the Linux and Unix environment. We have considered a number of skills and operating systems.

See the result...

Linux Online Training

Learn to run Linux servers and prepare for LPI certification with Linux Academy. 104 available video lessons with PDF course notes with your own server!

Go to top