2011-07-30, 14:30
illiac4 Wrote:Hi! I'm using ambilight script to start and stop the ambilight. I'm on ATV ubuntu 8.04 and using two scripts: lights.sh and lights_kill.shFor you first script it could be related to a relative path access problem. Try this :
I can add them to launcher but when i run them nothing happens. If i launch those scripts from terminal (putty) they do work.
They are located in "/media/scripts/" folder.
What can be wrong?
Code:
#!/bin/sh
DISPLAY=:0.0 [b]/path/to/boblight-X11[/b] -f -x -o speed=50 -o value=5 -o saturation=1.5 -o threshold=75 > /dev/null 2>&1
Code:
#!/bin/sh
killall [b]-9[/b] boblight-X11
Code:
<launcher>
....
<name>Start Boblight </name>
<application>DISPLAY=:0.0 [b]/path/to/boblight-X11[/b] -f -x -o speed=50 -o value=5 -o saturation=1.5 -o threshold=75 > /dev/null 2>&1</application>
....
</launcher>
Code:
<launcher>
....
<name>Close Boblight </name>
<application>killall [b]-9[/b] boblight-X11</application>
....
</launcher>