[HOW TO] Build Ambilight on Linux (AppleTV; Sams image; Ubuntu 8.04;...)

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
illiac4 Offline
Fan
Posts: 434
Joined: May 2009
Reputation: 1
Post: #41
I doubt that you are running two deamons with my script. Only if you click on more than once. Kill command will kill all deamons.
Use command
Quote:ps -ef
To see what deamon are you running.

Your script will be able to run throught terminal but not over Advanced launcher.


Well maybe it is a good idea to kill both deamons like you did, because it is possible that deamon boblightd start acting strange if you are starting and killing only x11. Will also try that today.
This is the modified your script which will work through terminal and advanced launcher.
Ambilight ON
Quote:/usr/local/bin/boblightd -f > /dev/null 2>&1
DISPLAY=:0.0 /usr/local/bin/boblight-X11 -f -x -o saturation=5 -o value=10 -o threshold=10 -o use=1 -o interpolation=1 -o autospeed=0.2 -o speed=30> /dev/null 2>&1


Ambilight OFF
Quote:killall -9 boblight-X11
killall -9 boblightd
(This post was last modified: 2011-08-02 13:36 by illiac4.)
find quote
bobo1on1 Offline
cheapass Team-XBMC Developer
Posts: 2,753
Joined: Dec 2008
Reputation: 20
Post: #42
Try normal killall instead of killall -9, and kill boblight-X11 before boblightd.
find quote
illiac4 Offline
Fan
Posts: 434
Joined: May 2009
Reputation: 1
Post: #43
bobo1on1 Wrote:Try normal killall instead of killall -9, and kill boblight-X11 before boblightd.

Normal kill will work only if run through terminal. Iy you try to run script throught Advanced Launcher it will not kill them without -9 switch.
find quote
tocinillo Online
Fan
Posts: 301
Joined: Dec 2010
Reputation: 2
Post: #44
illiac4 Wrote:I doubt that you are running two deamons with my script. Only if you click on more than once. Kill command will kill all deamons.
Use command

To see what deamon are you running.

Your script will be able to run throught terminal but not over Advanced launcher.


Well maybe it is a good idea to kill both deamons like you did, because it is possible that deamon boblightd start acting strange if you are starting and killing only x11. Will also try that today.
This is the modified your script which will work through terminal and advanced launcher.
Ambilight ON



Ambilight OFF

Sorry, I forgot to tell you that I use Executor and not Advanced Launcher.
find quote
illiac4 Offline
Fan
Posts: 434
Joined: May 2009
Reputation: 1
Post: #45
tocinillo Wrote:Sorry, I forgot to tell you that I use Executor and not Advanced Launcher.

Aha cool. I will also do some test with executor to see how it works compared to Advanced Launcher.

Maybe it is stupid Smile but to be sure that there are not more than one deamon started of boblightd and boblight-X11 we can use for script to turn on and off those one.

Ambilight ON:
Quote:#!/bin/bash
killall -9 boblight-X11
killall -9 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

Ambilight OFF
Quote:#!/bin/sh
killall -9 boblight-X11
killall -9 boblightd

These are for Advanced Launcher. I will write one for Executor after testing this plugin. The problem with Advanced Launcher is that it will not allow you to start and stop the Ambilight during watching the film, because it will throw you out from film or. music,..... This is the reason i do recommend to use Executor script.
(This post was last modified: 2011-08-05 16:37 by illiac4.)
find quote
cervix Offline
Junior Member
Posts: 2
Joined: Aug 2011
Reputation: 0
Post: #46
Works like a charme.

Do you know why I can't use both scripts via the favorite function of xbmc? They are both working under the advanced launcher for me. But if I add them to the favorites the don't work anymore.
find quote
illiac4 Offline
Fan
Posts: 434
Joined: May 2009
Reputation: 1
Post: #47
cervix Wrote:Works like a charme.

Do you know why I can't use both scripts via the favorite function of xbmc? They are both working under the advanced launcher for me. But if I add them to the favorites the don't work anymore.


I think this is because when you select the script from favorites it does not start launcher addon.
Maybe it could be a good idea to ask the developer of this addon for some advice. I'll do little research and will try to find out the solution.

At the moment i'm using in favorites so, that i have add the launcher to favourites, renamed it to Ambilight. And when i select now ambilight then the screen with options on and off shows up.

P.S.:
In preeden 11 i was not able to use executor script.
find quote
tocinillo Online
Fan
Posts: 301
Joined: Dec 2010
Reputation: 2
Post: #48
I'm using pre-eden version and favourites works pefectly. In addition, I maped Ambilight ON.sh (with Executor script) to button of my iMON remote, and the same with Ambilight OFF.

In this case, when I press green button Ambilight starts and when I press red button I shutdown ambilight!
(This post was last modified: 2011-08-04 10:52 by tocinillo.)
find quote
cervix Offline
Junior Member
Posts: 2
Joined: Aug 2011
Reputation: 0
Post: #49
@illiac4: I've found a way to add both scripts to your favourites. You have to replace RunXBE( with RunPlugin( in your userdata/favorites.xml

Seems to be a problem of Pre-Eden.
find quote
illiac4 Offline
Fan
Posts: 434
Joined: May 2009
Reputation: 1
Post: #50
Add to favourites solution. Will work for Advanced Launcher and also Executor script. Basically replace the "RunXBE" with "RunPlugin" in userdata/favorites.xml file.

http://forum.xbmc.org/showpost.php?p=854...count=2334
(This post was last modified: 2011-08-05 16:42 by illiac4.)
find quote
Post Reply