Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LED stays black at Alpha Version 9 #1098

Closed
1 task done
N1c093 opened this issue Nov 20, 2020 · 8 comments · Fixed by #1295
Closed
1 task done

LED stays black at Alpha Version 9 #1098

N1c093 opened this issue Nov 20, 2020 · 8 comments · Fixed by #1295
Assignees
Labels

Comments

@N1c093
Copy link

N1c093 commented Nov 20, 2020

  • I confirm that this is an issue rather than a question.

Bug report

After the upgrade to Alpha Version 9 my LED "ws2801" stays black.
The LED also stay black, if I set a color manually.

When I downgrade to Alpha 8 everything runs fine again.

Do you need more log files or somethin else?

Steps to reproduce

Upgrade to Alpha 9

What is expected?

LEDs should light up, for example the "Warm mood blobs" effect

What is actually happening?

Nothing, LED stays black

System

- Build:           (HEAD detached at 83338dc3) (Paulchen Panther-ca50487e/83338dc3-1605733041)
- Build time:      Nov 18 2020 21:34:12
- Git Remote:      https://github.com/hyperion-project/hyperion.ng
- Version:         2.0.0-alpha.9
- UI Lang:         auto (BrowserLang: de-DE)
- UI Access:       default
- Avail Capt:      dispmanx,v4l2,framebuffer,qt
- Database:        read/write

Hyperion Server OS: 
- Distribution:   Raspbian GNU/Linux 10 (buster)
- Architecture:   arm
- CPU Model:      ARMv7 Processor rev 4 (v7l)
- CPU Type:       Raspberry Pi 3 Model B Rev 1.2
- CPU Revision:   a22082
- CPU Hardware:   BCM2835
- Kernel:         linux (4.19.118-v7+ (WS: 32))
- Qt Version:     5.7.1
- Python Version: 3.5.3
- Browser:        Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36 

