I am running up to date OSMC release on RPi2. It works just great and stable.
OSMC over HDMI CEC control from my TV (Panasonic TH-37PX80E) remote control works also OK.
I tried the opposite direction and control also my TV using CECclient from RPi side: echo ‘standby 0‘ | cec-client –s RPI & echo ‘on 0‘ | cec-client –s RPI also works just OK and I am able to turn on and standby my TV (however this kind of control disconnects xbmc CEClib so I try to use xbmc buit-in fuctions to control TV over CEC (http://kodi.wiki/view/List_of_built-in_functions)).
I have created some scripts scenarios using xbmc python scripts to control TV on/off depending of the file type (scenarios when xbmc.Player().isPlayingVideo() shall turn on my TV, when xbmc.Player().isPlayingAudio() I want push my TV into standby mode).
I can successfully turn on my TV sending xbmc.executebuiltin(‘CECActivateSource’) from my xbmc script.
However xbmc.executebuiltin(‘CECStandby’) and xbmc.executebuiltin(‘CECToggleState’) does not work at all.
Does anybody have an experience with those built-in functions whether working properly please? (I have of course enabled on my Panasonic TV Viera link remote on and standby features).
I am not sure if this is a problem of my TV support or some problem with CECStandby and CECToggleState xbmc built-in functions in OSMC (again, from CEC client I can control TV on and standby).
Thank you for your help.