0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

キーボードを使わずにMacをTDM(ターゲットディスプレイモード)にする

Last updated at Posted at 2017-03-13

確認した環境

  • ディスプレイとして使うMac:iMac (27-inchi, Mid 2011) OS X Yosemite 10.10.5
  • ディスプレイとして使うMacのキーボード:Apple Wireless Keyboard
  • 接続するMac:iMac (Retina 5K, 27-inch, Late 2014) OS X El Capitan
  • ケーブル:Thunderbolt

手順

  1. ディスプレイとして使うMacにsshで接続
  2. osascript -e 'tell application "System Events" to key code 144 using command down'

注意

ディスプレイとして使うMacに接続しているキーボードによってkey codeが異なります.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?