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

SOLVED RPi 4 + WS2813 Hyperion.ng not working

Discussion in 'Software Support' started by Chris021, 1 August 2020.

  1. Chris021

    Chris021 New Member

    Messages:
    7
    Hardware:
    RPi3
    Hi all,

    I am trying to make my Raspberry Pi 4 with WS2813 LED and HyperBian installed to work for several days now, but I can't seem to succeed and am a bit lost where to problem lies.

    This is my setup:
    - Rasperry Pi 4
    - WS2813 Led strip (60/M) https://nl.aliexpress.com/item/32699391341.html?spm=a2g0s.9042311.0.0.33f14c4di8D4yd
    - PSU DC5V 20A https://nl.aliexpress.com/item/32998643643.html?spm=a2g0s.12269583.0.0.69962f584xtkpW
    - HDMI Splitter 4K FeinTech https://www.amazon.nl/FeinTech-VSP0...ocphy=1010625&hvtargid=pla-815218036942&psc=1
    - HDMI Video Grabber USB 2.0 https://www.ebay.nl/itm/HDMI-Composite-USB-2-0-Grabber-UTV007-Videograbber-Raspberry-Pi-PC-Hyperion/113691601989?ssPageName=STRK:MEBIDX:IT&_trksid=p2060353.m2749.l2649

    Hyperion configuration:
    - HyperBian installed on RPi 4 and RPi 3B+ (no difference)
    - Hyperion.ng (alpha 7) web interface connects
    - Configured LEDs (RPi PWM | ws281x) | RGB | GPIO 18 | DMA 10 | PWM 0
    - Capturing Hardware set to USB Capture, device found (AV TO USB 2.0) | Input Camera 1 | PAL | Automatic | FPS 30
    - Remote control, source selection and active is Origin system | USB capture (V4L2:/dev/video0)
    - No effects are set

    Steps taken/findings:
    - I tried to clean install LibreElec with Hyperion.ng but cannot reach the web interface (Page not found)
    - I can run the jgarff/rpi_ws281x library and when testing all LEDs operate normally
    - When trying to activate the LED device (on|off switch) in components control it turns on, but the moment I return to Dashboard (component status) it is off again.
    - Old Hyperion does not recognize the USB Grabber (VIDIOC_S_STD ERROR 25)

    All hardware seems to function properly with the new Hyperion.ng, so I cannot find the problem and would love to get some help for my setup. If you need additional information, please let me know.

    Thanks in advance for a reaction!
     

    Attached Files:

    Last edited: 1 August 2020
  2. Chris021

    Chris021 New Member

    Messages:
    7
    Hardware:
    RPi3
    Hereby the USB capture config
     

    Attached Files:

  3. Paulchen-Panther

    Paulchen-Panther Active Member Staff Member Developer

    Messages:
    718
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +Arduino
  4. Chris021

    Chris021 New Member

    Messages:
    7
    Hardware:
    RPi3
    Thanks for the quick reaction, NG with LibreElec on the Pi 4 is now working.

    For the HyperBian (Pi 3) log I don't know exactly which log you mean. In the web interface there are no log messages available, which ever log level I try to set.
    I can send an SSH log if that is relevant.

    The Pi 4 with LibreElec now has platform capture (default) and LED device turned on, while the LEDs are connected to the HyperBian Pi 3.
     
  5. Paulchen-Panther

    Paulchen-Panther Active Member Staff Member Developer

    Messages:
    718
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +Arduino
    On HyperBian via SSH:
    Code:
    systemctl status [email protected]
     
  6. Paulchen-Panther

    Paulchen-Panther Active Member Staff Member Developer

    Messages:
    718
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +Arduino
  7. Chris021

    Chris021 New Member

    Messages:
    7
    Hardware:
    RPi3
    lines 1-12/12 (END)...skipping...
    [email protected] - Hyperion ambient light systemd service for user pi
    Loaded: loaded (/etc/systemd/system/[email protected]; enabled; vendor preset: enabled)
    Active: active (running) since Sat 2020-08-01 11:51:34 BST; 17min ago
    Main PID: 553 (hyperiond)
    Tasks: 15 (limit: 2068)
    CGroup: /system.slice/system-hyperiond.slice/[email protected]
    └─553 /usr/bin/hyperiond
    Aug 01 11:51:34 HyperBian systemd[1]: Started Hyperion ambient light systemd service for user pi.
    Aug 01 11:51:36 HyperBian hyperiond[553]: Can't open /dev/mem: Permission denied
    Aug 01 11:51:36 HyperBian hyperiond[553]: 2020-08-01T11:51:36.034 hyperiond LEDDEVICE : <ERROR> Device disabled, device 'ws281x' signals error: 'Failed to open. Error message: mmap() failed'
    Aug 01 11:51:36 HyperBian [553]: Device disabled, device 'ws281x' signals error: 'Failed to open. Error message: mmap() failed'

    Seems like I just didn't have enough permission....
    Can you tell me how to run HyperBian as root or provide pi with enough permissions?
    I am no command line expert, sorry.
     
    Last edited: 1 August 2020
  8. Lord-Grey

    Lord-Grey Member Staff Member Developer

    Messages:
    92
    Hardware:
    RPi3, 32/64bit
    You need to run hyperion as root with this configuration (device 'ws281x)
     
  9. Paulchen-Panther

    Paulchen-Panther Active Member Staff Member Developer

    Messages:
    718
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +Arduino
  10. Paulchen-Panther

    Paulchen-Panther Active Member Staff Member Developer

    Messages:
    718
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +Arduino
    The systemd service file to edit is located at: /etc/systemd/system/[email protected]
    Edit it with:
    Code:
    sudo nano /etc/systemd/system/[email protected]
    Remove the User session and save with CTRL+O and exit CTRL+x.
    Don't forget to reboot
     
    • Like Like x 1
  11. Chris021

    Chris021 New Member

    Messages:
    7
    Hardware:
    RPi3
    It seems to be working now, thanks a lot guys!!
     
    • Like Like x 2
  12. Tomasz

    Tomasz New Member

    Messages:
    4
    Hello Guys,

    Don't want to make a new topic, but i have some issues.

    My hardware is:

    PI 3 model B
    Adurino
    WS2812B
    Video grabber
    HDMI splitter.

    After instalation of libreelec I did install hyperion from this tutorial: https://www.digitalewelt.at/hyperion-ng-hyperion-v2-0-alpha-installieren/#

    When installation is completed im trying to reach the hyperion over the web browser.
    Unfortunately i got message that server refused my connecion. Im completly new in this and i feel like child in fog :)

    Forgive me my broken english - doing my best!
     
  13. Chris021

    Chris021 New Member

    Messages:
    7
    Hardware:
    RPi3
    Hi Thomas,

    Look at this thread:

    https://hyperion-project.org/thread...ffiziell-unofficially.10463/page-3#post-26614

    After that your web interface should hopefully work again.
     
    Last edited: 7 August 2020 at 10:47
  14. Tomasz

    Tomasz New Member

    Messages:
    4
    Thank you! But page does not exists anymore.
     
  15. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,702
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    • Like Like x 2
  16. Chris021

    Chris021 New Member

    Messages:
    7
    Hardware:
    RPi3
    Weird my link didn't copy the right way, thanks for helping TPmodding!
     
    • Like Like x 1