[RELEASE] Official XBMC boblight Addon

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
phil65 Offline
Skilled Skinner
Posts: 4,456
Joined: Mar 2009
Reputation: 56
Location: Cologne, Germany
Post: #251
http://ikennd.ac/pictures/for_posts/2011...Wiring.png

that´s how it should look like (with less arduino PWM pins of course and with an external power supply)

Check if your strip is +RGB or -RGB
(This post was last modified: 2012-03-15 23:11 by phil65.)
find quote
lrusak Offline
Fan
Posts: 384
Joined: Sep 2011
Reputation: 3
Location: Canada
Post: #252
boblightd doesn't seem to connect after I wake from sleep. I have to restart or disconnect and reconnect the usb cable.

this is what it is saying in the log file
Code:
(CDeviceRS232::WriteOutput)     ERROR: ambilight: /dev/ttyACM0: Input/output error
(CDevice::Process)              ambilight: closed
(CDevice::Process)              ambilight: setting up

when I disconnect then reconnect the USB cable I get this in the log file, then it works fine
Code:
(CDeviceRS232::SetupDevice)     ERROR: ambilight: /dev/ttyACM0: Input/output error
(CDevice::Process)              ERROR: ambilight: setting up failed, retrying in 10 seconds

"PPC is too slow, your CPU has no balls to handle HD content." ~ davilla

[Image: watched-clearlogo.jpg]
find quote
phil65 Offline
Skilled Skinner
Posts: 4,456
Joined: Mar 2009
Reputation: 56
Location: Cologne, Germany
Post: #253
(2012-03-17 23:09)lrusak Wrote:  boblightd doesn't seem to connect after I wake from sleep. I have to restart or disconnect and reconnect the usb cable.

this is what it is saying in the log file
Code:
(CDeviceRS232::WriteOutput)     ERROR: ambilight: /dev/ttyACM0: Input/output error
(CDevice::Process)              ambilight: closed
(CDevice::Process)              ambilight: setting up

when I disconnect then reconnect the USB cable I get this in the log file, then it works fine
Code:
(CDeviceRS232::SetupDevice)     ERROR: ambilight: /dev/ttyACM0: Input/output error
(CDevice::Process)              ERROR: ambilight: setting up failed, retrying in 10 seconds

i think i had the same problem. if you´re using linux I could send you a small binary which resets the usb port.
you´d have to integrate that in /etc/pm/sleep.d.
find quote
lrusak Offline
Fan
Posts: 384
Joined: Sep 2011
Reputation: 3
Location: Canada
Post: #254
(2012-03-18 06:55)phil65 Wrote:  
(2012-03-17 23:09)lrusak Wrote:  boblightd doesn't seem to connect after I wake from sleep. I have to restart or disconnect and reconnect the usb cable.

this is what it is saying in the log file
Code:
(CDeviceRS232::WriteOutput)     ERROR: ambilight: /dev/ttyACM0: Input/output error
(CDevice::Process)              ambilight: closed
(CDevice::Process)              ambilight: setting up

when I disconnect then reconnect the USB cable I get this in the log file, then it works fine
Code:
(CDeviceRS232::SetupDevice)     ERROR: ambilight: /dev/ttyACM0: Input/output error
(CDevice::Process)              ERROR: ambilight: setting up failed, retrying in 10 seconds

i think i had the same problem. if you´re using linux I could send you a small binary which resets the usb port.
you´d have to integrate that in /etc/pm/sleep.d.

I'm using Openelec, so I can't do that.

Thanks though

"PPC is too slow, your CPU has no balls to handle HD content." ~ davilla

[Image: watched-clearlogo.jpg]
find quote
phil65 Offline
Skilled Skinner
Posts: 4,456
Joined: Mar 2009
Reputation: 56
Location: Cologne, Germany
Post: #255
(2012-03-18 07:45)lrusak Wrote:  
(2012-03-18 06:55)phil65 Wrote:  
(2012-03-17 23:09)lrusak Wrote:  boblightd doesn't seem to connect after I wake from sleep. I have to restart or disconnect and reconnect the usb cable.

this is what it is saying in the log file
Code:
(CDeviceRS232::WriteOutput)     ERROR: ambilight: /dev/ttyACM0: Input/output error
(CDevice::Process)              ambilight: closed
(CDevice::Process)              ambilight: setting up

