How to stop playback and return home when TV standby via CEC?

Solution can be found in this post: