I need to switch on -> off -> on the "Capturing Hardware" for it to work

  • Hello,
    First, I'm sorry because I don't know if I'm in the right category, I don't know if it's an hardware or software problem...

    I created my own "ambilight" with a Rasperry Pi 1 (model 2011), apa102 leds, HDMI Splitter and a USB Video Capture.
    I use Hyberbian on my rasperry.


    It works and the result is impressive !


    But, I'v a problem... When I reboot the Rasperry, it doesn't work anymore.
    To fix it, I have to go to the "Capturing Hardware" category (in the hyperion web interface), uncheck then recheck the "Activate" field.
    After that, it works again, but I have to do this every time I restart.


    Do you have any idea where the problem comes from?


    This is the logs after a boot : https://pastebin.com/2RvTw10i


    Thank you :)

    • Official Post

    The issue is that when Hyperion is started, the USB Grabber is not yet available to be used.


    2024-06-14T20:55:47.812Z [V4L2] (DEBUG) (V4L2Grabber.cpp:141:init()) Configured device at '/dev/video0' is not available.


    Maybe you check, how a service dependency on the gabber can be added.

  • I fixed it by adding a delay on the script wich start the hyperion service (/etc/systemd/system/hyperion.service)

    Code
    [Service]
    ExecStartPre=/bin/sleep 30
    ExecStart=/usr/bin/hyperiond



    I don't know if it's the best solution, but I don't know what are you talking about a "service dependency" on my grabber.

    Anyway, thank you for you help, thank to you I know the problem is my grabber is not ready quickly enough.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!