Debug-Log

 2020-11-20T12:46:57.004Z [hyperiond DAEMON] (INFO) CEC handler created
 2020-11-20T12:46:57.019Z [hyperiond EFFECTFILES] (INFO) 39 effects loaded from directory :/effects/
 2020-11-20T12:46:57.025Z [hyperiond EFFECTFILES] (INFO) 22 effect schemas loaded from directory :/effects/schema/
 2020-11-20T12:46:57.026Z [hyperiond EFFECTFILES] (INFO) 1 effects loaded from directory /home/pi/.hyperion/custom-effects
 2020-11-20T12:46:57.080Z [hyperiond SETTINGSMGR] (DEBUG) (SettingsManager.cpp:109:SettingsManager()) Settings database initialized
 2020-11-20T12:46:57.083Z [hyperiond BLACKBORDER] (DEBUG) (BlackBorderProcessor.cpp:64:handleSettingsUpdate()) Set mode to: default
 2020-11-20T12:46:57.083Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:36:setNewComponentState()) Blackborder detector: enabled
 2020-11-20T12:46:57.250Z [hyperiond DAEMON] (INFO) set screen capture device to 'dispmanx'
 2020-11-20T12:46:57.250Z [hyperiond DISPMANXGRABBER] (DEBUG) (Grabber.cpp:30:setVideoMode()) Set videomode to 0
 2020-11-20T12:46:57.252Z [hyperiond DISPMANXGRABBER] (INFO) Display opened with resolution: 720x480
 2020-11-20T12:46:57.252Z [hyperiond DISPMANXGRABBER] (DEBUG) (Grabber.cpp:90:setWidthHeight()) Set new width: 80, height: 45 for capture
 2020-11-20T12:46:57.253Z [hyperiond DAEMON] (INFO) DISPMANX frame grabber created
 2020-11-20T12:46:57.254Z [hyperiond V4L2:/DEV/VIDEO0] (DEBUG) (Grabber.cpp:30:setVideoMode()) Set videomode to 0
 2020-11-20T12:46:57.349Z [hyperiond V4L2:/DEV/VIDEO0] (INFO) Signal threshold set to: {12, 255, 38}
 2020-11-20T12:46:57.350Z [hyperiond V4L2:/DEV/VIDEO0] (INFO) Cropping image: width=0 height=0; crop: left=0 right=0 top=5 bottom=5 
 2020-11-20T12:46:57.350Z [hyperiond V4L2:/DEV/VIDEO0] (INFO) CEC detection is now disabled
 2020-11-20T12:46:57.350Z [hyperiond V4L2:/DEV/VIDEO0] (INFO) Signal detection is now disabled
 2020-11-20T12:46:57.350Z [hyperiond V4L2:/DEV/VIDEO0] (INFO) Signal detection area set to: 0.380000,0.250000 x 0.500000,0.730000
 2020-11-20T12:46:57.351Z [hyperiond DAEMON] (DEBUG) (hyperiond.cpp:630:handleSettingsUpdate()) V4L2 grabber created
 2020-11-20T12:46:57.352Z [hyperiond JSONSERVER] (DEBUG) (JsonServer.cpp:28:JsonServer()) Created instance
 2020-11-20T12:46:57.353Z [hyperiond JSONSERVER] (INFO) Started on port 19444
 2020-11-20T12:46:57.270Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:36:setNewComponentState()) Smoothing: enabled
 2020-11-20T12:46:57.271Z [hyperiond SMOOTHING] (DEBUG) (LinearColorSmoothing.cpp:701:selectConfig()) cfg [0]:  Type: linear - Time: 200 ms, outputRate 25.000000 Hz, interpolationRate: 25.000000 Hz, timer: 40 ms, Dithering: 0, Decay: 1.000000 -> HalfTime: 100.000000 ms
 2020-11-20T12:46:57.271Z [hyperiond LEDDEVICE] (INFO) Start LedDevice 'ws2801'.
 2020-11-20T12:46:57.272Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:148:init()) deviceConfig: [{"colorOrder":"rgb","currentLedCount":114,"hardwareLedCount":114,"invert":false,"latchTime":0,"output":"/dev/spidev0.0","rate":1e+06,"rewriteTime":1000,"type":"ws2801"}]
 2020-11-20T12:46:57.272Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:407:setLatchTime()) LatchTime updated to 0ms
 2020-11-20T12:46:57.272Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:428:setRewriteTime()) Refresh interval = 1000ms
 2020-11-20T12:46:57.272Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:434:setRewriteTime()) RewriteTime updated to 1000ms
 2020-11-20T12:46:57.272Z [hyperiond LEDDEVICE] (DEBUG) (ProviderSpi.cpp:45:init()) _baudRate_Hz [1000000], _latchTime_ms [0]
 2020-11-20T12:46:57.273Z [hyperiond SMOOTHING] (DEBUG) (LinearColorSmoothing.cpp:701:selectConfig()) Previous line repeats 1 times
 2020-11-20T12:46:57.273Z [hyperiond LEDDEVICE] (DEBUG) (ProviderSpi.cpp:46:init()) _spiDataInvert [0], _spiMode [0]
 2020-11-20T12:46:57.273Z [hyperiond FLATBUFCONN] (INFO) Connecting to Hyperion: 127.0.0.1:19401
 2020-11-20T12:46:57.275Z [hyperiond EFFECTENGINE] (INFO) Run effect "Warm mood blobs" on channel 254
 2020-11-20T12:46:57.276Z [hyperiond EFFECTENGINE] (DEBUG) (EffectEngine.cpp:183:runEffectScript()) Start the effect: name [Warm mood blobs], smoothCfg [2]
 2020-11-20T12:46:57.277Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:161:registerInput()) Register new input 'System/EFFECT' with priority 254 as inactive
 2020-11-20T12:46:57.277Z [hyperiond HYPERION] (INFO) Initial background effect 'Warm mood blobs' started
 2020-11-20T12:46:57.278Z [hyperiond BOBLIGHT] (DEBUG) (BoblightServer.cpp:28:BoblightServer()) Instance created
 2020-11-20T12:46:57.389Z [hyperiond HYPERION] (INFO) Hyperion instance 'First LED Hardware instance' has been started
 2020-11-20T12:46:57.279Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:36:setNewComponentState()) LED device: enabled
 2020-11-20T12:46:57.377Z [hyperiond FLATBUFSERVER] (INFO) Started on port 19400
 2020-11-20T12:46:57.378Z [hyperiond PROTOSERVER] (INFO) Started on port 19445
 2020-11-20T12:46:57.380Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:33:initServer()) Initialize Webserver
 2020-11-20T12:46:57.383Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:33:initServer()) Initialize Webserver
 2020-11-20T12:46:57.435Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:91:handleSettingsUpdate()) Apply Webserver settings
 2020-11-20T12:46:57.435Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:91:handleSettingsUpdate()) Apply Webserver settings
 2020-11-20T12:46:57.435Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:109:handleSettingsUpdate()) Set document root to: :/webconfig
 2020-11-20T12:46:57.435Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:109:handleSettingsUpdate()) Set document root to: :/webconfig
 2020-11-20T12:46:57.436Z [hyperiond WEBSERVER] (INFO) Started on port 8090 name 'Hyperion Webserver'
 2020-11-20T12:46:57.447Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:207:setInput()) Priority 254 is now active
 2020-11-20T12:46:57.448Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:175:handleSettingsUpdate()) Setup SSL certificate
 2020-11-20T12:46:57.448Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:351:setCurrentTime()) Set visible priority to 254
 2020-11-20T12:46:57.449Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:191:handleSettingsUpdate()) Setup private SSL key
 2020-11-20T12:46:57.450Z [hyperiond WEBSERVER] (INFO) Started on port 8092 name 'Hyperion Webserver'
 2020-11-20T12:46:57.450Z [hyperiond SMOOTHING] (DEBUG) (LinearColorSmoothing.cpp:701:selectConfig()) cfg [2]:  Type: linear - Time: 200 ms, outputRate 25.000000 Hz, interpolationRate: 25.000000 Hz, timer: 40 ms, Dithering: 0, Decay: 1.000000 -> HalfTime: 100.000000 ms
 2020-11-20T12:46:57.451Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:559:handlePriorityChangedLedDevice()) priority[254], previousPriority[255]
 2020-11-20T12:46:57.452Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:569:handlePriorityChangedLedDevice()) new source available -> switch LED-Device on
 2020-11-20T12:47:03.111Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient()) New connection from 2a04:4540:6c1b:e300:8c8a:1ce8:fc71:c55c
 2020-11-20T12:47:03.112Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:81:handleInstanceSwitch()) Client '2a04:4540:6c1b:e300:8c8a:1ce8:fc71:c55c' switch to Hyperion instance 0
 2020-11-20T12:47:04.166Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1054:handleLoggingCommand()) log streaming activated for client 2a04:4540:6c1b:e300:8c8a:1ce8:fc71:c55c
 2020-11-20T12:47:04.237Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1063:handleLoggingCommand()) log streaming deactivated for client  2a04:4540:6c1b:e300:8c8a:1ce8:fc71:c55c
 2020-11-20T12:47:13.649Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:161:registerInput()) Register new input 'Web Configuration@2a04:4540:6c1b:e300:8c8a:1ce8:fc71:c55c/COLOR' with priority 1 as inactive
 2020-11-20T12:47:13.651Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:207:setInput()) Priority 1 is now active
 2020-11-20T12:47:13.652Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:351:setCurrentTime()) Set visible priority to 1
 2020-11-20T12:47:13.652Z [hyperiond SMOOTHING] (DEBUG) (LinearColorSmoothing.cpp:701:selectConfig()) cfg [0]:  Type: linear - Time: 200 ms, outputRate 25.000000 Hz, interpolationRate: 25.000000 Hz, timer: 40 ms, Dithering: 0, Decay: 1.000000 -> HalfTime: 100.000000 ms
 2020-11-20T12:47:13.652Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:559:handlePriorityChangedLedDevice()) priority[1], previousPriority[254]
 2020-11-20T12:47:18.614Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1054:handleLoggingCommand()) log streaming activated for client 2a04:4540:6c1b:e300:8c8a:1ce8:fc71:c55c
