works sometimes only after reload
tpmodding opened this issue · 4 comments
problem is here descirbed
https://hyperion-project.org/threads/hyperion-control.4442/
Mir wurde schon mehrfach berichtet sowie auch bei mir festgestellt das des öfteren die LEDs nach dem Starten an bleiben. In Hyperion Control ist aber die Funktion aktiviert “ Aktiviere Hyperion beim Starten" und "Deaktiviere Hyperion beim Beenden".
Was ist mit "an" bleiben gemeint? Wenn Hyperion aktiviert wird beim Starten, dann sollten die LEDs auch angehen, sofern das LedDevice an war.
I had a similar problem (pls let me know if you need a German translation):
Problem:
If the hyperion service is started before the Kodi UI is fully up, both menu detection and border detection is broken:
- if menu detection is on (
"grabMenu" : false
is set for"xbmcVideoChecker"
), then the LEDs don't turn on once a video is started - even with
"grabMenu" : true
, the black border detection does not work i.e. LEDs at top and bottom of screen stay off when a video with black borders is played.
Workaround:
Both issues described above are gone if the hyperion service starts a bit later when the kodi UI is up.
example of how this can be implemented with a systemd unit.
System info:
- Raspberry pi 4B 2GB
- libreelec 9.2.0
- vanilla hyperion installation, installed March 14 (also occurs with libreelec hyperion addon v 9.2.0.112)
- WS2812 LEDs with adalight
Here is a log where the problem occurs (note the last two lines):
Mar 15 13:18:29 KodiWohnZ systemd[1]: Starting Hyperion service...
Mar 15 13:18:29 KodiWohnZ systemd[1]: Started Hyperion service.
Mar 15 13:18:29 KodiWohnZ sh[343]: Hyperion Ambilight Deamon (349)
Mar 15 13:18:29 KodiWohnZ sh[343]: Version : fb413cd7e8825ffc26925013f57ac93a774f12bc
Mar 15 13:18:29 KodiWohnZ sh[343]: Build Time: Feb 4 2020 01:20:44
Mar 15 13:18:29 KodiWohnZ sh[343]: INFO: Selected configuration file: /storage/.kodi/userdata/addon_data/service.hyperio
Mar 15 13:18:29 KodiWohnZ sh[343]: HYPERION INFO: ColorTransform 'default' => [0; 179]
Mar 15 13:18:29 KodiWohnZ sh[343]: HYPERION INFO: ColorCorrection 'default' => [0; 179]
Mar 15 13:18:29 KodiWohnZ sh[343]: HYPERION INFO: ColorAdjustment 'default' => [0; 179]
Mar 15 13:18:29 KodiWohnZ sh[343]: LEDDEVICE INFO: configuration:
Mar 15 13:18:29 KodiWohnZ sh[343]: {
Mar 15 13:18:29 KodiWohnZ sh[343]: "colorOrder" : "rgb",
Mar 15 13:18:29 KodiWohnZ sh[343]: "delayAfterConnect" : 0,
Mar 15 13:18:29 KodiWohnZ sh[343]: "name" : "MyHyperionConfig",
Mar 15 13:18:29 KodiWohnZ sh[343]: "output" : "/dev/ttyUSB0",
Mar 15 13:18:29 KodiWohnZ sh[343]: "rate" : 115200,
Mar 15 13:18:29 KodiWohnZ sh[343]: "type" : "adalight"
Mar 15 13:18:29 KodiWohnZ sh[343]: }
Mar 15 13:18:29 KodiWohnZ sh[343]: Opening UART: /dev/ttyUSB0
Mar 15 13:18:29 KodiWohnZ sh[343]: INFO: Creating linear smoothing
Mar 15 13:18:29 KodiWohnZ sh[343]: HYPERION (CS) INFO: Created linear-smoothing(interval_ms=33;settlingTime_ms=600;updat
Mar 15 13:18:29 KodiWohnZ sh[343]: EFFECTENGINE INFO: 27 effects loaded from directory /storage/.kodi/addons/service.hyp
Mar 15 13:18:29 KodiWohnZ sh[343]: EFFECTENGINE INFO: Initializing Python interpreter
Mar 15 13:18:29 KodiWohnZ sh[343]: INFO: Hyperion started and initialised
Mar 15 13:18:29 KodiWohnZ sh[343]: INFO: Boot sequence 'Rainbow swirl fast' EFFECTENGINE INFO: run effect Rainbow swirl
Mar 15 13:18:29 KodiWohnZ sh[343]: BLACKBORDER INFO: threshold set to 0 (0)
Mar 15 13:18:29 KodiWohnZ sh[343]: BLACKBORDER INFO: mode:default
Mar 15 13:18:29 KodiWohnZ sh[343]: started
Mar 15 13:18:29 KodiWohnZ sh[343]: INFO: Kodi checker created and started
Mar 15 13:18:29 KodiWohnZ sh[343]: INFO: Json server created and started on port 19444
Mar 15 13:18:29 KodiWohnZ sh[343]: INFO: Proto server created and started on port 19445
Mar 15 13:18:29 KodiWohnZ sh[343]: QtHttpServer started on port 8192 "Qt Static HTTP File Server"
Mar 15 13:18:29 KodiWohnZ sh[343]: DISPMANXGRABBER INFO: Display opened with resolution: 1920x1080
Mar 15 13:18:29 KodiWohnZ sh[343]: BLACKBORDER INFO: threshold set to 0 (0)
Mar 15 13:18:29 KodiWohnZ sh[343]: BLACKBORDER INFO: mode:default
Mar 15 13:18:29 KodiWohnZ sh[343]: INFO: Frame grabber created and started
Mar 15 13:18:29 KodiWohnZ sh[343]: KODICHECK ERROR: Kodi Connection error (0)
Mar 15 13:18:29 KodiWohnZ sh[343]: BORDER SWITCH REQUIRED!!
And here a log with the workaround active:
Mar 15 13:08:16 KodiWohnZ systemd[1]: Starting Hyperion service...
Mar 15 13:08:21 KodiWohnZ systemd[1]: Started Hyperion service.
Mar 15 13:08:21 KodiWohnZ sh[393]: Hyperion Ambilight Deamon (396)
Mar 15 13:08:21 KodiWohnZ sh[393]: Version : fb413cd7e8825ffc26925013f57ac93a774f12bc
Mar 15 13:08:21 KodiWohnZ sh[393]: Build Time: Feb 4 2020 01:20:44
Mar 15 13:08:21 KodiWohnZ sh[393]: INFO: Selected configuration file: /storage/.kodi/userdata/addon_data/service.hyperio
Mar 15 13:08:21 KodiWohnZ sh[393]: HYPERION INFO: ColorTransform 'default' => [0; 179]
Mar 15 13:08:21 KodiWohnZ sh[393]: HYPERION INFO: ColorCorrection 'default' => [0; 179]
Mar 15 13:08:21 KodiWohnZ sh[393]: HYPERION INFO: ColorAdjustment 'default' => [0; 179]
Mar 15 13:08:21 KodiWohnZ sh[393]: LEDDEVICE INFO: configuration:
Mar 15 13:08:21 KodiWohnZ sh[393]: {
Mar 15 13:08:21 KodiWohnZ sh[393]: "colorOrder" : "rgb",
Mar 15 13:08:21 KodiWohnZ sh[393]: "delayAfterConnect" : 0,
Mar 15 13:08:21 KodiWohnZ sh[393]: "name" : "MyHyperionConfig",
Mar 15 13:08:21 KodiWohnZ sh[393]: "output" : "/dev/ttyUSB0",
Mar 15 13:08:21 KodiWohnZ sh[393]: "rate" : 115200,
Mar 15 13:08:21 KodiWohnZ sh[393]: "type" : "adalight"
Mar 15 13:08:21 KodiWohnZ sh[393]: }
Mar 15 13:08:21 KodiWohnZ sh[393]: Opening UART: /dev/ttyUSB0
Mar 15 13:08:21 KodiWohnZ sh[393]: INFO: Creating linear smoothing
Mar 15 13:08:21 KodiWohnZ sh[393]: HYPERION (CS) INFO: Created linear-smoothing(interval_ms=33;settlingTime_ms=600;updat
Mar 15 13:08:21 KodiWohnZ sh[393]: EFFECTENGINE INFO: 27 effects loaded from directory /storage/.kodi/addons/service.hyp
Mar 15 13:08:21 KodiWohnZ sh[393]: EFFECTENGINE INFO: Initializing Python interpreter
Mar 15 13:08:21 KodiWohnZ sh[393]: INFO: Hyperion started and initialised
Mar 15 13:08:21 KodiWohnZ sh[393]: INFO: Boot sequence 'Rainbow swirl fast' EFFECTENGINE INFO: run effect Rainbow swirl
Mar 15 13:08:21 KodiWohnZ sh[393]: BLACKBORDER INFO: threshold set to 0 (0)
Mar 15 13:08:21 KodiWohnZ sh[393]: BLACKBORDER INFO: mode:default
Mar 15 13:08:21 KodiWohnZ sh[393]: started
Mar 15 13:08:21 KodiWohnZ sh[393]: INFO: Kodi checker created and started
Mar 15 13:08:21 KodiWohnZ sh[393]: INFO: Json server created and started on port 19444
Mar 15 13:08:21 KodiWohnZ sh[393]: INFO: Proto server created and started on port 19445
Mar 15 13:08:22 KodiWohnZ sh[393]: QtHttpServer started on port 53248 "Qt Static HTTP File Server"
Mar 15 13:08:22 KodiWohnZ sh[393]: DISPMANXGRABBER INFO: Display opened with resolution: 1920x1080
Mar 15 13:08:22 KodiWohnZ sh[393]: BLACKBORDER INFO: threshold set to 0 (0)
Mar 15 13:08:22 KodiWohnZ sh[393]: BLACKBORDER INFO: mode:default
Mar 15 13:08:22 KodiWohnZ sh[393]: INFO: Frame grabber created and started
Mar 15 13:08:22 KodiWohnZ sh[393]: KODICHECK INFO: Kodi Connected
Mar 15 13:08:22 KodiWohnZ sh[393]: KODICHECK INFO: switching to OFF mode
Thank you for your feedback
Are you using hyperion or a very old version of hyperion.ng? The classic Hyperion has no API available for this addon.