More weirdly, the TV doesn't - it switches to a different HDMI source because Kodi has turned off, and then if I press the Power button again it finally turns off. It is a one-wire bidirectional serial bus that is based on the CENELEC standard AV.link protocol to perform remote control functions. Then I will be adding voice recognition to .

Kodi uses libCEC (CEC library) from Pulse-Eight for send and receive CEC commands over the HDMI bus, this is because libCEC acts an abstraction layer and translate the commands to match each vendor and devices compatibility issues. Turn tv off: echo "standby 0" | cec-client RPI -s -d 1 Turn tv on: In system/input/peripherals/CEC Adaptor make sure the setting "When TV is switched off" is set to "Ignore" (That is the default setting). On the face of it that's great, but there's one problem: I can't turn off the TV without having to first change to a different HDMI source, because otherwise it turns off the Raspberry Pi as well. devices like raspberry not showing up in the CEC menu at all, devices showing up but remote not working, etc). Device (0) tv. Especially cheap cables - still able to support 1080p without any problems - have been reported to cause problems with CEC (eg. When "setting up" CEC make sure your configuration uses good HDMI cables. HDMI-CEC cannot control the volume of your television alone. There are also reports of devices with improper HDMI CEC implementation, such as ROKU streaming box, causing problems with CEC device recognition. There are different trade names for HDMI CEC, depending on who is the manufacturer of your device, so it doesn't have to be stated as HDMI-CEC. But it is quiet annoying that we have to use those kinds of "workarounds" to enable such a simple thing like turning the whole system on and off with the Shield TV renmote. [65] lower (): # Get tv device and turn it on tv = cec. I have Kodi installed on a Raspberry Pi 3, and my TV appears to support controlling an HDMI source with the TV remote control. These instructions work for all libCEC compatible HDMI-CEC controllers and adapters, such as the Pulse-Eight USB - CEC Adapter or the HDMI-CEC controller built-into the Raspberry Pi. It could be so easy if only NVidia would enable the CEC function to also turn off the TV/Amp. Disconnecting non-CEC devices, or upgrading firmware on those devices, may resolve the problem. Actually, mine was already set to "Ignore" since it is the default, but the box still turns off when I press the Power button. I could resume it only by select HDMI CEC input again. CEC wiring is mandatory, although implementation of CEC in a product is optional. [65] CEC also allows for individual CEC-enabled devices to command and control each other without user intervention. Equally some mandatory features of HDMI-CEC are not implemented by some vendors. Kodi comes with Using this feature a Kodi compatible CEC controller/adapter will send and receive remote key presses to and from your television and AV-receiver via Consumer Electronics Control (CEC) is an HDMI feature designed to allow the user to command and control up-to 15 CEC-enabled devices, that are connected through HDMI,[63][64] by using only one of their remote controls (for example by controlling a television set, set-top box, and DVD player using only the remote control of the TV).

On the face of it that's great, but there's one problem: I can't turn off the TV without having to first change to a different HDMI source, because otherwise it turns off the Raspberry Pi as well. Rock band Make your own musical instruments with code blocks. Consumer Electronics Control (CEC) is an HDMI feature designed to allow the user to command and control up-to 15 CEC-enabled devices, that are connected through HDMI,[63][64] by using only one of their remote controls (for example by controlling a television set, set-top box, and DVD player using only the remote control of the TV).
libCEC is aimed at being a reference implementation of the HDMI 1.4b Specification, however what each adopter supports is not always what they should support. You may also want to look at your TV’s instruction manual or just try performing a web search for the model of your TV and “Enable HDMI-CEC.” CEC allows XBMC to turn your TV, receivers, and other attached equipment on and off (if they support HDMI CEC) adjust the volume or eject the disk from a drive. Stack Overflow. Find your manufacturer on this list and see what it is called for your device: if TURN_TV_ON in command. Using better HDMI cables might resolve that problem. Likewise these same devices can tell XBMC what to do, for example, your TV remote can also control XBMC, or vice versa. It is possible to turn the TV on or off (standby) from the Raspberry Pi. Start playback, etc. This option will be found in your TV’s menu, options, or settings. Below is a list of specific TV's which are known to be working with CEC and Kodi:

1 Overview. Most HDMI ports on computers (onboard or via GPU) do not have integrated support for the CEC feature, but instead can use a external CEC adapter, such as the ones from The Raspberry Pi GPU has CEC support which is supported by libCEC, and is therefore fully supported by Kodi.