Download Executor add-on for XBMC. If you prefer manually to download, here is the link
http://mirrors.xbmc.org/addons/dharma/pl...-0.2.5.zip
I have had a bug in pre-eden on Sams image that caused that the config file was not created for Executor add-on so i had to make it manually.
1. Create two scripts which will turn on and off Ambilight. I have put them into (/media/scripts) Give 755 permissions to scripts.
Turn ON (elights.sh)
Quote:#!/bin/bash
killall boblight-X11
killall -v boblightd
/usr/local/bin/boblightd -f > /dev/null 2>&1
DISPLAY=:0.0 /usr/local/bin/boblight-X11 -f -x -o speed=50 -o value=5 -o saturation=1.5 -o threshold=75 > /dev/null 2>&1
Turn OFF (elights_kill.sh)
Quote:#!/bin/sh
killall boblight-X11
killall -v boblightd
2. Install Executor add-on and create config file for them.
Config file for Executor is located in:
Quote:/root/.xbmc/userdata/addon_data/plugin.program.executor
And it is called (programs.cfg)
Content of config file is:
Quote:[Ambilight OFF]
exec = "/media/scripts/elights_kill.sh"
[Ambilight ON]
exec = "/media/scripts/elights.sh"
3. You can create shotcuts for this two scripts on favourites menu. To do this just add them to Favourites menu. After that you have to change "favourites.xml" in (/root/.xbmc/userdata).
Change this lines (just an example - do not use copy/paste). Replace "RunXBE" with "RunPlugin"
Quote: <favourite name="Ambilight ON">RunPlugin("plugin://plugin.program.executor/?do=program&id=Ambilight+ON"</favourite>
<favourite name="Ambilight OFF">RunPlugin("plugin://plugin.program.executor/?do=program&id=Ambilight+OFF"</favourite>