XBMC Community Forum  

Go Back   XBMC Community Forum > Help and Support > XBMC General Help and Support > XBMC for Linux and XBMC Live Specific Support

XBMC for Linux and XBMC Live Specific Support Need help with XBMC for Linux or XBMC Live, or think you've found a bug? Discuss it here.

Reply
 
Thread Tools Search this Thread Display Modes
Old 2010-04-10, 23:47   #1
CharlesNasi
Junior Member
 
Join Date: Nov 2008
Location: NL
Posts: 19
CharlesNasi is on a distinguished road
Default Howto: AmbX with X11 (Boblight + CombustD)

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!
CharlesNasi is offline   Reply With Quote
Old 2010-04-11, 00:39   #2
bobo1on1
Team-XBMC Developer
 
bobo1on1's Avatar
 
Join Date: Dec 2008
Posts: 1,136
bobo1on1 is on a distinguished road
Default

Quote:
Originally Posted by CharlesNasi View Post
Bob for creating the great Boblight utility!
Yay
bobo1on1 is offline   Reply With Quote
Old 2010-04-11, 12:50   #3
voyager2
Member
 
Join Date: Jul 2009
Location: Alkmaar - Nederland
Posts: 79
voyager2 is on a distinguished road
Send a message via MSN to voyager2
Default

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.
voyager2 is offline   Reply With Quote
Old 2010-05-19, 13:59   #4
Kode
Senior Member
 
Join Date: Mar 2010
Posts: 227
Kode is on a distinguished road
Default

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?

Last edited by Kode; 2010-05-19 at 14:05.
Kode is offline   Reply With Quote
Old 2010-05-19, 19:22   #5
Kode
Senior Member
 
Join Date: Mar 2010
Posts: 227
Kode is on a distinguished road
Default

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?

*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 DD

Last edited by Kode; 2010-05-19 at 22:59.
Kode is offline   Reply With Quote
Old 2010-05-20, 13:36   #6
NotShorty
Fan
 
NotShorty's Avatar
 
Join Date: Feb 2007
Posts: 309
NotShorty is on a distinguished road
Default

Subscribed. I've loved this idea ever since I saw Pike2k's video. Thanks for the tut!

NS
NotShorty is offline   Reply With Quote
Old 2010-05-20, 13:44   #7
einhänder
Senior Member
 
einhänder's Avatar
 
Join Date: Sep 2008
Posts: 130
einhänder is on a distinguished road
Default

Quote:
Originally Posted by CharlesNasi View Post
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... :/
einhänder is offline   Reply With Quote
Old 2010-05-20, 14:09   #8
piotr
Member
 
Join Date: Jun 2008
Location: Netherlands
Posts: 78
piotr is on a distinguished road
Default

Quote:
Originally Posted by CharlesNasi View Post
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.
__________________
HTPC : Asus P2-P5945GC i945GC - XBMC-Live (USBstick) - Alaska Revisited 720p - Logitech Harmony 900 - Panasonic TH-42PX80 - Synology DS109j
piotr is offline   Reply With Quote
Old 2010-05-22, 11:25   #9
Z3rO
Member
 
Join Date: Jan 2009
Location: Germany
Posts: 73
Z3rO is on a distinguished road
Default

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
Z3rO is offline   Reply With Quote
Old 2010-05-22, 12:12   #10
piotr
Member
 
Join Date: Jun 2008
Location: Netherlands
Posts: 78
piotr is on a distinguished road
Default

Just bought a starterkit for 20 euros Will post the results.

Ps: is it possible to use only the "wallwasher" w/o the ugly satellites ?
__________________
HTPC : Asus P2-P5945GC i945GC - XBMC-Live (USBstick) - Alaska Revisited 720p - Logitech Harmony 900 - Panasonic TH-42PX80 - Synology DS109j
piotr is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:17.


Protected by Akismet, We recommend WordPress blogs
Copyright © 2010, XBMC Project