IMac – Use iMac 27″ in Target Display Mode with Raspberry Pi

displaydisplayporthdmiimactarget-display

I have this little box called the Kanex XD HDMI to Mini-Displayport converter. It works perfectly with a lot of machines (tried it with a Macbook, PS4 and Xbox 360), but some devices don't seem to be supported and I'm wondering why.

enter image description here

One of the devices is the Playstation 3. I know the PS3 has trouble with its resolution, which means you have to reset holding some buttons etc. etc., but even that doesn't get it to work on my iMac in Target Display Mode.

The most recent problem I've run into is with the Raspberry Pi. Yesterday, I installed Raspbian on it while it was connected to my tv. This worked perfectly, if we ignore the weird resolution of 18##x9##.

Which made me wonder: Does the iMac only work as an external display in TDM if the device changes its own output video to 1280*720? Does anyone know a bit more about this function of the 27" iMacs 2010 (and any iMac after 2011 if I remember) who can explain how exactly TDM works or is supposed to work?

Best Answer

What I have found out is that TDM (Target Display Mode) on my mid 2010 27" iMac only works with the following resolutions:

  • 720p (1280*720) or lower
  • Native (2560*1440)

Any device that tries to output something in between, gets a signal it has to change it's resolution to 1280*720. Many devices can automatically do this (Xbox 360, PS4), but some can not (PS3, Raspberry Pi). This means that, if you want to use a device that can't automatically change resolution, you have to set the right resolution BEFORE you connect it to the iMac with TDM.

For the Raspberry pi, this means you have to use the following two lines in your config.txt:

hdmi_group=1 // VGA 60Hz
hdmi_mode=4 // 720p

Read more about the config-file here.

Since the Raspberry Pi doesn't support 2560*1440 (it does support 2560*1600 though), you won't be able to use the iMacs beautiful 1440p-screen to its full potential, but at least it works!

If I ever find a solution to add a custom resolution, I'll update my answer.

Related Question