Blog

5/5

04. 03. 2010

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

04. 03. 2010

A shortcut to put the buttons on the right in Ubuntu 10.04:

gconftool-2 -s /apps/metacity/general/button_layout \
    --type=string ":minimize,maximize,close"
5/5
1