Problems turning of Target Display Mode on iMac
I'm connecting my macbook air to a late 2013 21.5inch iMac in target display mode, using the iMac as a display. The iMac works fine as a display, but when I try to turn target display mode off (command-F2, or unplugging the cable), the iMac screen goes black or fuzzy, and I can't use the iMac unless I restart it.
Any advice?
iMac 21.5", macOS 10.13