hyperion-project / hyperion.ng

The successor to Hyperion aka Hyperion Next Generation
https://hyperion-project.org/
MIT License
3.03k stars 377 forks source link

Lightpack usb on Raspberry Pi #1065

Closed gamer06 closed 3 years ago

gamer06 commented 3 years ago

Hi all,

I am trying to install the lightpack on the new hyperion to be controlled by the Home Assistant. I used to work with the old hyperion before and it worked beautifully.

Now I can't turn on the LED's. Someone can help me? I turn on the light in the Home Assistante and see it on the hyperon dashboard calling. But in reality it doesn't light up ....

https://gyazo.com/684a5ef859529263cd14bb8164372a6b https://gyazo.com/751dc8e77ffcec821b8bac0bed46399c

Lord-Grey commented 3 years ago

Next time fill the template correctly and check the other issues before opening an new one. See #1015

gamer06 commented 3 years ago

Hi,

After reinstall again, i can not make the lambilight works. I can switch on the led in the interface. This is my log output when reboot: `Hyperion System Summary Report (My Hyperion Config), Reported instance: Luzes TV

< ----- System information -------------------- > Hyperion Server:

Hyperion Server OS:

< ----- Configured Instances ------------------ > 0: Luzes TV Running: true

< ----- This instance's priorities ------------ > 250: VISIBLE! (GRABBER) Owner: FrameBuffer priorities_autoselect: true

< ----- This instance components' status -------> ALL - true SMOOTHING - false BLACKBORDER - false FORWARDER - false BOBLIGHTSERVER - false GRABBER - true V4L - false LEDDEVICE - false

< ----- This instance's configuration --------- > {"backgroundEffect":{"color":[255,138,0],"effect":"X-Mas","enable":false,"type":"color"},"blackborderdetector":{"blurRemoveCnt":1,"borderFrameCnt":50,"enable":false,"maxInconsistentCnt":10,"mode":"default","threshold":5,"unknownFrameCnt":600},"boblightServer":{"enable":false,"port":19333,"priority":128},"color":{"channelAdjustment":[{"backlightColored":false,"backlightThreshold":0,"blue":[0,0,255],"brightness":100,"brightnessCompensation":100,"cyan":[0,255,255],"gammaBlue":1.5,"gammaGreen":1.5,"gammaRed":1.5,"green":[0,255,0],"id":"default","leds":"*","magenta":[255,0,255],"red":[255,0,0],"white":[255,255,255],"yellow":[255,255,0]}],"imageToLedMappingType":"multicolor_mean"},"device":{"colorOrder":"rgb","hardwareLedCount":30,"latchTime":11,"rewriteTime":1000,"serial":"1d50:6022","type":"lightpack"},"effects":{"disable":[""],"paths":["$ROOT/custom-effects"]},"flatbufServer":{"enable":true,"port":19400,"timeout":5},"foregroundEffect":{"color":[0,0,255],"duration_ms":3000,"effect":"Rainbow swirl fast","enable":true,"type":"effect"},"forwarder":{"enable":false,"flat":["127.0.0.1:19401"],"json":["127.0.0.1:19446"]},"framegrabber":{"available_devices":"Framebuffer","cropBottom":0,"cropLeft":0,"cropRight":0,"cropTop":0,"device":"framebuffer","device_inputs":"0","enable":true,"fps":25,"framerates":"25","height":480,"input":0,"pixelDecimation":8,"resolutions":"0","width":640},"general":{"configVersion":"2.0.0-alpha.10","name":"My Hyperion Config","previousVersion":"2.0.0-alpha.10","showOptHelp":true,"watchedVersionBranch":"Stable"},"grabberV4L2":{"blueSignalThreshold":0,"cecDetection":false,"cropBottom":0,"cropLeft":0,"cropRight":0,"cropTop":0,"device":"none","enable":false,"encoding":"NO_CHANGE","flip":"NO_CHANGE","fps":15,"fpsSoftwareDecimation":0,"greenSignalThreshold":100,"hardware_brightness":0,"hardware_contrast":0,"hardware_hue":0,"hardware_saturation":0,"height":0,"input":0,"noSignalCounterThreshold":200,"redSignalThreshold":0,"sDHOffsetMax":0.46,"sDHOffsetMin":0.4,"sDVOffsetMax":0.9,"sDVOffsetMin":0.1,"signalDetection":false,"sizeDecimation":8,"width":0},"instCapture":{"systemEnable":true,"systemGrabberDevice":"Framebuffer","systemPriority":250,"v4lEnable":false,"v4lGrabberDevice":"NONE","v4lPriority":240},"jsonServer":{"port":19444},"ledConfig":{"classic":{"bottom":6,"edgegap":0,"glength":0,"gpos":1,"hdepth":8,"left":9,"overlap":0,"pblh":0,"pblv":100,"pbrh":100,"pbrv":100,"position":15,"ptlh":0,"ptlv":0,"ptrh":100,"ptrv":0,"reverse":false,"right":9,"top":6,"vdepth":5},"ledBlacklist":[],"matrix":{"cabling":"snake","ledshoriz":1,"ledsvert":1,"start":"top-left"}},"leds":[{"hmax":1,"hmin":0.8333,"vmax":1,"vmin":0.92},{"hmax":0.8333,"hmin":0.6667,"vmax":1,"vmin":0.92},{"hmax":0.6667,"hmin":0.5,"vmax":1,"vmin":0.92},{"hmax":0.5,"hmin":0.3333,"vmax":1,"vmin":0.92},{"hmax":0.3333,"hmin":0.1667,"vmax":1,"vmin":0.92},{"hmax":0.1667,"hmin":0,"vmax":1,"vmin":0.92},{"hmax":0.05,"hmin":0,"vmax":1,"vmin":0.8889},{"hmax":0.05,"hmin":0,"vmax":0.8889,"vmin":0.7778},{"hmax":0.05,"hmin":0,"vmax":0.7778,"vmin":0.6667},{"hmax":0.05,"hmin":0,"vmax":0.6667,"vmin":0.5556},{"hmax":0.05,"hmin":0,"vmax":0.5556,"vmin":0.4444},{"hmax":0.05,"hmin":0,"vmax":0.4444,"vmin":0.3333},{"hmax":0.05,"hmin":0,"vmax":0.3333,"vmin":0.2222},{"hmax":0.05,"hmin":0,"vmax":0.2222,"vmin":0.1111},{"hmax":0.05,"hmin":0,"vmax":0.1111,"vmin":0},{"hmax":0.1667,"hmin":0,"vmax":0.08,"vmin":0},{"hmax":0.3333,"hmin":0.1667,"vmax":0.08,"vmin":0},{"hmax":0.5,"hmin":0.3333,"vmax":0.08,"vmin":0},{"hmax":0.6667,"hmin":0.5,"vmax":0.08,"vmin":0},{"hmax":0.8333,"hmin":0.6667,"vmax":0.08,"vmin":0},{"hmax":1,"hmin":0.8333,"vmax":0.08,"vmin":0},{"hmax":1,"hmin":0.95,"vmax":0.1111,"vmin":0},{"hmax":1,"hmin":0.95,"vmax":0.2222,"vmin":0.1111},{"hmax":1,"hmin":0.95,"vmax":0.3333,"vmin":0.2222},{"hmax":1,"hmin":0.95,"vmax":0.4444,"vmin":0.3333},{"hmax":1,"hmin":0.95,"vmax":0.5556,"vmin":0.4444},{"hmax":1,"hmin":0.95,"vmax":0.6667,"vmin":0.5556},{"hmax":1,"hmin":0.95,"vmax":0.7778,"vmin":0.6667},{"hmax":1,"hmin":0.95,"vmax":0.8889,"vmin":0.7778},{"hmax":1,"hmin":0.95,"vmax":1,"vmin":0.8889}],"logger":{"level":"debug"},"network":{"apiAuth":true,"internetAccessAPI":false,"ipWhitelist":[],"localAdminAuth":true,"localApiAuth":false,"restirctedInternetAccessAPI":false},"protoServer":{"enable":true,"port":19445,"timeout":5},"smoothing":{"continuousOutput":true,"decay":1,"dithering":false,"enable":false,"interpolationRate":25,"outputRate":25,"time_ms":200,"type":"linear","updateDelay":0,"updateFrequency":25},"webConfig":{"crtPath":"","document_root":"","keyPassPhrase":"","keyPath":"","port":8090,"sslPort":8092}}

< ----- Current Log --------------------------- > 2021-09-12T21:51:21.029Z [hyperiond DAEMON] (INFO) CEC handler created 2021-09-12T21:51:21.126Z [hyperiond EFFECTFILES] (INFO) 39 effects loaded from directory :/effects/ 2021-09-12T21:51:21.168Z [hyperiond EFFECTFILES] (INFO) 22 effect schemas loaded from directory :/effects/schema/ 2021-09-12T21:51:21.174Z [hyperiond EFFECTFILES] (INFO) 0 effects loaded from directory /home/pi/.hyperion/custom-effects/ 2021-09-12T21:51:21.352Z [hyperiond SETTINGSMGR] (DEBUG) (SettingsManager.cpp:164:SettingsManager()) Settings database initialized 2021-09-12T21:51:21.369Z [hyperiond BLACKBORDER] (DEBUG) (BlackBorderProcessor.cpp:64:handleSettingsUpdate()) Set mode to: default 2021-09-12T21:51:21.446Z [hyperiond DAEMON] (INFO) set screen capture device to 'framebuffer' 2021-09-12T21:51:21.465Z [hyperiond DAEMON] (INFO) Framebuffer grabber created 2021-09-12T21:51:21.473Z [hyperiond FRAMEBUFFERGRABBER] (DEBUG) (Grabber.cpp:141:setWidthHeight()) Set new width: 640, height: 480 for capture 2021-09-12T21:51:21.479Z [hyperiond FRAMEBUFFERGRABBER] (INFO) Capture interface is now enabled 2021-09-12T21:51:21.520Z [hyperiond DAEMON] (DEBUG) (hyperiond.cpp:608:handleSettingsUpdate()) V4L2 grabber created 2021-09-12T21:51:21.536Z [hyperiond JSONSERVER] (DEBUG) (JsonServer.cpp:28:JsonServer()) Created instance 2021-09-12T21:51:21.570Z [hyperiond JSONSERVER] (INFO) Started on port 19444 2021-09-12T21:51:21.461Z [hyperiond LEDDEVICE] (INFO) Start LedDevice 'lightpack'. 2021-09-12T21:51:21.477Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:148:init()) deviceConfig: [{"colorOrder":"rgb","currentLedCount":30,"hardwareLedCount":30,"latchTime":11,"rewriteTime":1000,"serial":"1d50:6022","type":"lightpack"}] 2021-09-12T21:51:21.488Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:413:setLatchTime()) LatchTime updated to 11ms 2021-09-12T21:51:21.467Z [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 2021-09-12T21:51:21.492Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:438:setRewriteTime()) Refresh interval = 1000ms 2021-09-12T21:51:21.502Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:444:setRewriteTime()) RewriteTime updated to 1000ms 2021-09-12T21:51:21.533Z [hyperiond SMOOTHING] (DEBUG) (LinearColorSmoothing.cpp:701:selectConfig()) Previous line repeats 1 times 2021-09-12T21:51:21.537Z [hyperiond FLATBUFCONN] (INFO) Connecting to Hyperion: 127.0.0.1:19401 2021-09-12T21:51:21.566Z [hyperiond EFFECTENGINE] (INFO) Run effect "Rainbow swirl fast" on channel 1 2021-09-12T21:51:21.672Z [hyperiond EFFECTENGINE] (DEBUG) (EffectEngine.cpp:181:runEffectScript()) Start the effect: name [Rainbow swirl fast], smoothCfg [2] 2021-09-12T21:51:21.677Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:165:registerInput()) Register new input 'System/EFFECT' with priority 1 as inactive 2021-09-12T21:51:21.689Z [hyperiond HYPERION] (INFO) Initial foreground effect 'Rainbow swirl fast' started 2021-09-12T21:51:21.696Z [hyperiond LEDDEVICE] (DEBUG) (LedDeviceLightpack.cpp:83:init()) USB context initialized 2021-09-12T21:51:21.710Z [hyperiond FLATBUFSERVER] (INFO) Started on port 19400 2021-09-12T21:51:21.721Z [hyperiond LEDDEVICE] (INFO) Found a Lightpack device. Retrieving more information... 2021-09-12T21:51:21.726Z [hyperiond LEDDEVICE] (DEBUG) (LedDeviceLightpack.cpp:208:searchDevice()) vendorIdentifier : 0x1d50 2021-09-12T21:51:21.732Z [hyperiond LEDDEVICE] (DEBUG) (LedDeviceLightpack.cpp:209:searchDevice()) productIdentifier: 0x6022 2021-09-12T21:51:21.737Z [hyperiond LEDDEVICE] (DEBUG) (LedDeviceLightpack.cpp:210:searchDevice()) release_number : 0x1 2021-09-12T21:51:21.717Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:165:registerInput()) Register new input 'System/GRABBER' with priority 250 as inactive 2021-09-12T21:51:21.766Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:36:setNewComponentState()) Framegrabber: enabled 2021-09-12T21:51:21.854Z [hyperiond FRAMEBUFFER] (DEBUG) (GrabberWrapper.cpp:62:start()) Grabber start() 2021-09-12T21:51:21.754Z [hyperiond LEDDEVICE] (DEBUG) (LedDeviceLightpack.cpp:211:searchDevice()) manufacturer : 2021-09-12T21:51:21.731Z [hyperiond PROTOSERVER] (INFO) Started on port 19445 2021-09-12T21:51:21.778Z [hyperiond LEDDEVICE] (DEBUG) (LedDeviceLightpack.cpp:219:searchDevice()) Lightpack device found: bus=1 address=4 serial= 2021-09-12T21:51:21.762Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:33:initServer()) Initialize Webserver 2021-09-12T21:51:21.782Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:33:initServer()) Initialize Webserver 2021-09-12T21:51:21.799Z [hyperiond LEDDEVICE] (ERROR) Device disabled, device 'lightpack' signals error: 'No Lightpack device found with serial 1d50:6022' 2021-09-12T21:51:21.772Z [hyperiond BOBLIGHT] (DEBUG) (BoblightServer.cpp:28:BoblightServer()) Instance created 2021-09-12T21:51:21.896Z [hyperiond HYPERION] (INFO) Hyperion instance 'Luzes TV' has been started 2021-09-12T21:51:21.943Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:271:setInputImage()) Priority 250 is now active 2021-09-12T21:51:21.950Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:374:setCurrentTime()) Set visible priority to 250 2021-09-12T21:51:21.955Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:559:handlePriorityChangedLedDevice()) priority[250], previousPriority[255] 2021-09-12T21:51:21.969Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:569:handlePriorityChangedLedDevice()) new source available -> switch LED-Device on 2021-09-12T21:51:22.557Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:91:handleSettingsUpdate()) Apply Webserver settings 2021-09-12T21:51:22.564Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:109:handleSettingsUpdate()) Set document root to: :/webconfig 2021-09-12T21:51:22.567Z [hyperiond WEBSERVER] (INFO) Started on port 8090 name 'Hyperion Webserver' 2021-09-12T21:51:22.585Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:91:handleSettingsUpdate()) Apply Webserver settings 2021-09-12T21:51:22.597Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:109:handleSettingsUpdate()) Set document root to: :/webconfig 2021-09-12T21:51:23.752Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:271:setInputImage()) Priority 1 is now active 2021-09-12T21:51:23.759Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:374:setCurrentTime()) Set visible priority to 1 2021-09-12T21:51:23.760Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:559:handlePriorityChangedLedDevice()) priority[1], previousPriority[250] 2021-09-12T21:51:26.069Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:337:setCurrentTime()) Timeout clear for priority 1 2021-09-12T21:51:26.082Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:374:setCurrentTime()) Set visible priority to 250 2021-09-12T21:51:26.083Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:559:handlePriorityChangedLedDevice()) priority[250], previousPriority[1] 2021-09-12T21:51:26.189Z [hyperiond EFFECTENGINE] (INFO) effect finished 2021-09-12T21:51:27.741Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:175:handleSettingsUpdate()) Setup SSL certificate 2021-09-12T21:51:27.750Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:191:handleSettingsUpdate()) Setup private SSL key 2021-09-12T21:51:27.755Z [hyperiond WEBSERVER] (INFO) Started on port 8092 name 'Hyperion Webserver' 2021-09-12T21:51:28.857Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient()) New connection from ::ffff:192.168.1.86 2021-09-12T21:51:28.866Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:122:handleInstanceSwitch()) Client '::ffff:192.168.1.86' switch to Hyperion instance 0 2021-09-12T21:51:30.261Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient()) New connection from ::ffff:192.168.1.86 2021-09-12T21:51:30.274Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:122:handleInstanceSwitch()) Client '::ffff:192.168.1.86' switch to Hyperion instance 0 2021-09-12T21:51:30.524Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient()) New connection from ::ffff:192.168.1.86 2021-09-12T21:51:30.529Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:122:handleInstanceSwitch()) Client '::ffff:192.168.1.86' switch to Hyperion instance 0 2021-09-12T21:51:30.643Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1058:handleLoggingCommand()) log streaming activated for client ::ffff:192.168.1.86 2021-09-12T21:51:31.197Z [hyperiond JSONSERVER] (DEBUG) (JsonServer.cpp:105:newConnection()) New connection from: ::ffff:192.168.1.144 2021-09-12T21:51:31.201Z [hyperiond JSONCLIENTCONNECTION] (DEBUG) (JsonAPI.cpp:122:handleInstanceSwitch()) Client '::ffff:192.168.1.80' switch to Hyperion instance 0 2021-09-12T21:51:31.209Z [hyperiond JSONSERVER] (DEBUG) (JsonServer.cpp:105:newConnection()) New connection from: ::ffff:192.168.1.144 2021-09-12T21:51:31.214Z [hyperiond JSONCLIENTCONNECTION] (DEBUG) (JsonAPI.cpp:122:handleInstanceSwitch()) Client '::ffff:192.168.1.80' switch to Hyperion instance 0 `