You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm using the common ws2801 leds in a x86-64 system. The easiest way that I found to use it was to use this hack with usbasp. It works perfectly, it is especially confortable because the USBASP are small. But, there is a unconformable problem for me. When the USB is disconnected, usually because the computer is moved a little bit and the usb loses the connection for a while, the hyperiond give this error:
Error while writing data to Hyperion led controller (LIBUSB_ERROR_NO_DEVICE)
But it doesn't stop. And systemd has no error signal. For systemd the status is "Active: active (running)". For this reason, it is not automatic restarted. And I should restarted for myself.
Is there any way to autorestart?
The text was updated successfully, but these errors were encountered:
Well, I found a way to restart the hyperion using udevrules: when the usb is reconnected, the udev kill the previous hyperiond. If the systemd unit has auto-restart on fail, it is restarted and all works again. I changed the group of the USBAVP to uucp and introduce the user that launch kodi to control hyperiond with kodi.
/etc/udev/rules.d/99-USBasp.rules # Set Group for USBasp SUBSYSTEM=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="05dc", GROUP="uucp", RUN="/usr/local/bin/kill_hyperion"
/usr/local/bin/kill_hyperion (group uucp and the proper permissions!): #!/bin/bash kill -9 `ps -aux | grep hyperiond | awk '{print $2}'`
Hi,
I'm using the common ws2801 leds in a x86-64 system. The easiest way that I found to use it was to use this hack with usbasp. It works perfectly, it is especially confortable because the USBASP are small. But, there is a unconformable problem for me. When the USB is disconnected, usually because the computer is moved a little bit and the usb loses the connection for a while, the hyperiond give this error:
Error while writing data to Hyperion led controller (LIBUSB_ERROR_NO_DEVICE)
But it doesn't stop. And systemd has no error signal. For systemd the status is "Active: active (running)". For this reason, it is not automatic restarted. And I should restarted for myself.
Is there any way to autorestart?
The text was updated successfully, but these errors were encountered: