Hyperion autostart automatically

  • hi everyone,
    I have set ambilight hyperion with libreelec but I have a concern.
    If I power Rpi off, after restarting, hyperion does not start automatically, i need to go through hyperion creator again and start it manually. It’s quite tidious.
    Is there any command via putty or edit autostart.sh file to set hyperion autostarts after power off?
    Thank you so much!

  • From a ssh terminal try:

    Code
    systemctl enable service.hyperion.service


    If it still does not start, what are the results from:

    Code
    systemctl status service.hyperion.service


    It's possible that adding:

    Code
    RestartSec=15


    to the startup service file might help as well.

  • I have just tested it without success.


    This is my config:


    [Unit]
    Description=Hyperion Systemd service


    [Service]
    Type=simple
    User=root
    Group=root
    UMask=007
    ExecStart=/usr/bin/hyperiond /etc/hyperion/hyperion.config.json
    ExecReload=/bin/kill -HUP $MAINPID
    Restart=on-failure
    TimeoutStopSec=10
    RestartSec=20


    [Install]
    WantedBy=multi-user.target


    Anybody having further ideas?


    If I open a console and enter:


    sudo killall hyperiond
    sudo service hyperion start
    nohup hyperion-v4l2 &


    ... it starts immediately.

  • Are you positive that the service file it's enabled at startup?


    Running,

    Code
    systemctl status service.hyperion.service


    After a failed startup, could uncover or hint to what is going wrong.

  • I had the same problem. My initial work around was to install "Raspberry SSH Lite" on my phone and assign one button to "kill hyperiod" and another button to "systemctl start hyperion.service" which worked fine. My final fix was to replace the OS with Jessie and autostart on reboot is fine. for what's worth. Stretch also has the same issue with restart after reboot.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!