[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
kinmad Offline
Junior Member
Posts: 13
Joined: Jan 2011
Reputation: 0
Location: Melbourne
Post: #141
Just another poster who wanted to say thanks for all the information people have provided and all the sofware developers who have made this such a powerful impressive add-on to my HTPC experience.

Got this set-up last night and looks great .....let the tweaking begin Smile
find quote
kinmad Offline
Junior Member
Posts: 13
Joined: Jan 2011
Reputation: 0
Location: Melbourne
Post: #142
Eoghlear Wrote:Bobo1on1,

2. How can i start/stop the deamon (boblightd) and the client (boblight x-11 code thing) from xbmc itself? A script or something in combination with advanced launcher? Did you ever try such a thing?

I'm also very interested in this approach as I auto-boot into XBMC and use an MCE remote to try to pass the WAF (Wife Acceptance Factor) Laugh

I currently have a script called start_boblight with the following details

sudo boblightd
boblight-X11 -t 0.1

This is fine if i run it via a terminal:

./start_boblight

But this needs password entry to satisfy the bolight dameon process which I don't think you can do through XBMC and the executor plugin.

I have set-up excutor add-on within xbmc to try to run the script and have tried playing around with passing the password as a parameter etc and changing the sudo line above but with no success.

I'm a linux novice so still trawling the net for information, but if someone has already done this, I'm sure myself and Eoghlear would love to know and save us the pain.

There are details (on this thread I think) that can start the lights on the PC starting up, but I'd prefer to turn on/off as and when needed - i.e. no point in having them on during the day.

Also having another script to turn the lights off (kill dameon process?) would be the final piece of the jigsaw.

Cheers
find quote
bobo1on1 Offline
cheapass Team-XBMC Developer
Posts: 2,752
Joined: Dec 2008
Reputation: 20
Post: #143
If you add the correct udev rules to allow non-root to access the AmbX device you don't have to run boblightd as root.
You could also just start boblightd from one of the startup scripts instead and start boblight-X11 from XBMC.
find quote
kinmad Offline
Junior Member
Posts: 13
Joined: Jan 2011
Reputation: 0
Location: Melbourne
Post: #144
Thanks bobo1on1,

Got a nice tutorial to read (http://reactivated.net/writing_udev_rules.html) - much prefer to try to get some background knowledge first.

Still loving the boblight though. Last night, found a 10 minute video of a burning woodfire in a fireplace on you-tube...lights off, red glowing walls.... sad I know Wink
(This post was last modified: 2011-04-21 05:46 by kinmad.)
find quote
kinmad Offline
Junior Member
Posts: 13
Joined: Jan 2011
Reputation: 0
Location: Melbourne
Big Grin    Post: #145
All sorted...

Created a udev rule with group permissions of my user to start the boblightd daemon.

Then just used the exectur plugin to link to a script that runs

boblight-X11 -t 0.1

So, now it's all accessible via the remote without having to exit XBMC

Happy camper Nod
find quote
Krautmaster Offline
Senior Member
Posts: 198
Joined: Jul 2010
Reputation: 1
Post: #146
hello there, finally my system works fine with 62 Channels right now but i tried to autostart boblightx11 for hours now and i cant get this working. Please help me on this matter:

I can start it manually using my skript:

Quote:#!/bin/sh
boblightd
su - xbmc -c "DISPLAY=:0.0 boblight-X11 -o speed=50 -o value=5 -o saturation=1.5 -o threshold=75"

Here we are:

http://www.youtube.com/watch?v=nWfT5OZfeqM
or
http://www.youtube.com/watch?v=VuooJcpiZ7w
find quote
illiac4 Offline
Fan
Posts: 434
Joined: May 2009
Reputation: 1
Post: #147
Which controller did you use?
find quote
tocinillo Online
Fan
Posts: 301
Joined: Dec 2010
Reputation: 2
Post: #148
Any ideas to start boblightd after suspend? If I kill boblightd before suspend and start it again after resume I get flickering....
find quote
bobo1on1 Offline
cheapass Team-XBMC Developer
Posts: 2,752
Joined: Dec 2008
Reputation: 20
Post: #149
Check ~/.boblight/boblightd.log when the flickering happens.
find quote
tocinillo Online
Fan
Posts: 301
Joined: Dec 2010
Reputation: 2
Post: #150
More tests bob:

When I resume my HTPC boblightd NOT work, but If i suspend again and resume boblight works! Why!?!?

On the other hand I have some issues to start boblightd with xbmc-standalone on start, because If I put bob.sh (script that run boblightd: #!/bin/bash /usr/local/bin/boblightd) on defaults (sudo update-rc.d bob.sh defaults) my HTPC couldn't shutdown/restart (seems that Ubuntu don't kill boblightd before shutdown/restart), and if I put boblightd in Start Programs (in GNOME session) boblightd don't start in XBMC-Standalone....then...how I start boblightd automatically in xbmc-standalone?

Thanks for eveything!
find quote
Post Reply