gkaindl / ambi-tv

a flexible ambilight clone for embedded linux
295 stars 85 forks source link

Anyway to automatically disable lights when no input? #82

Open danrspencer opened 9 years ago

danrspencer commented 9 years ago

For some reason my lights default to a vivid blue when there's no HDMI input (and even worse it's not a solid blue - it flickers quite a bit).

Is there a reason for this and any easy way to disable it? Ideally if I've got no active input I'd like the lights to be off.

pcr-coding commented 9 years ago

The blue comes from the HDMI->Composite module I think (I don't get it from another composite source like from a TV). I myself turn the leds off with the hardware button or with my smartphone (yes I'm lazy:).

To turn it off automatically you could enhance the edge color processor by turning leds off when the average color of the whole video frame is blue. It's not possible to check the composite for signal or no signal, because blue is a signal. But you will run into problems if it flickers, because checking for blue won't prevent the flickering, you would need a threshold or something to keep it of. Mine isn't flickering by the way but I know the connectors of the HDMI->Composite are bad make sure they are connected well.

danrspencer commented 9 years ago

Fiddling with the Composite connectors solved the flickering issue, thanks! Although instead of ensuring they were connecting well I pulled the connection apart slightly so that only the pin is connected and not the grounded ring.

ghgoldberg commented 9 years ago

That sounds like extremely bad practice. It looks like you have a ground issue. Pay attention to assure that you have a common ground for the entire system.

(So much time is wasted by many in this forum by failing to maintain a common ground. It has been discussed previously here.)

G-

From: Dan Spencer [mailto:notifications@github.com] Sent: Friday, January 09, 2015 10:09 AM To: gkaindl/ambi-tv Subject: Re: [ambi-tv] Anyway to automatically disable lights when no input? (#82)

Fiddling with the Composite connectors solved the flickering issue, thanks! Although instead of ensuring they were connecting well I pulled the connection apart slightly so that only the pin is connected and not the grounded ring.

— Reply to this email directly or view it on GitHub https://github.com/gkaindl/ambi-tv/issues/82#issuecomment-69345941 . https://github.com/notifications/beacon/AGOSfAqEqjSRLeotXFgPElONJfSkziq-ks5nf-Z_gaJpZM4DL68Q.gif