I use an iMac as 2nd monitor. However the target display mode always is switched off when the display goes to sleep. I then have to switch manually target display mode on again (more precise: I have to switch it off and on again!).
If KM can do this for me I'll try to write some automation for this...