Skip to content
/ smc_util Public
forked from floe/smc_util

Apple System Management Control (SMC) utility

Notifications You must be signed in to change notification settings

zl3ag/smc_util

 
 

Repository files navigation

smc_util

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 https://github.com/floe/smc_util.git
cd smc_util

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

sudo ./tdm_on.sh # enable target display mode
sudo ./tdm_off.sh # disable target display mode

IMPORTANT: when you run tdm_on.sh 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 tdm_off.sh again to switch back to the internal iMac graphics.

About

Apple System Management Control (SMC) utility

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 85.3%
  • D 11.8%
  • Shell 2.9%