weblog of szilveszter farkas
The following commands allow me to connect a projector/beamer to my laptop without requiring to restart X or the computer:
xrandr --output VGA --auto
xrandr --output LVDS --auto
xrandr --output LVDS --mode 0x50
xrandr --output VGA --mode 0x50
Note: I’m using the new “intel” driver with xrandr support on gutsy. These commands will set both the built-in display and the projector to 1024×768@60Hz.
(This entry was written because I’ve failed to run the correct commands at SFD 2007, so I had to reboot my laptop to get its screen to the projector.)
2 Responses to Connecting a projector/beamer without restarting X
Christopher Barrington-Leigh
January 9th, 2009 at 17:06
But that is surely only because the default display size for your LVDS is the same ratio as projectors’.
I’ve a slightly wider laptop screen, and using your commands gives me a bad outcome, in which the desktop is not all visible on the external.
Misi
January 19th, 2009 at 14:45
Thanks, it works!
Just a few additions. If you want to turn off the VGA (projector) output type:
xrandr –output VGA –off
If you want projector output only, turn off your computers own screen typing:
xrandr –output LVDS –off
you can resume both options typing –auto instead of –off