Wednesday, December 31, 2008

Curing Ubuntu's Black Screen of Death on a Mac Pro

My wife recently gave me her very recent Mac Pro, and I wanted to set it up for triple-boot Leopard, Snow Leopard, and Ubuntu 8.10 (Intrepid Ibex). The Mac OS X installs were, of course, trivial - but much to my surprise, Ubuntu wasn't.

I'd recently used the general approach from the Ubuntu wiki to set up an old Intel iMac with dual-boot Leopard/Intrepid, and everything went like clockwork:
  1. Boot from the Leopard install DVD
  2. Early in the OS X install process, use Disk Utility to create a small HFS Plus partition and a big partition I would later snuff for use by Ubuntu, then install Leopard.
  3. Install rEFIt.
  4. Use a GParted LiveCD to turn the partition from step 2 into free space.
  5. Install Ubuntu Intrepid from a LiveCD.
Then I went to do the same thing for the Mac Pro, but when the LiveCD went into graphics mode, the screen went black.

That was odd, since lots of people have reported successfully installing various Ubuntu versions on Mac Pros.

Now, black screens for Ubuntu are not unusual; they generally indicate some kind of driver or X configuration mismatch. I routinely run into them when doing kernel updates on one of my boxen, and the usual search engines offer lots of hits for solutions. But none of the usual techniques worked on this particular Mac Pro.

To cut to the chase, here's the solution. Starting after Step 3 above...
  1. From the Mac System Profiler, determine the manufacturer and details of your video card. (Mine was an ATI Radeon HD 2600 with 256 MB RAM.)
  2. Start the installation from the Ubuntu Alternate CD, which uses an old DOS-style text mode for its user interface. (If you use the LiveCD or LiveDVD, it will try to go into graphics mode and you're toast.)
  3. Zap that big partition you made as part of the installation process. You may also have to manually specify the size of your swap space. You can look up details on how to do this using the usual search engines.
  4. When you reboot at the end of your Ubuntu install, you'll get the black screen. Press command-control-F1 to switch to a command prompt. (The meta-keys may be different if you picked a non-Macintosh keyboard during install.)
  5. Use sudo apt-get to update everything, and reboot.
  6. When the screen goes black, use the key combo again to get a command prompt. Use sudo apt-get to install envyng-gtk. Then do sudo envyng -t.
  7. Pick the manufacturer of your video card from the envyng list, then reboot.
At that point, I was successfully booting into the Ubuntu GUI.

1 comment:

Unknown said...

i have question.
i want to dual booiting ubuntu on mac.
but i saw black screen during installing.
so i pressed ctrl+command+f1(reference your site),,, but my screen still show black screen. how can i install dual booing?
please help me..