Archive for the “iMac” Category

I decided to do a complete reinstall with Intrepid on my iMac. Everything went quite well, so I decided to share the steps that I took to do the install. Note that in the end, I want to dual-boot OS X and Ubuntu on my iMac with no other partitions. You will need to adjust your install for any custom setup you might want to have.

  1. Download the Ubuntu 8.10 x64 Desktop iso and burn to a CD with Toast at the slowest possible speed.
  2. Use DiskUtility to resize the OSX partition and make space on the hard drive for Ubuntu. Select your hard drive on the left side, and on the partition tab, click the “+” to add a partition to the disc. You can make this partition any format as it will just be removed later. Right now, we are just allocating space for the install.
  3. I already had rEFIt installed, but if you do not have it yet, now is a good time to do it.
  4. Make sure that the Ubuntu CD is in the drive and shutdown the iMac. Start it up again, and this time you should see the rEFIt menu on startup instead of the grey and white Apple logo screen. If you still boot directly into OS X, then you might need to perform the manual installation of rEFIt.
  5. Once you have rEFIt working, you will be able to select the Ubuntu CD to boot. Eventually, you will get to the Ubuntu desktop.
  6. Once there, go to System > Adminstration > Partition Editor. This will start gParted. In this application, you will see a graphical representation of the partitions on your hard drive similar to how DiskUtility does in OSX, except this will show ALL the partitions (even ones that Apple tries to hide) and free space on the disc too.
  7. Near the Right end of the bar at the top, the partition that was created with DiskUtility will show. There will likely be a tiny bit of free space before and after this partition as well. At the beginning of the disk, there will be a EFI partition (don’t touch!) and the OS X partition (shows as an HFS+ filesystem). Select the FAT32 partition created in DiskUtility and delete. This will leave a bunch of free space on your hard drive for Ubuntu. When you are ready, click “Apply” and the partition will be deleted.You can now quit gparted.
  8. Now,  start the installer with the icon on the desktop. Choose your language and then Timezone. (I chose English and the Central Time Zone [Chicago]). Why in Linux do we always have to choose a city for the time zone? I just want to specify the name of the time zone I am in!!
  9. On the next screen select the Macintosh variant of your language’s keyboard. (I chose USA-Macintosh. This variant has always worked for me on my older White Apple Keyboard as well as my newer Aluminum Keyboard).
  10. On the next screen, choose to install to the largest continuous free space on the hard drive. This will allow the installer to create a root and swap partition in the free space you left on the drive.
  11. Next you will setup your user account and password. (I also chose to enable auto-login as I am the only person that uses this machine.)
  12. On the final screen, click the Advanced button and choose to install GRUB to /dev/sda3. This is the Ubuntu root partition. Click OK for that and back at the summary screen, click Install to start the installation.
  13. During the install play a little Tali or Tetravex :) . After the install is complete reboot the machine.

That is it for the basic installation. After the reboot I went to System > Admin > Hardware Drivers and enabled the “Broadcom STA driver” (not the B43 driver) to get the WiFi working. 3D Acceleration and “Extra” desktop effects worked with the default open source driver, but there seems to be an issue when using 3D graphics while desktop effects are enabled (to test this, you can enable the “Extra” desktop effects and then run ‘glxgears’ from the commandline). Turning off the desktop effects will fix the issue. Enabling the Proprietary ATI driver in the same place where you enabled the Broadcom driver will probably help that situation.

After all that, you can install any updated packages with the update manager and reboot. WiFi should now work. Stay tuned for other tweaks that I make to my machine to get things working the way I want.

Tags: , , , , , , ,

Comments No Comments »

