2014-11-27, 10:48
It looks like the mytv.sh (bin.ceccontrol) script doesn't finish when called for the 5th time (off, on, off, on, off <-- doesn't finish), so I'm guessing the log corresponds to one of those times when it didn't put the TV to sleep.
Presumably the mytv.sh script is interacting with cec-client, and it's this that is hanging, so the TV isn't turned off (or back on) and the mytv.sh script never completes.
Unfortunately cec-client is known to cause problems and there really needs to be better CEC/JSON support in Kodi to avoid breaking the Kodi CEC comms.
Someone wrote an addon that implements a couple of basic CEC methods with JSON support (TV on/off, I think), are you using this addon as it may be more reliable than calling cec-client.
Edit: See here for addon.
Presumably the mytv.sh script is interacting with cec-client, and it's this that is hanging, so the TV isn't turned off (or back on) and the mytv.sh script never completes.
Unfortunately cec-client is known to cause problems and there really needs to be better CEC/JSON support in Kodi to avoid breaking the Kodi CEC comms.
Someone wrote an addon that implements a couple of basic CEC methods with JSON support (TV on/off, I think), are you using this addon as it may be more reliable than calling cec-client.
Edit: See here for addon.