1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SOLVED V4L2: Add shutdown detection

Discussion in 'Feature Requests' started by Brindosch, 1 June 2016.

  1. peter

    peter Member

    RPi1/Zero, RPi2, RPi3
    hi there, my no signal detection works ok, after 5 seconds it turns off leds. But I found out that after 9 hours and 9 minutes leds starts to light bright blue again with slow pulsating blue in the start and end part of my led strip. Any idea why leds come blue again after approx. 9hours and 9 minutes? (no input video source is connected)

    My values v4l2:
    width 360, height 288, crop-top 5, crop-bottom 5, crop-left 12, crop-right 12, frame-decimator 2, size-decimator 8, red-threshold 0.2, green-threshold 0.4, blue-threshold 1.0
  2. andirs

    andirs New Member

    Hello everyone,

    attached is my "No Signal" picture.
    With the following settings i don't get the LEDs to shut down:

    "redSignalThreshold" : 0.1,
    "greenSignalThreshold" : 0.1,
    "blueSignalThreshold" : 1.0,
    "signalDetectionVerticalOffsetMin" : 0.55,
    "signalDetectionHorizontalOffsetMin" : 0.81,
    "signalDetectionVerticalOffsetMax" : 0.55,
    "signalDetectionHorizontalOffsetMax" : 0.82
    I try to capture the blue stripe there. The LEDs fade out if i put every Threshold to 1.0, but if i put e.g. red to 0.999 or green to 0.999 with blue at 1.0 the LEDs stay on.

    Can somebody help?

    Attached Files:

  3. redPanther

    redPanther Active Member

    RPi1/Zero, RPi2, 32/64bit, +Arduino
    this feature doesn't work with current hyperion. It is implemented in currently not released next big version currently called "hyperion.ng". You have to wait until we make a release ...
    • Like Like x 1
  4. Akriss

    Akriss Active Member

    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    I have been using Hyperion.NG for a couple of weeks, It's working very well. The signal detection is a very nice addition. I'm still learning/tweaking the signal detection setting, and trying to get the best results. Thanks for this feature.

    If it's possible.
    I would ask if a user adjustable timer for the detection timeout could be added? I'm finding that its a bit trigger happy sometimes.

    Many Thanks
  5. Akriss

    Akriss Active Member

    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    I don't code. However I like to read code in the attempt to learn something new. I was poking around the code. Specifically V4L2Grabber.cpp. And I noticed a new bit of code in it referring to "noSignalCounterThreshold" and "noSignalCounter".

    Is this counting fifty (50) times of no signal (rainbow or solid color) and then activating the effects ?

    I've not had signal detection on in Hyperion.NG in a wile, I had a power tail and opted to have them off wile the TV is off. However if my gleaning is correct. I'll re enable it =)