There has been a bit of confusion on how to get the iSight working on many of the Intel Macs recently. Fortunately, the newer MacBooks coming out have a working iSight out-of-the-box without needing to do anything, but for older iSights, firmware loading is still required. They changed the firmware loading back to the kernel out of userspace, so all you have to do is get the firmware and place it in the correct location in the filesystem. Let’s do it step by step.

  1. First you need to get the firmware out of a particular file located on your OSX install. You can copy it to a USB drive or other location so that you can acess it from Ubuntu. It is located in /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/
    AppleUSBVideoSupport.kext/Contents/MacOS/AppleUSBVideoSupport
  2. Boot into Ubuntu and install isight-firmware-tools
    sudo apt-get install isight-firmware-tools
  3. Go ahead and place the AppleUSBSupportVideo file in /lib/firmware
    sudo cp AppleUSBSupportVideo /lib/firmware/
  4. Now, extract the iSight firmware from the file
    sudo ift-extract -a /lib/firmware/AppleUSBVideoSupport

This should place a file called isight.fw in the /lib/firmware directory. It would be a good idea to save a copy of this file somewhere so that you can find it again later and not need to extract it from the AppleUSBVideoSupport file. In the future, you just need to place the isight.fw file in /lib/firmware/.

When all this is done, you need to shutdown your Mac and Start it up again (not reboot!!). Completely shutting down will reinitilize the hardware and allow the firmware to load while starting Ubuntu.

Tags: , , , , , , , ,

Comments 15 Comments »

Update: A new kernel driver has been created that adds the multi-touch functionality to the Linux kernel rather than through a daemon. A version has already made its way into the vanilla kernel source.

New kernel driver for the BCM5974 touchpad (Macbook Air, Penryn)

I regular the Ubuntu Apple Intel forum and had the pleasure meeting a user, tannewt. He had just obtained a new Macbook Pro (with the multi-touch trackpad) and was very helpful in getting some of the first information about the new hardware into the forums. He also started hacking on the touchpad to make it a bit more useful since the new hardware was quite limited with the current available software

Read the rest of this entry »

Tags: , , , , , , , ,

Comments No Comments »

AvatarAn Ubuntuforums user (volanin) posted some good info about power saving in Ubuntu Gutsy and also pointed out in another thread that Fedora backported the tickless kernel code from 2.6.24-rc into the 2.6.23 kernel. Since I went through the trouble of getting it, configuring and compiling, I thought I would post the source and my config file for the working kernel.

Patched Kernel Source Archive

config-linux-2.6.23.1-42.f8-cd33_20071201.tar.gz

It works superbly for me even with the latest ATI proprietary drivers.

Tags: , , , , , , , , , , ,

Comments No Comments »

Here I am posting a lot of information about my iMac for configuration in linux. Hopefully this will help a few people out that are wanting to try out linux on their Macs. I use Ubuntu linux, so all of this information has been tested only under that system. I am currently using 7.04 Feisty Fawn, although 7.10 Gutsy Gibbon will be released soon and seems to be running OK on my model Mac at the moment.

First, you can download my fully verbose lspci here.

The display built into the iMac is essentially a 20″ Apple Cinema Display. The following are the correct entries for the xorg configuration file including specific modelines as found on the Gentoo hardware wiki:

Section "Monitor"
    Identifier      "Apple Cinema Display"
    VendorName      "Apple Inc."
    ModelName       "Apple Cinema Display 20"
    HorizSync       28-90
    VertRefresh     43-72
    DisplaySize     434 270
    Option "DPMS"
    UseModes "Modes0"
EndSection

Section "Modes"
    Identifier "Modes0"
    ModeLine "1680x1050" 119.00 1680 1728 1760 1840 1050 1053 1059 1080
    Modeline "1280x800" 67.26 1280 1312 1560 1592 800 817 824 841
    Modeline "1024x640" 51.90 1024 1056 1248 1280 640 653 660 673
    Modeline "800x500" 30.98 800 832 944 976 500 510 515 526
EndSection

I recently compiled a kernel for linux 2.6.22.6 with the latest mactel and ck patches. My config can be downloaded here: config-linux-2.6.22.6-mactel-ck1

Tags: , , , , ,

Comments No Comments »