[Tutorial] Hyperion Ambilight on Linux and OpenELEC x64
#1
Updated: Now includes effect engine. Also update Hyperion on Android to v1.3.

On Raspberry Pi it is very popular. So here is the tutorial how to compile it on Linux and use it. It is uses almost no CPU usage like 1% for 100LEDs compared to boblight which was using around 30-35% of cpu usage on AppleTV with CB2. On my Atom D2550 it is not worth a mention.
I am using it also on regular HTPC based on Linux.

First install pre-requirements and then compile:
Code:
sudo apt-get update
sudo apt-get -y install git cmake build-essential libprotobuf-dev libQt4-dev libusb-1.0-0-dev protobuf-compiler python-dev
cd /tmp
git clone --recursive https://github.com/tvdzwan/hyperion.git
cd hyperion
cmake -DENABLE_DISPMANX=OFF -DENABLE_SPIDEV=OFF
sudo make
sudo mkdir -p /media/scripts/hyperion
sudo cp -a /tmp/hyperion/effects /media/scripts/hyperion/effects
sudo cp /tmp/hyperion/bin/hyperion-remote /usr/bin/
sudo cp /tmp/hyperion/bin/hyperiond /usr/bin/
sudo chmod +x /usr/bin/hyperion-remote
sudo chmod +x /usr/bin/hyperiond

Now you have compiled Hyperion and the binaries are now in place.
In next step we will make it autostart. In Rpi it uses upstart script but in Linux HTPC the best way to start it is using autoexec.py under userdata folder of XBMC.
If the file is not there then just create it and put this inside:
Code:
import os, sys
os.system('/media/scripts/hyperion_startup.sh');
sys.exit()

So now lets create the script under /media/scripts/hyperion_startup.sh
The content of the script should be:
Code:
#!/bin/bash
/usr/bin/hyperiond /etc/hyperion.config.json >/dev/null 2>&1 &
And also do not forget to make it executable.

Maybe you can put the line (/usr/bin/hyperiond /etc/hyperion.config.json >/dev/null 2>&1 &) directly into autoexec.py, but i did not try.

Now we need to create config file for Hyperion. Just download the file HyperCon from their page https://github.com/tvdzwan/hyperion/wiki/configuration and do a little reading.
With the tool create a config file. Make sure that you will set the right type like "adaligh,...", the right bound rate (very important!!!). adalight is using 115200 boundrate, the right type of LEDs (2801,...). For non RPi devices you can disable XBMC checker under the tab "External".
After you have created hyperion.config.json file, copy them under /etc/

Now you need to download the addon for Hyperion. It is similar like the one from Boblight. You can get it here https://github.com/tvdzwan/hyperion/wiki...for-RPi%29

This was the first step of compiling and basic installation of Hyperion.

Note:
Boblight and Hyperion can not run at the same time since they are using the same port and the same device. So disable the boblight first.


If you would like to use the Hyperion with the light on all the time, also on visualizations and also on menus then you can use the boblight-x11 daemon. You will need to compile boblight and use just the binaries boblight-x11 (boblightd and boblight-constant you can delete).
With this command you can call Hyperion with X11:
Code:
/usr/bin/hyperiond /etc/hyperion.config.json >/dev/null 2>&1 &
DISPLAY=:0.0 /usr/bin/boblight-X11 -f -x > /dev/null 2>&1 &

For easy finding of perfect light configuration use Android app Hyperion from the google market. With this app you can see in realtime how the parameters effects the ambilight. When you will find the perfect spot just enter it into HyperConf.


You can visit http://bite-in.com/?p=9 on how to build standalone ambilight system based on Hyperion and RPi.

Now also available on OpenELEC x64 build:
http://forum.kodi.tv/showthread.php?tid=...pid2005414
Reply


Messages In This Thread
[Tutorial] Hyperion Ambilight on Linux and OpenELEC x64 - by illiac4 - 2013-12-15, 17:22
Logout Mark Read Team Forum Stats Members Help
[Tutorial] Hyperion Ambilight on Linux and OpenELEC x641