I’ve blogged in the past about setting up extended display on the MacBook (second gen), but I thought I’d update the post for Ubuntu 8.04. I notice there are some small differences, which are likely caused by the updates to Xorg. I’ll post my steps and my xorg.conf file below.
Extended Display on the MacBook
First, I tried to use the new Screen Resolution tool but it did not detect either monitor properly. It does detect the MacBook display when it is the only display, but when my external monitor is plugged in everything gets screwed up.
I had to do things by hand using xrandr, and I had to add three lines to my xorg.conf file. There isn’t much to it, but not as straight-forward as it could be with the graphical tools.
- The first step is to figure out the sum of both resolutions. ie; 1280×800 + 1440×900 = 2720 x 1700. Take the resolutions from your MacBook (which should be 1280×800) and add it to the resolution of your external monitor. Make note of the result.
- Update your xorg.conf file to include the new, combined, resolution (example below)
- Restart X (logout & login or ctrl-alt-bkspace)
- xrandr –output VGA –auto
- xrandr –output VGA –above LVDS
Here is a copy of my xorg.conf file. It is default except for the three additional lines:
# xorg.conf (X.Org X Window System server configuration file)
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg
Identifier “Generic Keyboard”
Option “XkbRules” “xorg”
Option “XkbModel” “pc105″
Option “XkbLayout” “us”
Option “XkbOptions” “lv3:ralt_switch”
Identifier “Configured Mouse”
Identifier “Synaptics Touchpad”
Option “SendCoreEvents” “true”
Option “Device” “/dev/psaux”
Option “Protocol” “auto-dev”
Option “HorizEdgeScroll” “0″
Identifier “Configured Video Device”
Identifier “Configured Monitor”
Identifier “Default Screen”
Monitor “Configured Monitor”
Device “Configured Video Device”
# added SubSection “Display” until EndSubSection
Virtual 2720 1700
Identifier “Default Layout”
Screen “Default Screen”
InputDevice “Synaptics Touchpad”