Connecting a projector/beamer without restarting X

In: Blog|English|Linux

28 Sep 2007

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

Avatar

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.

Avatar

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

Comment Form

Photostream

    IMG_0544IMG_0543IMG_0538IMG_0537IMG_0536IMG_0535
  • Buzogány László: Engem sem hagyott nyugodni a dolog, le kellett írnom :)) http://www.weblap.ro/millio-dollaros-ot [...]
  • basti: worked flawlessly on my Leopard 10.5.7 system with: qt-mac-opensource-src-4.5.2 PyQt-ma-gpl-4.5.2 [...]
  • UDS: Mi várható a 9.10-ben? « klog gyártósor: [...] Tovább »   [...] [...]
  • hunsly: Rendesen támogatni fogja az Asus F5GL notim! :) Nem szeretem a gányolást, de most sajna Karmic ke [...]
  • phanatic: Nem titkos az anyag, úgyhogy amint lesz egy kis idÅ‘m, írok a Bazaarral kapcsolatos fejleményekrÅ [...]