Just built a new Kodi Buntu machine and noticed in the advanced options HDMI-CEC is included. Great stuff!!!

HDMI-CEC

Consumer Electronics Control (CEC) is a feature of HDMI designed to allow users to command and control up to 15 devices connected through HDMI by using only one remote control (for example by controlling a television set, set-top box, and DVD player using only the remote control of the TV). CEC also allows for individual CEC-enabled devices to command and control each other without user intervention.

It is a one-wire bidirectional serial bus that is based on the CENELEC standard AV.link protocol to perform remote control functions.CEC wiring is mandatory, although implementation of CEC in a product is optional. It was defined in HDMI Specification 1.0 and updated in HDMI 1.2, HDMI 1.2a and HDMI 1.3a (which added timer and audio commands to the bus). USB to CEC adapters exist that allow a computer to control CEC-enabled devices.