In the first partl I showed you how to install and connect the ambilight-hardware on your TV.

In this tutorial I will show you how to light up the attached led strips, how to do the finetuning so the light behaves as you want it to and how to configure your remote using it to turn your ambilight on and off with it.

This Howto was done using Openelec (optimized operating system for Kodi) in version 5.95.4.

Following parts are included in this howto:

  1. Activating ambilight-module
  2. Installing Hyperion – software for color control
  3. Configuring Hyperion
  4. Finetuning – adjusting colors, brightness and saturation
  5. Turning the ambilight on/off using your remote control
  6. FAQ


What to expect after this tutorial?

Oh yeah, it’s worth it, believe me! 🙂


An entirely new cinema experience awaits you, lets start.


1. Activating ambilight- module

To address the GPIO Pins on the raspberry Pi2 , at first you have to activate a certain module in the config.txt.

Easiest way to edit configs etc. would be to take the SD- card out of the Raspberry and connect it to your PC using a card reader.

Open any text editor, I’m using the Sublime Text Editor – you can find the config.txt file in the root directory of the SD- card.

At the end of the file add following lines:

# activate ambilight module

That’s how it looks in the editor:

Save the file, and you’re done. 🙂

The ambilight- module is activated now. You can remove the SD- card now and put it back into your Raspberry Pi 2.


2. Installing hyperion – software for color control

Using Hyperion is currently the best method to control the LEDs. This software requires less processing power, works fast, effective and also provides an easy config tool.

To install it in Openelec, you have to connect to your Raspberry using a terminal software like Putty. In case you’ve never done it, here is a Howto for that.

First of all you download the installation script with this command, just copy and paste it in the terminal:

curl -L --output --get
sh ./


The Hyperion- installation script was downloaded successfully. Confirm it with the Enter Key to start the installation.

If your terminal looks like in the screenshot below, everything works and Hyperion was installed successfully.


After installation just reboot your Pi using the command “reboot”.


3. Configuring Hyperion

Things are starting to get colorful now. 😀

To assign the correct color values to the LEDs , you have to inform Hyperion about the layout of your ambilight- system.

Thanks to the configuration tool this is very easy to do.

Download the most current version from the developers site:

Download: HyperCon.jar

You may get a security message when downloading. Just ignore and download the file.

Info: n case you cant open the HyperCon.jar , you need to install Java on your computer . Here you can download it.


Count your LEDs!

I counted my LEDs as shown in the following picture. After that I entered the values in the Hyperion config tool.

count_led_ambilight_hyperionFor my setup I used following settings in the config tool.



Here you can set values like how many leds exist on each side, where the first led is, etc. I explained the settings in the screenshot. 😉

Make sure that the LED count in the bottom right corner is correct, otherwise some LED’s won’t light up later.




Here you can set brightness, color intensity, color transition and other finetuning. More on this later. 😉

I tried to explain everything as good as I could in the following screenshot:




Here you just need the last 2 entries.

It’s important to change the path for “Effect Engine” to the shown value on the screenshot.



Create config- file

After you’ve done with config, just click on “Create Hyperion Configuration” in the bottom left corner” and save the created hyperion.config.json in the “Configfiles” folder on your Pi.


You can find the “Configfiles” folder easily by accessing the pi in windows by entering the IP like this in the Windows Explorer Address bar: \\\



Now just reboot you raspberry so it can load the config file. You should see if it worked.



4. Finetuning – adjust colors, brightness and saturation

Colors seem too intense or not intense enough? LEDs are too bright or not bright enough? That’s we take care of now!

Finetuning can be done pretty easy using the Hyperion-App , you can see all changes live on your system.

Attention! All changes you make with the app are just temporary, you can’t save them. You have to note the values , enter them again in the Hyperion- config tool and create a new “hyperion.config.json”.

Hyperion App for Android: Click here

Hyperion App for iOS: Click here


Hyperion App – Set up connection

At first you have to connect to Kodi to get control of it. Therefore you need the IP address of your raspberry Pi.

Just follow the instructions as seen on the screenshots:


After connection is stablished , you can control all colors directly from your phone.

Probably you’re busy for a while now playing with the colors. 😀


Adjust whitelevel

For the colours to harmonise together well, it’s important to set the white tone near to the white tone your TV has.

Other colors like red, green and blue are not that important to adjust, because the effect is minimal and not conspicuous.

I created a package for you with all colors , which you can use to test and adjust.


Save this pictures on your Pi and open the white picture.

Now you can change the white tone in the hyperion app, till it’s similair or just the same to the TVs white tone.

On this screenshot you can see the values i set for a good result.


These values gave me this result:



Set brightness and saturation

Here you can find these settings. Just set them as you like it best. Best solution is to play a movie and play with some values till it looks best for you.

brightness_saturation_hyperion_appThat are the most important settings. You can play around with other settings as well and test what gives you the best results for your setup.

Again, as already written, all changes you make with the app won’t get saved. You have to put the values into the Hyperion Config tool and create a new config file. 😉


5. Turning the ambilight on/off using your remote control

To control your ambilight with a remote control, please follow my instructions in this section.

Download and unzip this little script.


Put the unzipped file into the Userdata folder on your Kodi.

You can access this folder by entering the IP of your PI2 like this in the Windows Explorer Address bar: \\\Userdata\

Just paste the file here.


There is a subfolder “keymaps”, wich contains either a file named “keyboard.xml or “remote.xml”, which you can edit using a text editor.

If you can’t find one of this files, you have to create it first. You can find more about this in this howto.

I created a remote.xml and assigned the Power-key to turn on and off the ambilight:


To avoid mistyping, just copy the code:


Once finished, just restart your Raspberry 2. Now your Key should have the wanted function.

6. FAQ:


My ambilight should only activate when a video starts, not in the menu, how to configure?

At first you have to turn off the light in menu using the Hyperion config tool, as shown in screenshot:

Afterwards you have to activate remote services in Kodi settings.

You can find it in Options → Services → Remote control

It’s important to turn on both options.


Now the LEDs are just lighting up at the start of Kodi and immediately go off as long you are in the menu.

Of course they activate in Video mode again..

If you have any questions, i like to help you in the comments. 🙂

Have fun reproducin and post your results.