Code mostly by Gav Wood LIRC interface code adapted from Noatun/Infrared by Malte Starostik.