[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
CharlesNasi Offline
Junior Member
Posts: 20
Joined: Nov 2008
Reputation: 0
Location: NL
Thumbs Up  [LINUX] HOW-TO get AmbX with X11 working using Boblight and CombustD
Post: #1
Hi,

I bought a Philips AmbX Starter kit, and struggled how to configure this so it will work with X11. It's working!

What I used:
- Ubuntu Desktop 10.04 Beta2 x64
- XBMC Camelot 9.11
- Philips AmbX starter kit (Around 25 euro in NL)
- CombustD
- Boblight

1. (If not installed) install Subversion

Code:
sudo apt-get install subversion

2. get combustd from svn
Code:
svn checkout http://combustd.googlecode.com/svn/branches/combustd-ruby-0.1

3. Download Boblight and extract it to something you want

Code:
Download: wget http://www.xs4all.nl/~loosen/boblight/boblight-1.3.tar.gz.
Tar: tar zxvf boblight-1.3.tar.gz

4. Get dependencies to compile Boblight
Code:
sudo apt-get install gcc libusb-dev ruby ruby-dev libportaudio-dev libavdevice-dev libswscale-dev libavformat-dev libavcodec-dev libxrender-dev libsdl1.2-dev libc6-dev-i386  libx11-dev

4. Build the package 'Boblight'
Go to the folder where you extracted Boblight and do:
Code:
sudo ./configure
(If some dependencies are missing, ask in this forum about it!)
Code:
sudo make
and install it.
Code:
sudo make install

5. Configure Boblight
Open a text-editor (I used Gedit in the code-example) and edit the file 'boblight.conf
Code:
sudo nano /etc/boblight.conf
Add the following code into the file
Code:
[global]
interface 127.0.0.1
port 19333
[device]
name AmbX_Combust
output "ruby /usr/local/combustd/applications/boblight/boblight.rb"
channels 5
type popen
interval 20000

[color]
name red
rgb FF0000

[color]
name green
rgb 00FF00

[color]
name blue
rgb 0000FF

[light]
name main
color red AmbX_Combust 1
color green AmbX_Combust 2
color blue AmbX_Combust 3
hscan 0 100
vscan 0 100

And save the file.
Boblight is now configured.

6. Install and compile Ruby-usb
download and get Ruby-usb
Code:
wget http://www.a-k-r.org/ruby-usb/ruby-usb-0.2.tar.gz
Extract ruby to a folder
Code:
tar -zxvf ruby-usb-0.2.tar.gz

Run ruby extconf.rb
Code:
sudo ruby extconf.rb
(If you get a error here (mkmf error) > sudo apt-get install ruby1.8-dev
Make & Install Ruby
sudo make && sudo make install

7. CombustD
- Extract the CombustD package you downloaded previously
- Rename the folder to combustd
- Move the folder to /usr/local

All steps are now done, time to start the daemon!
Run the following command in a shell:
Code:
sudo boblightd

Start the boblight-X11 binary
Code:
boblight-X11

Tweaks:
More saturation:
Add -s 20 behind the boblight-X11 exec.

To Do:
Create a file to autostart the daemon on startup and to launch the server
Add more tweaks
V. 0.1

Thanks
Thanks go to:
Bob for creating the great Boblight utility!
http://blogger.xs4all.nl/loosen/
Creators of CombustD!
find quote
bobo1on1 Offline
cheapass Team-XBMC Developer
Posts: 2,758
Joined: Dec 2008
Reputation: 22
Post: #2
CharlesNasi Wrote:Bob for creating the great Boblight utility!
Yay Smile
find quote
voyager2 Offline
Member
Posts: 83
Joined: Jul 2009
Reputation: 0
Location: Alkmaar - Nederland
Post: #3
Dear Bob light god, yes thats you bobo1on1 ;-)

I have two momo light controllers here doing nothing, because there's no good software that works under 64bit windows7 So it just sitting here, but reading this I thought maybe I can use it with my Linux xbmc system, it seems to work better under linux anyway.

Will it work with movies under linux/xbmc? or is it only the gui that's working just like windows?

Can you write a small tutorial on how to get it going under XBMC live 9.11? I really loved my diy ambi light kit, the last time I used epilight under windows and it just eats away cpu time and is not useable.

Hope you can help bringing live to my favorite diy project from years ago.

Case: Ahanix MCE301 Mainboard: M3N78-VM :CPU X2 4200 MHz SSD: 2x OCZ agility 30G Ram: 2G Remote: MS MCE. MSI Geforece 210 & Asrock 330 ION.
find quote
Kode Offline
fanart.tv admin
Posts: 749
Joined: Mar 2010
Reputation: 14
Post: #4
I'm glad this thread is here, a very general search of "ambx" on the front page turns this up as the only example of how to get this working on linux, my ambx starter kit should be arriving this week, so thank you very much for this.

*edit*
As an aside, should i use boblight-1.3.tar.gz or svn checkout from google code?
(This post was last modified: 2010-05-19 14:05 by Kode.)
find quote
Kode Offline
fanart.tv admin
Posts: 749
Joined: Mar 2010
Reputation: 14
Post: #5
i get:

kode@dhcppc1:~/ambx$ boblight-X11
Received hello from new client 127.0.0.1:35042
Assigning number 0 to client
Sending global config to 127.0.0.1:35042
Sending lights config to 127.0.0.1:35042

Starting boblight-X11

ERROR: Can't open display (null)


Closing boblight-X11

Timeout of 127.0.0.1:35042 set to 20
Priority of 127.0.0.1:35042 set to 128
127.0.0.1:35042 light main interpolation on
127.0.0.1:35042 light main proportional set to 100.000000
127.0.0.1:35042 light main saturation set to 1.00
127.0.0.1:35042 light main value set to 1.00
127.0.0.1:35042 light main valuerange set to 0.00-1.00
127.0.0.1:35042 use light main
Received bye from 127.0.0.1:35042


Any ideas? Sad

*edit*
boblight-constant works, but cant get boblight-X11 to work

*edit2*
If this happens to anyone else, it turns out the problem was the DISPLAY environment variable wasn't set, typing:

Code:
export DISPLAY=:0.0

worked :DDD
(This post was last modified: 2010-05-19 22:59 by Kode.)
find quote
NotShorty Offline
Fan
Posts: 354
Joined: Feb 2007
Reputation: 0
Post: #6
Subscribed. I've loved this idea ever since I saw Pike2k's video. Thanks for the tut!

NS

[Image: all-thin-banner.jpg]
find quote
einhänder Offline
Senior Member
Posts: 169
Joined: Sep 2008
Reputation: 0
Post: #7
CharlesNasi Wrote:Hi,

I bought a Philips AmbX Starter kit, and struggled how to configure this so it will work with X11. It's working!

...

- Philips AmbX starter kit (Around 25 euro in NL)

could you please tell me where you ordered your kit? it seems not to be available over here in germany anymore. at least i couldn't find any offer... :/
find quote
piotr Offline
Senior Member
Posts: 151
Joined: Jun 2008
Reputation: 0
Location: Netherlands
Post: #8
CharlesNasi Wrote:Hi,

I bought a Philips AmbX Starter kit, and struggled how to configure this so it will work with X11. It's working!

Could you post a picture of your setup ? I'd like to hide the lights behind my (wallmounted) plasma, don't know if this is possible with the Ambx kit.

AppleTV 2 - Alaska Revisited - Logitech Harmony 900 - Panasonic TH-42PX80 - Synology DS109j
[Image: widget]
find quote
Z3rO Offline
Member
Posts: 83
Joined: Jan 2009
Reputation: 0
Location: Germany
Post: #9
Bought my starterkit yesterday (was pretty hard to get one), after I read that xbmc works with it.
Its running great, the only thing i noticed is, that it reacts a bit slow to colour changes. Already tried to lower the intervall in the boblightd config from 20000 to 10000, but it didnt really help.

I also think that -s20 for saturation is way too high. I tried it with 5 and its really sufficient.

Another thing is, that I had to turn off VDPAU studio level colour correction since the lights would never go off when there was a black scene. This worked on non accelerated videos though, so that was the culprit.

Otherwise its really great to have a blue/green painted wall when watching avatar Big Grin
find quote
piotr Offline
Senior Member
Posts: 151
Joined: Jun 2008
Reputation: 0
Location: Netherlands
Post: #10
Just bought a starterkit for 20 euros Smile Will post the results.

Ps: is it possible to use only the "wallwasher" w/o the ugly satellites ?

AppleTV 2 - Alaska Revisited - Logitech Harmony 900 - Panasonic TH-42PX80 - Synology DS109j
[Image: widget]
find quote
Z3rO Offline
Member
Posts: 83
Joined: Jan 2009
Reputation: 0
Location: Germany
Post: #11
Shoul be. Simply unplug them.
find quote
bobo1on1 Offline
cheapass Team-XBMC Developer
Posts: 2,758
Joined: Dec 2008
Reputation: 22
Post: #12
Z3rO Wrote:Bought my starterkit yesterday (was pretty hard to get one), after I read that xbmc works with it.
Its running great, the only thing i noticed is, that it reacts a bit slow to colour changes. Already tried to lower the intervall in the boblightd config from 20000 to 10000, but it didnt really help.

You can adjust that by changing the update interval and speed for boblight-X11 with commandline arguments.
find quote
Z3rO Offline
Member
Posts: 83
Joined: Jan 2009
Reputation: 0
Location: Germany
Post: #13
bobo1on1 Wrote:You can adjust that by changing the update interval and speed for boblight-X11 with commandline arguments.

Do you have recommendations when using PHILIPS ambx lights?
I really have to read the manual for boblight. It was kinda late last night ;-)
find quote
bobo1on1 Offline
cheapass Team-XBMC Developer
Posts: 2,758
Joined: Dec 2008
Reputation: 22
Post: #14
Set the interval to 0.03 seconds, set the speed to 20 or so (100 is max).
find quote
Kode Offline
fanart.tv admin
Posts: 749
Joined: Mar 2010
Reputation: 14
Post: #15
what would the command be for that? i can't get to http://blogger.xs4all.nl/loosen/ to see the documentation it just comes up with HTTP Error 403.6 - Forbidden: IP address of the client has been rejected.
Internet Information Services (IIS)
find quote
Post Reply