[LINUX] HOW-TO get AmbX with X11 working using Boblight and CombustD

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Tijntje Offline
Junior Member
Posts: 49
Joined: Jan 2010
Reputation: 0
Post: #91
Bob do you have a example of boblight.conf that's working with the google code head version? I've compiled and installed it, but the configs from this forum don't work with it.
find quote
Tijntje Offline
Junior Member
Posts: 49
Joined: Jan 2010
Reputation: 0
Post: #92
Everything is installed now, but when I start boblightd i get:



Looking for support ?
Chat: irc.oceanius.com #dev
Mail: combustd@sexybiggetje.nl

Format: ruby boblight.rb r1 g1 b1 r2 g2 b2 r3 g3 b3 r4 g4 b4 r5 g5 b5

/usr/local/combustd/applications/boblight/boblight.rb:14:in `Float': invalid value for Float(): "" (ArgumentError)
from /usr/local/combustd/applications/boblight/boblight.rb:14
(CDevice::Process) AmbX_Combust: closed
(CDevice::Process) AmbX_Combust: setting up

boblight - a small tool to listen to the output of boblight popen to control a set of Philips Ambx lights.
See README and docs/ for faq, usage and support.

Looking for support ?
Chat: irc.oceanius.com #dev
Mail: combustd@sexybiggetje.nl

Format: ruby boblight.rb r1 g1 b1 r2 g2 b2 r3 g3 b3 r4 g4 b4 r5 g5 b5

(CDevice::Process) AmbX_Combust: setup succeeded
(CDevicePopen::WriteOutput) ERROR: AmbX_Combust: ruby /usr/local/combustd/applications/boblight/boblight.rb Success
/usr/local/combustd/applications/boblight/boblight.rb:14:in `Float': invalid value for Float(): "" (ArgumentError)
from /usr/local/combustd/applications/boblight/boblight.rb:14
(CDevice::Process) AmbX_Combust: closed
(CDevice::Process) AmbX_Combust: setting up
(CDevice::Process) AmbX_Combust: setup succeeded
(CDevicePopen::WriteOutput) ERROR: AmbX_Combust: ruby /usr/local/combustd/applications/boblight/boblight.rb Success
find quote
bobo1on1 Offline
cheapass Team-XBMC Developer
Posts: 2,752
Joined: Dec 2008
Reputation: 20
Post: #93
Fixed in svn.
find quote
Tijntje Offline
Junior Member
Posts: 49
Joined: Jan 2010
Reputation: 0
Post: #94
bobo1on1 Wrote:Fixed in svn.

Thx, it's working now! and indeed it's a lot faster with Xrender.

Only the deamon isn't really a deamon at the moment Smile

Thx again, i'm going to play with the settings now.
find quote
Tijntje Offline
Junior Member
Posts: 49
Joined: Jan 2010
Reputation: 0
Post: #95
I saw the commit "turn on boblight client by default" in the xbmc trunk.
Does that mean you can change settings etc from within xbmc?
I can't find any related settings in the video - settings page, do you have to enable it in an xml?
find quote
Tijntje Offline
Junior Member
Posts: 49
Joined: Jan 2010
Reputation: 0
Post: #96
Tijntje Wrote:I saw the commit "turn on boblight client by default" in the xbmc trunk.
Does that mean you can change settings etc from within xbmc?
I can't find any related settings in the video - settings page, do you have to enable it in an xml?

never mind, commit was in branch , not trunk.
Any ETA on merge to trunk?
find quote
bobo1on1 Offline
cheapass Team-XBMC Developer
Posts: 2,752
Joined: Dec 2008
Reputation: 20
Post: #97
The idea is to make the boblight client into an addon, but that requires some more work because xbmc currently doesn't support addons like that.
find quote
acme-badboy Offline
Junior Member
Posts: 28
Joined: Jan 2009
Reputation: 0
Post: #98
Ambx is working great with XBMC, I used this tut: http://www.lockstockmods.net/2010/05/22/...with-ambx/

I have trouble to startup ambx automatically. This is what I did:

Quote:Automatically starting amBX

Create a new udev rule:
sudo nano /etc/udev/rules.d/99-ambx.rules

Copy the code below into it and save:
SUBSYSTEM=="usb", ATTRS{idVendor}=="0471", ATTRS{idProduct}=="083f", ACTION=="add", RUN+="/usr/bin/startambx"

Create the startambx script:
sudo nano /usr/bin/startambx

Copy the code below into it and save:
#!/bin/sh
boblightd
sudo su - xbmc -c "DISPLAY=:0.0 boblight-X11 -t 0.1"


When I start XBMC the light are not turning on. After this I try to start them with ssh and get the message: "Boblight receive timed out". But ambx is working without the startup script with ssh...

Did I overlook something?
find quote
Z3rO Offline
Member
Posts: 83
Joined: Jan 2009
Reputation: 0
Location: Germany
Post: #99
Try turning the lights off and on after xbmc started, so that the udev rule gets executed.
find quote
acme-badboy Offline
Junior Member
Posts: 28
Joined: Jan 2009
Reputation: 0
Post: #100
Z3rO Wrote:Try turning the lights off and on after xbmc started, so that the udev rule gets executed.

This really must sound stupid: I cant find a power-button. If I disconnect the power cable or the usb cable temporarely, still nothing happens.

Can anyone please write a little step-by-step tutorial on how to autostart ambx everytime when xbmc is starting?
find quote
Post Reply