when I disconnect then reconnect the USB cable I get this in the log file, then it works fine
Code:
(CDeviceRS232::SetupDevice)     ERROR: ambilight: /dev/ttyACM0: Input/output error
(CDevice::Process)              ERROR: ambilight: setting up failed, retrying in 10 seconds

i think i had the same problem. if you´re using linux I could send you a small binary which resets the usb port.
you´d have to integrate that in /etc/pm/sleep.d.

I'm using Openelec, so I can't do that.

Thanks though

i think you can, even when using openelec. some openelec addons have a sleep.d folder in their root, the boblightd addon seems to get it too I think ( https://github.com/OpenELEC/OpenELEC.tv/...6d3c9f77cf )
I´m still waitin for a new PVR build, if you don ´t use PVR an OpenELEC version with this change should be available from the official daily builds.
and if that does not work you can still build your own OpenELEC image.
(This post was last modified: 2012-03-18 08:11 by phil65.)
find quote
schumi2004 Offline
Fan
Posts: 642
Joined: Aug 2011
Reputation: 4
Post: #256
I'm trying to compile the binary to see if it will work on OpenELEC 64bit but i'm getting this error:

configure: error: Missing a required library, please install it or disable X11 support by passing --without-x11 to configure

X11 is installed on my system (Ubuntu 32bit) but can't seem to pass this error.
Second question is if there is a config option to compile it for 64bit systems or is this library the same for both?

edit:
Compiling for x86_64 is solved (--build=x86_64) only X11 error left.
Another forum member talked about chmod did the trick but what should i chmod ?

[Image: watched-clearlogo.jpg]
(This post was last modified: 2012-03-18 13:11 by schumi2004.)
find quote
phil65 Offline
Skilled Skinner
Posts: 4,456
Joined: Mar 2009
Reputation: 56
Location: Cologne, Germany
Post: #257
(2012-03-18 11:26)schumi2004 Wrote:  I'm trying to compile the binary to see if it will work on OpenELEC 64bit but i'm getting this error:

configure: error: Missing a required library, please install it or disable X11 support by passing --without-x11 to configure

X11 is installed on my system (Ubuntu 32bit) but can't seem to pass this error.
Second question is if there is a config option to compile it for 64bit systems or is this library the same for both?

edit:
Compiling for x86_64 is solved (--build=x86_64) only X11 error left.
Another forum member talked about chmod did the trick but what should i chmod ?

don´t know the exact names of the libraries (probably libx...-dev) but I think an "apt-get build-dep wine" did the trick for me some time ago when i had the same error Big Grin will install some unneeded libraries too of course.

EDIT: generic 64 bit building isn´t possible at the moment, or am i wrong?

EDIT2: and if you want to compile openelec on ubuntu, only compiling on ubuntu 10.10 or less is officially supported. If it doesn´t work you could use a schroot environment.
(This post was last modified: 2012-03-18 13:33 by phil65.)
find quote
schumi2004 Offline
Fan
Posts: 642
Joined: Aug 2011
Reputation: 4
Post: #258
(2012-03-18 13:27)phil65 Wrote:  
(2012-03-18 11:26)schumi2004 Wrote:  I'm trying to compile the binary to see if it will work on OpenELEC 64bit but i'm getting this error:

configure: error: Missing a required library, please install it or disable X11 support by passing --without-x11 to configure

X11 is installed on my system (Ubuntu 32bit) but can't seem to pass this error.
Second question is if there is a config option to compile it for 64bit systems or is this library the same for both?

edit:
Compiling for x86_64 is solved (--build=x86_64) only X11 error left.
Another forum member talked about chmod did the trick but what should i chmod ?

don´t know the exact names of the libraries (probably libx...-dev) but I think an "apt-get build-dep wine" did the trick for me some time ago when i had the same error Big Grin will install some unneeded libraries too of course.

EDIT: generic 64 bit building isn´t possible at the moment, or am i wrong?

EDIT2: and if you want to compile openelec on ubuntu, only compiling on ubuntu 10.10 or less is officially supported. If it doesn´t work you could use a schroot environment.
Thanks for the tip about build-dep wine solved my X11 error but now i have missing header for ffmpeg and i should run it with --without-ffmpeg which is strage since it's already added. (./configure --without-portaudio --without-ffmpeg --prefix=/usr)

I added --build=x86_64 and it didn't complain, if i got a proper build i'm going to test if it worked, first getting that ffmpeg bug gone.

[Image: watched-clearlogo.jpg]
find quote
phil65 Offline
Skilled Skinner
Posts: 4,456
Joined: Mar 2009
Reputation: 56
Location: Cologne, Germany
Post: #259
(2012-03-18 13:46)schumi2004 Wrote:  
(2012-03-18 13:27)phil65 Wrote:  
(2012-03-18 11:26)schumi2004 Wrote:  I'm trying to compile the binary to see if it will work on OpenELEC 64bit but i'm getting this error:

configure: error: Missing a required library, please install it or disable X11 support by passing --without-x11 to configure

X11 is installed on my system (Ubuntu 32bit) but can't seem to pass this error.
Second question is if there is a config option to compile it for 64bit systems or is this library the same for both?

edit:
Compiling for x86_64 is solved (--build=x86_64) only X11 error left.
Another forum member talked about chmod did the trick but what should i chmod ?

don´t know the exact names of the libraries (probably libx...-dev) but I think an "apt-get build-dep wine" did the trick for me some time ago when i had the same error Big Grin will install some unneeded libraries too of course.

EDIT: generic 64 bit building isn´t possible at the moment, or am i wrong?

EDIT2: and if you want to compile openelec on ubuntu, only compiling on ubuntu 10.10 or less is officially supported. If it doesn´t work you could use a schroot environment.
Thanks for the tip about build-dep wine solved my X11 error but now i have missing header for ffmpeg and i should run it with --without-ffmpeg which is strage since it's already added. (./configure --without-portaudio --without-ffmpeg --prefix=/usr)

I added --build=x86_64 and it didn't complain, if i got a proper build i'm going to test if it worked, first getting that ffmpeg bug gone.

you only need --without-pulseaudio, you can ignore the ffmpeg error then I think.
EDIT: what are you tryin to do actually? compile the complete openelec or only the boblightd addon?
(This post was last modified: 2012-03-18 13:50 by phil65.)
find quote
schumi2004 Offline
Fan
Posts: 642
Joined: Aug 2011
Reputation: 4
Post: #260
@phil65
I'm trying to compile libboblight.so which i'll hope will work on OpenELEC x86_64.
I have tried several installs to get XBMC Boblight working on OE x86_64 but they all failed. Always missing library, so i thought compiling one for x86_64 myself since some users report they got it working on 64bits systems.

Compiling went fine now on my Ubuntu 10.10 system only didn't get the expected *.so file (only got libboblight.la and *.a) but that i will figure out. (I'm a linux noob so can take a while Wink )
Thanks for helping.

