hyperion.ng: lightpack doesnt work
- I confirm that this is an issue rather than a question.
Bug report
hello
my lightpack is connected but no lights on. (work well with prismatik)
this error in log :
2020-09-21T19:03:20.269Z [hyperiond LEDDEVICE] (ERROR) Unable to write 61 bytes to Lightpack device(-1): LIBUSB_ERROR_IO
Steps to reproduce
What is expected?
What is actually happening?
System
Hyperion Server:
- Build: (HEAD detached at 08909b8a) (Paulchen-Panther-75963ca9/08909b8a-1600115237)
- Build time: Sep 14 2020 20:32:45
- Git Remote: https://github.com/hyperion-project/hyperion.ng
- Version: 2.0.0-alpha.8
- UI Lang: auto (BrowserLang: fr)
- UI Access: default
- Avail Capt: v4l2,framebuffer,x11,xcb,qt
Hyperion Server OS:
- Distribution: Ubuntu 20.04.1 LTS
- Arch: x86_64
- Kernel: linux (5.4.0-47-generic (WS: 64))
- Browser: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 3
- Comments: 19 (7 by maintainers)
Commits related to this issue
- Fix #1015 — committed to Lord-Grey/hyperion.ng by Lord-Grey 4 years ago
- Fix #1015 - Fix Lightpack / Remove Multi-Lightpack (#1049) — committed to hyperion-project/hyperion.ng by Lord-Grey 4 years ago
For me:
confirmed, no other change than passing the desired version to the
libreelec.sh
script:./libreelec.sh 2.0.0-alpha.6
can compile and run, already did that
@Lord-Grey awesome, it works! 🎉
Here are the logs:
@pdecat Could you check, what the following refactored code does?
https://ufile.io/9n4lpj65
Extract the two files in the hyperion home directory and compile.
Many thanks! PS: Please share the log output after your test.
Thanks for highlighting. The “old” debug routine was marked as deprecated, so I used the latest version… Anyway that statement will be removed/disabled in the final version.
Sure, no problem for further testing.
Disabling then re-enabling the LED device in Remote Control page works fine with the patched version.
@pdecat Hey, that is great to hear and thanks for the test. I may need to do some additional refactoring, ensuring that the Multi-Lightpack device works too and things get simpler. It will get back for testing to you again, if it is ok with you?
In the meantime, could you also test, if disabling and then enabling the device via the “Remote Control” page in the UI works well too? The main changes I did before (the device failed), were to be able to disable and enable a device and it catches up again properly.
@pdecat Thank you! I think I found a problem… During refactoring, I am opening the device two times… Let me clean-up the code and get it ready for a test at your end.