Page 1 of 1

Turn on Kodi with plug HDMI wire

Posted: Sun Nov 27, 2016 6:32 pm
by valver
Dear all,

I have a Raspberry B+

Code: Select all

Raspbian GNU/Linux 8
Linux raspberrypi 4.4.21+ #911 Thu Sep 15 14:17:52 BST 2016 armv6l GNU/Linux
I would like know if is possible turn on (execute) kodi when I connect the HDMI wire.

I tried make a script to change the "ENABLE" paramet in /etc/defualt/kodi when the raspberry is boot but I have not got it.

Using tvservice -M, I can know when the wire is connect/disconnect to Raspberry but i cant execute kodi with this.

My intention is:
Plug the USB in raspberry to supply
(raspberry boot)
IF hdmi wire is connected -> execute KODI
ELSE -> execute rtorrent.

Some idea?

Thanks in advance.

Regards