EDIT:
I tried it again and it returned the following error (revision 420):
Code:
In file included from clients/boblight-v4l/videograbber.h:41,
                 from clients/boblight-v4l/boblight-v4l.cpp:28:
/usr/include/libavcodec/avcodec.h:1288: error: use of enum ‘AVMediaType’ without previous declaration
/usr/include/libavcodec/avcodec.h:2668: error: use of enum ‘AVMediaType’ without previous declaration
/usr/include/libavcodec/avcodec.h:2714: error: use of enum ‘AVMediaType’ without previous declaration
/usr/include/libavcodec/avcodec.h:3252: error: use of enum ‘AVMediaType’ without previous declaration
/usr/include/libavcodec/avcodec.h:3265: error: use of enum ‘AVMediaType’ without previous declaration
In file included from clients/boblight-v4l/videograbber.h:42,
                 from clients/boblight-v4l/boblight-v4l.cpp:28:
/usr/include/libavformat/avformat.h:813: error: use of enum ‘AVMediaType’ without previous declaration
make[2]: *** [boblight-v4l.o] Error 1
make[2]: Leaving directory `/home/openelec/testttttt/trunk/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/openelec/testttttt/trunk'
make: *** [all] Error 2
Any suggestions?

EDIT2:
Revision 400 seems to work fine.

[Image: watched-clearlogo.jpg]
(This post was last modified: 2012-03-18 19:03 by schumi2004.)
find quote
Post Reply