2011-07-25, 22:18
Nvidia gpu? Pass the -x flag to boblight-X11, it's a driver bug.
bobo1on1 Wrote:You could try disabling opengl flipping in nvidia-settings or in xorg.conf, but that will lower performance.
Quote:#!/bin/bash
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
Quote:#!/bin/sh
killall -9 boblight-X11
Quote:<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<launchers>
<launcher>
<id>8b370e49314f2fec250af5fdd5af3e81</id>
<name>Ambilight ON</name>
<application>/media/scripts/lights.sh</application>
<args></args>
<rompath></rompath>
<thumbpath></thumbpath>
<fanartpath></fanartpath>
<extrafanartpath></extrafanartpath>
<romext></romext>
<platform>3DO</platform>
<thumb></thumb>
<fanart></fanart>
<genre></genre>
<release></release>
<publisher></publisher>
<launcherplot></launcherplot>
<minimize>true</minimize>
<lnk></lnk>
<roms>
</roms>
</launcher>
<launcher>
<id>6b3586c8ee469e7a598ed80ac7935d15</id>
<name>Ambilight OFF</name>
<application>/media/scripts/lights_kill.sh</application>
<args></args>
<rompath></rompath>
<thumbpath>/</thumbpath>
<fanartpath></fanartpath>
<extrafanartpath></extrafanartpath>
<romext></romext>
<platform>3DO</platform>
<thumb></thumb>
<fanart></fanart>
<genre></genre>
<release></release>
<publisher></publisher>
<launcherplot></launcherplot>
<minimize>true</minimize>
<lnk></lnk>
<roms>
</roms>
</launcher>
</launchers>
tocinillo Wrote:Same problem with atmolight and your scripts: when I turn OFF/ON lights.sh I have flickering :/
But if I configure boblightd to autostart with Ubuntu all works fine, but I don't shutdown/restart my machine (seems that Ubuntu doesn't kill boblightd).
Regards.
Quote:#!/bin/sh
boblightd -f > /dev/null 2>&1
export DISPLAY=:0.0
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
Quote:#!/bin/sh
killall -v boblightd
killall boblight-X11
Quote:ps -efTo see what deamon are you running.
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
Quote:killall -9 boblight-X11
killall -9 boblightd
bobo1on1 Wrote:Try normal killall instead of killall -9, and kill boblight-X11 before boblightd.
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
tocinillo Wrote:Sorry, I forgot to tell you that I use Executor and not Advanced Launcher.
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
Quote:#!/bin/sh
killall -9 boblight-X11
killall -9 boblightd