@Lord-Grey
Copy link
Collaborator

@N1c093 Could you Check, if there is a difference in behavior, if you disable smoothing?

@N1c093
Copy link
Author

N1c093 commented Nov 21, 2020

@Lord-Grey After I disabled smoothing the LEDs work as expected.

Are my settings wrong or is it a bug in Alpha 9? In Alpha 8 my smoothing settings works fine.

These were my settings in Alpha 8:
image

These are my settings in Alpha 9:
image

@Lord-Grey
Copy link
Collaborator

@N1c093 Thanks for reporting back.
In the latest release an additional smoothing methods was introduced. It might be that that change negatively impact the overall smoothing capabilities.

After switching off smoothing, it worked. Did you try turning smoothing on again? Does it work afterwards?
Could you try with Continous Output (Fortlaufende Ausgabe) enabled?

Plus Test not with Linear but the new method on?

I would like to see, if it is broken in general or if there are good or toxic config combinations,

Thanks for your support!

@N1c093
Copy link
Author

N1c093 commented Nov 22, 2020

@Lord-Grey

I did some tests today.

  • Turning smoothing off and on again doesn't help.
  • Enable "Continuous Output" works 👍
  • Set the mode to "Dämpfung" only work with "Continuous Output" enabled. Btw. "Dämpfung" doesn't looks good for me, it's pretty slow and there are lots of lags.

In summary: The smoothing only works if I enable "Continuous Output"

I'm happy to help :)

@drinfernoo
Copy link

drinfernoo commented Jun 4, 2021

I've switched to alpha9 and back to alpha8 probably a dozen times in the past few months just to see if I could get it working, and finally found this issue.

I can confirm that setting "Continuous Output" makes alpha9 work with my WLED controller again!

EDIT: The issue I have with keeping "Continuous Output" on at all times is that Hyperion always has control over WLED, even when using "Signal Detection"... So if there is no signal, WLED doesn't revert back to manual control.

EDIT 2: Turning "Smoothing" off completely seems to make it work correctly... but without smoothing 😅

@Lord-Grey
Copy link
Collaborator

Can you re-test with alpha10 and report back please, if the issue is still present?

@N1c093
Copy link
Author

N1c093 commented Jul 19, 2021

Sadly the issue is still present in alpha10.
The smoothing only works with "Continuous Output" enabled.

@Lord-Grey
Copy link
Collaborator

@N1c093 Thanks for reporting back.

Lord-Grey added a commit to Lord-Grey/hyperion.ng that referenced this issue Aug 1, 2021
@Lord-Grey Lord-Grey self-assigned this Aug 1, 2021
Lord-Grey added a commit that referenced this issue Aug 31, 2021
* Fix #1098, Removed Continuous Output as being obsolete

* Pause output processing when no input source is available

* Only show configurable options for Linear smoothing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants