Skip to content
Go to file
This branch is 30 commits ahead of alexleigh:master.

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time


Apple System Management Control (SMC) utility

Forked from original smc_util repository, with a couple of other, slightly modified, SMC-related tools:

How to use

Chances are you're here because of my blog post or SO question, and want to use this to turn an old iMac running Linux into a display.

Note: This was tested on a mid-2010 27" iMac running Yosemite and Ubuntu 16.04. Any other model/OS combo might behave differently.

Note: I don't have the iMac I used for this anymore, so I can't test anything, sorry. That being said, the steps to use this are (on Ubuntu and derivatives):

sudo apt-get install build-essential

git clone
cd smc_util

gcc -O2 -o SmcDumpKey SmcDumpKey.c -Wall
sudo rmmod applesmc # remove the SMC kernel driver to avoid conflicts

sudo ./ # enable target display mode
sudo ./ # disable target display mode

IMPORTANT: when you run and it works on your iMac, then the display will switch over to the DP input and you won't have the console anymore. Make sure you have a remote shell open first, or maybe a keyboard hotkey set up, so you can also run again to switch back to the internal iMac graphics.


Apple System Management Control (SMC) utility



No releases published


No packages published
You can’t perform that action at this time.