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

lightpack doesnt work #1015

Closed
1 task done
nattyebola opened this issue Sep 21, 2020 · 19 comments · Fixed by #1049
Closed
1 task done

lightpack doesnt work #1015

nattyebola opened this issue Sep 21, 2020 · 19 comments · Fixed by #1049
Assignees
Labels

Comments

@nattyebola
Copy link

  • 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:

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
@pdecat
Copy link
Contributor

pdecat commented Sep 22, 2020

Same issue with my lightpack with alpha.7 and alpha.8 on RPi 4, reverting back to alpha.6 works.

Sep 22 07:50:01 lerpi4 systemd[1]: Reloading.
Sep 22 07:50:16 lerpi4 systemd[1]: Stopping Hyperion ambient light systemd service...
Sep 22 07:50:16 lerpi4 hyperiond[686]: [hyperiond LedDeviceWrapper] <INFO> LedDevice 'lightpack' closed
Sep 22 07:50:16 lerpi4 kernel: hid-generic 0003:1D50:6022.0002: hiddev96,hidraw0: USB HID v1.11 Device [lightpack.googlecode.com Lightpack] on usb-0000:01:00.0-1.4/input0
Sep 22 07:50:16 lerpi4 systemd[1]: hyperion.service: Succeeded.
Sep 22 07:50:16 lerpi4 systemd[1]: Stopped Hyperion ambient light systemd service.
Sep 22 07:50:16 lerpi4 systemd[1]: Started Hyperion ambient light systemd service.
Sep 22 07:50:16 lerpi4 hyperiond[28020]: 2020-09-22T07:50:16.939 hyperiond LEDDEVICE    : <ERROR> Unable to write 61 bytes to Lightpack device(-1): LIBUSB_ERROR_IO
Sep 22 07:50:16 lerpi4 [28020]: Unable to write 61 bytes to Lightpack device(-1): LIBUSB_ERROR_IO
Sep 22 07:50:16 lerpi4 kernel: usb 1-1.4: usbfs: process 28033 (LedDeviceThread) did not claim interface 0 before use
Sep 22 07:50:16 lerpi4 kernel: usb 1-1.4: usbfs: process 28033 (LedDeviceThread) did not claim interface 0 before use
Sep 22 07:50:17 lerpi4 kernel: usb 1-1.4: usbfs: process 28033 (LedDeviceThread) did not claim interface 0 before use
Sep 22 07:50:17 lerpi4 kernel: usb 1-1.4: usbfs: process 28033 (LedDeviceThread) did not claim interface 0 before use
Sep 22 07:50:17 lerpi4 kernel: usb 1-1.4: usbfs: process 28033 (LedDeviceThread) did not claim interface 0 before use

Not working:

Hyperion Server: 
- Build:       (HEAD detached at 08909b8a) (Paulchen-Panther-75963ca9/08909b8a-1600115237)
- Build time:  Sep 14 2020 21:04:51
- Git Remote:  https://github.com/hyperion-project/hyperion.ng
- Version:     2.0.0-alpha.8
- UI Lang:     auto (BrowserLang: fr-FR)
- UI Access:   default
- Avail Capt:  dispmanx,v4l2,framebuffer,qt

Hyperion Server OS: 
- Distribution: LibreELEC (official): 9.2.5
- Arch:         arm
- Kernel:       linux (4.19.127 (WS: 32))
- Browser:      Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36 

Working:

Hyperion Server: 
- Build:       (HEAD detached at f5583de8) (Sersch-f7865b45/f5583de8-1590611619)
- Build time:  May 27 2020 21:11:33
- Git Remote:  https://github.com/hyperion-project/hyperion.ng
- Version:     2.0.0-alpha.6
- UI Lang:     auto (BrowserLang: fr-FR)
- UI Access:   default
- Avail Capt:  dispmanx,v4l2,framebuffer,qt

Hyperion Server OS: 
- Distribution: LibreELEC (official): 9.2.5
- Arch:         arm
- Kernel:       linux (4.19.127 (WS: 32))
- Browser:      Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36 ```

@pdecat
Copy link
Contributor

pdecat commented Sep 22, 2020

Debug log with alpha.6 (working):

lerpi4:~ # /storage/hyperion/bin/hyperiond --userdata /storage/hyperion/ --debug
[hyperiond MAIN] <INFO> Set user data path to '/storage/hyperion'
[hyperiond DAEMON] <DEBUG> <PythonInit.cpp:45:PythonInit()> Initializing Python interpreter
[hyperiond SettingsManager] <DEBUG> <SettingsManager.cpp:108:SettingsManager()> Settings database initialized
[hyperiond EFFECTFILES] <INFO> 39 effects loaded from directory :/effects/
[hyperiond EFFECTFILES] <INFO> 22 effect schemas loaded from directory :/effects/schema/
[hyperiond EFFECTFILES] <INFO> 0 effects loaded from directory /storage/hyperion//custom-effects
[hyperiond SettingsManager] <DEBUG> <SettingsManager.cpp:108:SettingsManager()> Settings database initialized
[hyperiond BLACKBORDER] <DEBUG> <BlackBorderProcessor.cpp:65:handleSettingsUpdate()> Set mode to: default
[hyperiond ComponentRegister] <DEBUG> <ComponentRegister.cpp:36:setNewComponentState()> Blackborder detector: enabled
[hyperiond DAEMON] <INFO> set screen capture device to 'dispmanx'
[hyperiond DISPMANXGRABBER] <DEBUG> <Grabber.cpp:34:setVideoMode()> Set videomode to 0
[hyperiond DISPMANXGRABBER] <INFO> Display opened with resolution: 1920x1080
[hyperiond DISPMANXGRABBER] <DEBUG> <Grabber.cpp:83:setWidthHeight()> Set new width: 80, height: 45 for capture
[hyperiond DAEMON] <INFO> DISPMANX frame grabber created
[hyperiond V4L2:/dev/video0] <DEBUG> <Grabber.cpp:34:setVideoMode()> Set videomode to 0
[hyperiond V4L2:/dev/video0] <DEBUG> <Grabber.cpp:83:setWidthHeight()> Set new width: 1920, height: 1080 for capture
[hyperiond V4L2:/dev/video0] <INFO> Signal threshold set to: {12, 12, 12}
[hyperiond V4L2:/dev/video0] <INFO> Signal detection area set to: 0.250000,0.250000 x 0.750000,0.750000
[hyperiond DAEMON] <DEBUG> <hyperiond.cpp:484:handleSettingsUpdate()> V4L2 grabber created
[hyperiond JSONSERVER] <DEBUG> <JsonServer.cpp:27:JsonServer()> Created instance
[hyperiond JSONSERVER] <INFO> Started on port 19444
[hyperiond PROTOSERVER] <INFO> Started on port 19445
[hyperiond WEBSERVER] <DEBUG> <WebServer.cpp:33:initServer()> Initialize Webserver
[hyperiond FLATBUFSERVER] <INFO> Started on port 19400
[hyperiond LEDDEVICE] <INFO> LedDevice 'lightpack' found.
[hyperiond WEBSERVER] <DEBUG> <WebServer.cpp:33:initServer()> Initialize Webserver
[hyperiond ComponentRegister] <DEBUG> <ComponentRegister.cpp:36:setNewComponentState()> Smoothing: enabled
[hyperiond FLATBUFCONNECTION] <INFO> Connecting to Hyperion: 127.0.0.1:19401
[hyperiond EFFECTENGINE] <INFO> Run effect "Rainbow swirl fast" on channel 0
[hyperiond EFFECTENGINE] <DEBUG> <EffectEngine.cpp:183:runEffectScript()> Start the effect: name [Rainbow swirl fast], smoothCfg [2]
[hyperiond HYPERION] <DEBUG> <PriorityMuxer.cpp:158:registerInput()> Register new input 'System/EFFECT' with priority 0 as inactive
[hyperiond HYPERION] <INFO> Initial foreground effect 'Rainbow swirl fast' started
[hyperiond EFFECTENGINE] <INFO> Run effect "Warm mood blobs" on channel 254
[hyperiond EFFECTENGINE] <DEBUG> <EffectEngine.cpp:183:runEffectScript()> Start the effect: name [Warm mood blobs], smoothCfg [2]
[hyperiond HYPERION] <DEBUG> <PriorityMuxer.cpp:158:registerInput()> Register new input 'System/EFFECT' with priority 254 as inactive
[hyperiond HYPERION] <INFO> Inital background effect 'Warm mood blobs' started
[hyperiond HYPERION] <DEBUG> <PriorityMuxer.cpp:158:registerInput()> Register new input 'System/V4L' with priority 240 as inactive
[hyperiond ComponentRegister] <DEBUG> <ComponentRegister.cpp:36:setNewComponentState()> V4L capture device: enabled
[hyperiond BOBLIGHT] <DEBUG> <BoblightServer.cpp:28:BoblightServer()> Instance created
[hyperiond V4L2:/dev/video0] <INFO> configured v4l device: /dev/video0
[hyperiond LEDDEVICE] <DEBUG> <LedDeviceLightpack.cpp:101:open()> USB context initialized
[hyperiond LEDDEVICE] <INFO> Found a lightpack device. Retrieving more information...
[hyperiond LEDDEVICE] <DEBUG> <LedDeviceLightpack.cpp:209:testAndOpen()> Lightpack device found: bus=1 address=4 serial=95230303231351D00132
[hyperiond LEDDEVICE] <INFO> Lightpack device successfully opened
[hyperiond LEDDEVICE] <DEBUG> <LedDeviceLightpack.cpp:276:testAndOpen()> Lightpack device opened: bus=1 address=4 serial=95230303231351D00132 version=6.5.
[hyperiond ComponentRegister] <DEBUG> <ComponentRegister.cpp:36:setNewComponentState()> LED device: enabled
[hyperiond WEBSERVER] <DEBUG> <WebServer.cpp:91:handleSettingsUpdate()> Apply Webserver settings
[hyperiond WEBSERVER] <DEBUG> <WebServer.cpp:109:handleSettingsUpdate()> Set document root to: :/webconfig
[hyperiond WEBSERVER] <DEBUG> Previous line repeats 1 times
[hyperiond WEBSERVER] <DEBUG> <WebServer.cpp:109:handleSettingsUpdate()> Set document root to: :/webconfig
[hyperiond WEBSERVER] <INFO> Started on port 8090 name 'Hyperion Webserver'
[hyperiond V4L2:/dev/video0] <DEBUG> <V4L2Grabber.cpp:692:init_device()> Set resolution to width=1920 height=1080
[hyperiond V4L2:/dev/video0] <DEBUG> <V4L2Grabber.cpp:709:init_device()> Set framerate to 5 fps
[hyperiond V4L2:/dev/video0] <DEBUG> <V4L2Grabber.cpp:731:init_device()> Pixel format=YUYV
[hyperiond V4L2:/dev/video0] <INFO> Started
[hyperiond V4L2:/dev/video0] <DEBUG> <GrabberWrapper.cpp:49:start()> Grabber start()
[hyperiond HYPERION] <INFO> Hyperion instance 'First LED Hardware instance' has been started
[hyperiond WEBSERVER] <DEBUG> <WebServer.cpp:175:handleSettingsUpdate()> Setup SSL certificate
[hyperiond WEBSERVER] <DEBUG> <WebServer.cpp:191:handleSettingsUpdate()> Setup private SSL key
[hyperiond WEBSERVER] <INFO> Started on port 8092 name 'Hyperion Webserver'
[hyperiond HYPERION] <DEBUG> <PriorityMuxer.cpp:198:setInput()> Priority 254 is now active
[hyperiond HYPERION] <DEBUG> <PriorityMuxer.cpp:333:setCurrentTime()> Set visible priority to 0
[hyperiond HYPERION] <DEBUG> <PriorityMuxer.cpp:238:setInputImage()> Priority 0 is now active
[hyperiond HYPERION] <DEBUG> <PriorityMuxer.cpp:238:setInputImage()> Priority 240 is now active
[hyperiond HYPERION] <DEBUG> <PriorityMuxer.cpp:298:setCurrentTime()> Timeout clear for priority 0
[hyperiond HYPERION] <DEBUG> <PriorityMuxer.cpp:333:setCurrentTime()> Set visible priority to 240
^C[hyperiond DAEMON] <DEBUG> <hyperiond.cpp:167:freeObjects()> Cleaning up Hyperion before quit.
[hyperiond FLATBUFSERVER] <INFO> Stopped
[hyperiond PROTOSERVER] <INFO> Stopped
[hyperiond WEBSERVER] <INFO> Stopped Hyperion Webserver
[hyperiond WEBSERVER] <INFO> Previous line repeats 1 times
[hyperiond HYPERION] <INFO> Hyperion instance 'First LED Hardware instance' has been stopped
[hyperiond LedDeviceWrapper] <INFO> LedDevice 'lightpack' closed
[hyperiond Dispmanx] <DEBUG> <GrabberWrapper.cpp:57:stop()> Grabber stop()
[hyperiond Dispmanx] <DEBUG> <GrabberWrapper.cpp:43:~GrabberWrapper()> Close grabber: Dispmanx
[hyperiond V4L2:/dev/video0] <DEBUG> <V4L2Grabber.cpp:84:uninit()> uninit grabber: /dev/video0
[hyperiond V4L2:/dev/video0] <INFO> Stopped
[hyperiond V4L2:/dev/video0] <DEBUG> <GrabberWrapper.cpp:57:stop()> Grabber stop()
[hyperiond V4L2:/dev/video0] <DEBUG> <GrabberWrapper.cpp:43:~GrabberWrapper()> Close grabber: V4L2:/dev/video0
[hyperiond MAIN] <INFO> Application closed with code 0
[hyperiond DAEMON] <DEBUG> <PythonInit.cpp:58:~PythonInit()> Cleaning up Python interpreter

Debug log with alpha.8 (not working):

lerpi4:~ # /storage/hyperion/bin/hyperiond --userdata /storage/hyperion/ --debug
2020-09-22T08:04:22.612 hyperiond MAIN         : <INFO> Set user data path to '/storage/hyperion'
2020-09-22T08:04:22.661 hyperiond DAEMON       : <DEBUG> PythonInit.cpp:44:PythonInit() | Initializing Python interpreter
2020-09-22T08:04:22.704 hyperiond SETTINGSMGR  : <DEBUG> SettingsManager.cpp:107:SettingsManager() | Settings database initialized
2020-09-22T08:04:22.704 hyperiond DAEMON       : <INFO> CEC handler created
2020-09-22T08:04:22.711 hyperiond EFFECTFILES  : <INFO> 39 effects loaded from directory :/effects/
2020-09-22T08:04:22.714 hyperiond EFFECTFILES  : <INFO> 22 effect schemas loaded from directory :/effects/schema/
2020-09-22T08:04:22.715 hyperiond EFFECTFILES  : <INFO> 0 effects loaded from directory /storage/hyperion//custom-effects
2020-09-22T08:04:22.729 hyperiond SETTINGSMGR  : <DEBUG> SettingsManager.cpp:107:SettingsManager() | Settings database initialized
2020-09-22T08:04:22.730 hyperiond BLACKBORDER  : <DEBUG> BlackBorderProcessor.cpp:64:handleSettingsUpdate() | Set mode to: default
2020-09-22T08:04:22.730 hyperiond COMPONENTREG : <DEBUG> ComponentRegister.cpp:36:setNewComponentState() | Blackborder detector: enabled
2020-09-22T08:04:22.766 hyperiond DAEMON       : <INFO> set screen capture device to 'dispmanx'
2020-09-22T08:04:22.767 hyperiond DISPMANXGRAB : <DEBUG> Grabber.cpp:30:setVideoMode() | Set videomode to 0
2020-09-22T08:04:22.768 hyperiond DISPMANXGRAB : <INFO> Display opened with resolution: 1920x1080
2020-09-22T08:04:22.768 hyperiond DISPMANXGRAB : <DEBUG> Grabber.cpp:90:setWidthHeight() | Set new width: 80, height: 45 for capture
2020-09-22T08:04:22.768 hyperiond DAEMON       : <INFO> DISPMANX frame grabber created
2020-09-22T08:04:22.769 hyperiond V4L2:/DEV/VI : <DEBUG> Grabber.cpp:30:setVideoMode() | Set videomode to 0
2020-09-22T08:04:22.770 hyperiond V4L2:/DEV/VI : <DEBUG> Grabber.cpp:90:setWidthHeight() | Set new width: 1920, height: 1080 for capture
2020-09-22T08:04:22.771 hyperiond V4L2:/DEV/VI : <INFO> Signal threshold set to: {12, 12, 12}
2020-09-22T08:04:22.771 hyperiond V4L2:/DEV/VI : <INFO> CEC detection is now disabled
2020-09-22T08:04:22.771 hyperiond V4L2:/DEV/VI : <INFO> Signal detection area set to: 0.250000,0.250000 x 0.750000,0.750000
2020-09-22T08:04:22.771 hyperiond DAEMON       : <DEBUG> hyperiond.cpp:568:handleSettingsUpdate() | V4L2 grabber created
2020-09-22T08:04:22.771 hyperiond JSONSERVER   : <DEBUG> JsonServer.cpp:27:JsonServer() | Created instance
2020-09-22T08:04:22.772 hyperiond JSONSERVER   : <INFO> Started on port 19444
2020-09-22T08:04:22.773 hyperiond FLATBUFSERVE : <INFO> Started on port 19400
2020-09-22T08:04:22.773 hyperiond PROTOSERVER  : <INFO> Started on port 19445
2020-09-22T08:04:22.773 hyperiond WEBSERVER    : <DEBUG> WebServer.cpp:32:initServer() | Initialize Webserver
2020-09-22T08:04:22.774 hyperiond WEBSERVER    : <DEBUG> WebServer.cpp:32:initServer() | Initialize Webserver
2020-09-22T08:04:22.789 hyperiond LEDDEVICE    : <INFO> Start LedDevice 'lightpack'.
2020-09-22T08:04:22.789 hyperiond COMPONENTREG : <DEBUG> ComponentRegister.cpp:36:setNewComponentState() | Smoothing: enabled
2020-09-22T08:04:22.789 hyperiond LEDDEVICE    : <DEBUG> LedDevice.cpp:147:init() | deviceConfig: [{"colorOrder":"rgb","currentLedCount":26,"hardwareLedCount":1,"latchTime":11,"rewriteTime":5000,"serial":"","type":"lightpack"}]
2020-09-22T08:04:22.789 hyperiond LEDDEVICE    : <DEBUG> LedDevice.cpp:403:setLatchTime() | LatchTime updated to 11ms
2020-09-22T08:04:22.789 hyperiond LEDDEVICE    : <DEBUG> LedDevice.cpp:423:setRewriteTime() | Refresh interval = 5000ms
2020-09-22T08:04:22.789 hyperiond LEDDEVICE    : <DEBUG> LedDevice.cpp:429:setRewriteTime() | RewriteTime updated to 5000ms
2020-09-22T08:04:22.790 hyperiond FLATBUFCONN  : <INFO> Connecting to Hyperion: 127.0.0.1:19401
2020-09-22T08:04:22.791 hyperiond EFFECTENGINE : <INFO> Run effect "Rainbow swirl fast" on channel 0
2020-09-22T08:04:22.791 hyperiond EFFECTENGINE : <DEBUG> EffectEngine.cpp:183:runEffectScript() | Start the effect: name [Rainbow swirl fast], smoothCfg [2]
2020-09-22T08:04:22.791 hyperiond HYPERION     : <DEBUG> PriorityMuxer.cpp:159:registerInput() | Register new input 'System/EFFECT' with priority 0 as inactive
2020-09-22T08:04:22.792 hyperiond HYPERION     : <INFO> Initial foreground effect 'Rainbow swirl fast' started
2020-09-22T08:04:22.792 hyperiond EFFECTENGINE : <INFO> Run effect "Warm mood blobs" on channel 254
2020-09-22T08:04:22.792 hyperiond EFFECTENGINE : <DEBUG> EffectEngine.cpp:183:runEffectScript() | Start the effect: name [Warm mood blobs], smoothCfg [2]
2020-09-22T08:04:22.793 hyperiond HYPERION     : <DEBUG> PriorityMuxer.cpp:159:registerInput() | Register new input 'System/EFFECT' with priority 254 as inactive
2020-09-22T08:04:22.793 hyperiond HYPERION     : <INFO> Inital background effect 'Warm mood blobs' started
2020-09-22T08:04:22.793 hyperiond HYPERION     : <DEBUG> PriorityMuxer.cpp:159:registerInput() | Register new input 'System/V4L' with priority 240 as inactive
2020-09-22T08:04:22.793 hyperiond COMPONENTREG : <DEBUG> ComponentRegister.cpp:36:setNewComponentState() | V4L capture device: enabled
2020-09-22T08:04:22.794 hyperiond BOBLIGHT     : <DEBUG> BoblightServer.cpp:28:BoblightServer() | Instance created
2020-09-22T08:04:22.816 hyperiond WEBSERVER    : <DEBUG> WebServer.cpp:90:handleSettingsUpdate() | Apply Webserver settings
2020-09-22T08:04:22.816 hyperiond WEBSERVER    : <DEBUG> WebServer.cpp:108:handleSettingsUpdate() | Set document root to: :/webconfig
2020-09-22T08:04:22.817 hyperiond V4L2:/DEV/VI : <INFO> configured v4l device: /dev/video0
2020-09-22T08:04:22.817 hyperiond V4L2:/DEV/VI : <DEBUG> V4L2Grabber.cpp:582:init_device() | Set device input to: Camera 1
2020-09-22T08:04:22.819 hyperiond WEBSERVER    : <DEBUG> WebServer.cpp:90:handleSettingsUpdate() | Apply Webserver settings
2020-09-22T08:04:22.820 hyperiond WEBSERVER    : <DEBUG> WebServer.cpp:108:handleSettingsUpdate() | Set document root to: :/webconfig
2020-09-22T08:04:22.821 hyperiond WEBSERVER    : <INFO> Started on port 8090 name 'Hyperion Webserver'
2020-09-22T08:04:22.824 hyperiond LEDDEVICE    : <DEBUG> LedDeviceLightpack.cpp:82:init() | USB context initialized
2020-09-22T08:04:22.824 hyperiond LEDDEVICE    : <INFO> Found a Lightpack device. Retrieving more information...
2020-09-22T08:04:22.827 hyperiond LEDDEVICE    : <DEBUG> LedDeviceLightpack.cpp:199:testAndOpen() | Lightpack device found: bus=1 address=4 serial=95230303231351D00132
2020-09-22T08:04:22.827 hyperiond LEDDEVICE    : <INFO> Lightpack device successfully opened
2020-09-22T08:04:22.830 hyperiond LEDDEVICE    : <DEBUG> LedDeviceLightpack.cpp:266:testAndOpen() | Lightpack device opened: bus=1 address=4 serial=95230303231351D00132 version=6.5.
2020-09-22T08:04:22.831 hyperiond COMPONENTREG : <DEBUG> ComponentRegister.cpp:36:setNewComponentState() | LED device: enabled
2020-09-22T08:04:22.839 hyperiond V4L2:/DEV/VI : <DEBUG> V4L2Grabber.cpp:696:init_device() | Set resolution to width=1920 height=1080
2020-09-22T08:04:22.861 hyperiond V4L2:/DEV/VI : <DEBUG> V4L2Grabber.cpp:713:init_device() | Set framerate to 5 fps
2020-09-22T08:04:22.861 hyperiond V4L2:/DEV/VI : <DEBUG> V4L2Grabber.cpp:735:init_device() | Pixel format=YUYV
2020-09-22T08:04:22.871 hyperiond LEDDEVICE    : <ERROR> Unable to write 61 bytes to Lightpack device(-1): LIBUSB_ERROR_IO
2020-09-22T08:04:22.903 hyperiond V4L2:/DEV/VI : <INFO> Started
2020-09-22T08:04:22.903 hyperiond V4L2:/dev/vi : <DEBUG> GrabberWrapper.cpp:48:start() | Grabber start()
2020-09-22T08:04:22.904 hyperiond HYPERION     : <INFO> Hyperion instance 'First LED Hardware instance' has been started
2020-09-22T08:04:22.911 hyperiond WEBSERVER    : <DEBUG> WebServer.cpp:174:handleSettingsUpdate() | Setup SSL certificate
2020-09-22T08:04:22.912 hyperiond WEBSERVER    : <DEBUG> WebServer.cpp:190:handleSettingsUpdate() | Setup private SSL key
2020-09-22T08:04:22.913 hyperiond WEBSERVER    : <INFO> Started on port 8092 name 'Hyperion Webserver'
2020-09-22T08:04:22.947 hyperiond HYPERION     : <DEBUG> PriorityMuxer.cpp:198:setInput() | Priority 254 is now active
2020-09-22T08:04:22.947 hyperiond HYPERION     : <DEBUG> PriorityMuxer.cpp:333:setCurrentTime() | Set visible priority to 0
2020-09-22T08:04:22.948 hyperiond HYPERION     : <DEBUG> Hyperion.cpp:538:handlPriorityChangedLedDevice() | priority[0], previousPriority[255]
2020-09-22T08:04:22.948 hyperiond HYPERION     : <DEBUG> Hyperion.cpp:548:handlPriorityChangedLedDevice() | new source available -> switch LED-Device on
2020-09-22T08:04:22.959 hyperiond HYPERION     : <DEBUG> PriorityMuxer.cpp:238:setInputImage() | Priority 0 is now active
2020-09-22T08:04:23.404 hyperiond HYPERION     : <DEBUG> PriorityMuxer.cpp:238:setInputImage() | Priority 240 is now active
2020-09-22T08:04:26.055 hyperiond HYPERION     : <DEBUG> PriorityMuxer.cpp:298:setCurrentTime() | Timeout clear for priority 0
2020-09-22T08:04:26.304 hyperiond HYPERION     : <DEBUG> PriorityMuxer.cpp:333:setCurrentTime() | Set visible priority to 240
2020-09-22T08:04:26.305 hyperiond HYPERION     : <DEBUG> Hyperion.cpp:538:handlPriorityChangedLedDevice() | priority[240], previousPriority[0]
2020-09-22T08:04:30.911 hyperiond LEDDEVICE    : <ERROR> Previous line repeats 200 times
^C
Hyperion caught signal :SIGINT
2020-09-22T08:04:34.414 hyperiond DAEMON       : <DEBUG> hyperiond.cpp:174:freeObjects() | Cleaning up Hyperion before quit.
2020-09-22T08:04:34.416 hyperiond FLATBUFSERVE : <INFO> Stopped
2020-09-22T08:04:34.417 hyperiond PROTOSERVER  : <INFO> Stopped
2020-09-22T08:04:34.419 hyperiond WEBSERVER    : <INFO> Stopped Hyperion Webserver
2020-09-22T08:04:34.420 hyperiond WEBSERVER    : <INFO> Stopped Hyperion Webserver
2020-09-22T08:04:34.421 hyperiond HYPERION     : <INFO> Hyperion instance 'First LED Hardware instance' has been stopped
2020-09-22T08:04:34.478 hyperiond LEDDEVICE    : <ERROR> Previous line repeats 87 times
2020-09-22T08:04:34.479 hyperiond LEDDEVICE    : <ERROR> Unable to write 1 bytes to Lightpack device(-1): LIBUSB_ERROR_IO
2020-09-22T08:04:34.479 hyperiond LEDDEVICE    : <INFO>  Stopped LedDevice 'lightpack'
2020-09-22T08:04:34.483 hyperiond Dispmanx     : <DEBUG> GrabberWrapper.cpp:42:~GrabberWrapper() | Close grabber: Dispmanx
2020-09-22T08:04:34.495 hyperiond V4L2:/DEV/VI : <INFO> Stopped
2020-09-22T08:04:34.495 hyperiond V4L2:/dev/vi : <DEBUG> GrabberWrapper.cpp:58:stop() | Grabber stop()
2020-09-22T08:04:34.495 hyperiond V4L2:/dev/vi : <DEBUG> GrabberWrapper.cpp:42:~GrabberWrapper() | Close grabber: V4L2:/dev/video0
2020-09-22T08:04:34.496 hyperiond MAIN         : <INFO> Application closed with code 0
2020-09-22T08:04:34.496 hyperiond DAEMON       : <DEBUG> PythonInit.cpp:57:~PythonInit() | Cleaning up Python interpreter

@Lord-Grey
Copy link
Collaborator

Hi

  1. May I ask you to confirm that the only change you did from a working environment to the non working one, was updating hyperion to alpha8, i.e you have not changed the underlying hardware.

  2. As I do not have a Lightpack device myself, would you be able supporting us in compiling an updated version which will be provided to you and test it?

@pdecat
Copy link
Contributor

pdecat commented Sep 22, 2020

For me:

  1. confirmed, no other change than passing the desired version to the libreelec.sh script: ./libreelec.sh 2.0.0-alpha.6

  2. can compile and run, already did that

@Lord-Grey Lord-Grey self-assigned this Sep 23, 2020
@Egglestron
Copy link

Hi,
I don't know if the issue is related but I can't even find the Lightpack in the dropdown menu when selecting the LED device, either in Alpha 6 or Alpha 8. I've been searching extensively for this issue and this Issue Request is the closest I got...

@Lord-Grey
Copy link
Collaborator

@Egglestron I assume you are running hyperion.ng on Windows?

@Lord-Grey
Copy link
Collaborator

@pdecat Hey
could you do me a lsusb -v for the lightpack device, please?

@Egglestron
Copy link

@Egglestron I assume you are running hyperion.ng on Windows?

Absolutely. Is that normal then? If so, I'm sorry to flood this thread.

@pdecat
Copy link
Contributor

pdecat commented Sep 24, 2020

@Lord-Grey here it is:

lerpi4:~ # lsusb -v -d 1d50:6022

Bus 001 Device 004: ID 1d50:6022 OpenMoko, Inc. LightPack
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x1d50 OpenMoko, Inc.
  idProduct          0x6022 LightPack
  bcdDevice            0.01
  iManufacturer           1 lightpack.googlecode.com
  iProduct                2 Lightpack
  iSerial               220 95230303231351D00132
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           34
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xc0
      Self Powered
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0
      bInterfaceProtocol      0
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      32
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval               5
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0000
  (Bus Powered)

@Lord-Grey
Copy link
Collaborator

Lord-Grey commented Sep 24, 2020

@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.

@Lord-Grey
Copy link
Collaborator

@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.

@pdecat
Copy link
Contributor

pdecat commented Sep 25, 2020

@Lord-Grey awesome, it works! 🎉

Here are the logs:

/storage/hyperion/bin/hyperiond --userdata /storage/hyperion/ --debug
2020-09-25T11:52:43.897 hyperiond MAIN         : <INFO> Set user data path to '/storage/hyperion'
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
2020-09-25T11:52:43.936 hyperiond DAEMON       : <DEBUG> PythonInit.cpp:44:PythonInit() | Initializing Python interpreter
2020-09-25T11:52:43.980 hyperiond SETTINGSMGR  : <DEBUG> SettingsManager.cpp:107:SettingsManager() | Settings database initialized
2020-09-25T11:52:43.981 hyperiond DAEMON       : <INFO> CEC handler created
2020-09-25T11:52:43.989 hyperiond EFFECTFILES  : <INFO> 39 effects loaded from directory :/effects/
2020-09-25T11:52:43.993 hyperiond EFFECTFILES  : <INFO> 22 effect schemas loaded from directory :/effects/schema/
2020-09-25T11:52:43.993 hyperiond EFFECTFILES  : <INFO> 0 effects loaded from directory /storage/hyperion//custom-effects
2020-09-25T11:52:44.009 hyperiond SETTINGSMGR  : <DEBUG> SettingsManager.cpp:107:SettingsManager() | Settings database initialized
2020-09-25T11:52:44.010 hyperiond BLACKBORDER  : <DEBUG> BlackBorderProcessor.cpp:64:handleSettingsUpdate() | Set mode to: default
2020-09-25T11:52:44.010 hyperiond COMPONENTREG : <DEBUG> ComponentRegister.cpp:36:setNewComponentState() | Blackborder detector: enabled
2020-09-25T11:52:44.029 hyperiond DAEMON       : <INFO> set screen capture device to 'dispmanx'
2020-09-25T11:52:44.029 hyperiond DISPMANXGRAB : <DEBUG> Grabber.cpp:30:setVideoMode() | Set videomode to 0
2020-09-25T11:52:44.030 hyperiond DISPMANXGRAB : <INFO> Display opened with resolution: 1920x1080
2020-09-25T11:52:44.031 hyperiond DISPMANXGRAB : <DEBUG> Grabber.cpp:90:setWidthHeight() | Set new width: 80, height: 45 for capture
2020-09-25T11:52:44.031 hyperiond DAEMON       : <INFO> DISPMANX frame grabber created
2020-09-25T11:52:44.031 hyperiond V4L2:/DEV/VI : <DEBUG> Grabber.cpp:30:setVideoMode() | Set videomode to 0
2020-09-25T11:52:44.033 hyperiond LEDDEVICE    : <INFO> Start LedDevice 'lightpack'.
2020-09-25T11:52:44.033 hyperiond COMPONENTREG : <DEBUG> ComponentRegister.cpp:36:setNewComponentState() | Smoothing: enabled
2020-09-25T11:52:44.033 hyperiond LEDDEVICE    : <DEBUG> LedDevice.cpp:147:init() | deviceConfig: [{"colorOrder":"rgb","currentLedCount":26,"hardwareLedCount":1,"latchTime":11,"rewriteTime":5000,"serial":"","type":"lightpack"}]
2020-09-25T11:52:44.033 hyperiond V4L2:/DEV/VI : <DEBUG> Grabber.cpp:90:setWidthHeight() | Set new width: 1920, height: 1080 for capture
2020-09-25T11:52:44.033 hyperiond LEDDEVICE    : <DEBUG> LedDevice.cpp:403:setLatchTime() | LatchTime updated to 11ms
2020-09-25T11:52:44.033 hyperiond LEDDEVICE    : <DEBUG> LedDevice.cpp:423:setRewriteTime() | Refresh interval = 5000ms
2020-09-25T11:52:44.033 hyperiond V4L2:/DEV/VI : <INFO> Signal threshold set to: {12, 12, 12}
2020-09-25T11:52:44.033 hyperiond V4L2:/DEV/VI : <INFO> CEC detection is now disabled
2020-09-25T11:52:44.033 hyperiond LEDDEVICE    : <DEBUG> LedDevice.cpp:429:setRewriteTime() | RewriteTime updated to 5000ms
2020-09-25T11:52:44.033 hyperiond V4L2:/DEV/VI : <INFO> Signal detection area set to: 0.250000,0.250000 x 0.750000,0.750000
2020-09-25T11:52:44.034 hyperiond DAEMON       : <DEBUG> hyperiond.cpp:568:handleSettingsUpdate() | V4L2 grabber created
2020-09-25T11:52:44.034 hyperiond FLATBUFCONN  : <INFO> Connecting to Hyperion: 127.0.0.1:19401
2020-09-25T11:52:44.034 hyperiond JSONSERVER   : <DEBUG> JsonServer.cpp:28:JsonServer() | Created instance
2020-09-25T11:52:44.035 hyperiond JSONSERVER   : <INFO> Started on port 19444
2020-09-25T11:52:44.039 hyperiond EFFECTENGINE : <INFO> Run effect "Rainbow swirl fast" on channel 0
2020-09-25T11:52:44.041 hyperiond EFFECTENGINE : <DEBUG> EffectEngine.cpp:183:runEffectScript() | Start the effect: name [Rainbow swirl fast], smoothCfg [2]
2020-09-25T11:52:44.042 hyperiond HYPERION     : <DEBUG> PriorityMuxer.cpp:159:registerInput() | Register new input 'System/EFFECT' with priority 0 as inactive
2020-09-25T11:52:44.043 hyperiond HYPERION     : <INFO> Initial foreground effect 'Rainbow swirl fast' started
2020-09-25T11:52:44.043 hyperiond EFFECTENGINE : <INFO> Run effect "Warm mood blobs" on channel 254
2020-09-25T11:52:44.043 hyperiond EFFECTENGINE : <DEBUG> EffectEngine.cpp:183:runEffectScript() | Start the effect: name [Warm mood blobs], smoothCfg [2]
2020-09-25T11:52:44.044 hyperiond HYPERION     : <DEBUG> PriorityMuxer.cpp:159:registerInput() | Register new input 'System/EFFECT' with priority 254 as inactive
2020-09-25T11:52:44.044 hyperiond HYPERION     : <INFO> Inital background effect 'Warm mood blobs' started
2020-09-25T11:52:44.045 hyperiond HYPERION     : <DEBUG> PriorityMuxer.cpp:159:registerInput() | Register new input 'System/V4L' with priority 240 as inactive
2020-09-25T11:52:44.045 hyperiond COMPONENTREG : <DEBUG> ComponentRegister.cpp:36:setNewComponentState() | V4L capture device: enabled
2020-09-25T11:52:44.046 hyperiond BOBLIGHT     : <DEBUG> BoblightServer.cpp:28:BoblightServer() | Instance created
2020-09-25T11:52:44.047 hyperiond PROTOSERVER  : <INFO> Started on port 19445
2020-09-25T11:52:44.047 hyperiond V4L2:/DEV/VI : <INFO> configured v4l device: /dev/video0
2020-09-25T11:52:44.048 hyperiond V4L2:/DEV/VI : <DEBUG> V4L2Grabber.cpp:582:init_device() | Set device input to: Camera 1
2020-09-25T11:52:44.068 hyperiond FLATBUFSERVE : <INFO> Started on port 19400
2020-09-25T11:52:44.068 hyperiond WEBSERVER    : <DEBUG> WebServer.cpp:33:initServer() | Initialize Webserver
2020-09-25T11:52:44.069 hyperiond WEBSERVER    : <DEBUG> WebServer.cpp:33:initServer() | Initialize Webserver
2020-09-25T11:52:44.069 hyperiond LEDDEVICE    : <DEBUG> LedDeviceLightpack.cpp:83:init() | USB context initialized
2020-09-25T11:52:44.069 hyperiond LEDDEVICE    : <INFO> Found a Lightpack device. Retrieving more information...
2020-09-25T11:52:44.069 hyperiond LEDDEVICE    : <DEBUG> LedDeviceLightpack.cpp:202:searchDevice() | vendorIdentifier : 0x1d50
2020-09-25T11:52:44.070 hyperiond LEDDEVICE    : <DEBUG> LedDeviceLightpack.cpp:203:searchDevice() | productIdentifier: 0x6022
2020-09-25T11:52:44.070 hyperiond LEDDEVICE    : <DEBUG> LedDeviceLightpack.cpp:204:searchDevice() | release_number   : 0x1
2020-09-25T11:52:44.071 hyperiond V4L2:/DEV/VI : <DEBUG> V4L2Grabber.cpp:696:init_device() | Set resolution to width=1920 height=1080
2020-09-25T11:52:44.072 hyperiond LEDDEVICE    : <DEBUG> LedDeviceLightpack.cpp:205:searchDevice() | manufacturer     : lightpack.googlecode.com
2020-09-25T11:52:44.075 hyperiond LEDDEVICE    : <DEBUG> LedDeviceLightpack.cpp:213:searchDevice() | Lightpack device found: bus=1 address=4 serial=95230303231351D00132
2020-09-25T11:52:44.078 hyperiond WEBSERVER    : <DEBUG> WebServer.cpp:91:handleSettingsUpdate() | Apply Webserver settings
2020-09-25T11:52:44.078 hyperiond WEBSERVER    : <DEBUG> WebServer.cpp:91:handleSettingsUpdate() | Apply Webserver settings
2020-09-25T11:52:44.078 hyperiond WEBSERVER    : <DEBUG> WebServer.cpp:109:handleSettingsUpdate() | Set document root to: :/webconfig
2020-09-25T11:52:44.078 hyperiond WEBSERVER    : <DEBUG> WebServer.cpp:109:handleSettingsUpdate() | Set document root to: :/webconfig
2020-09-25T11:52:44.079 hyperiond WEBSERVER    : <INFO> Started on port 8090 name 'Hyperion Webserver'
2020-09-25T11:52:44.081 hyperiond LEDDEVICE    : <DEBUG> LedDeviceLightpack.cpp:271:searchDevice() | Lightpack device found: bus=1 address=4 serial=95230303231351D00132 version=7.5.
2020-09-25T11:52:44.082 hyperiond LEDDEVICE    : <INFO> Lightpack device successfully opened
2020-09-25T11:52:44.083 hyperiond COMPONENTREG : <DEBUG> ComponentRegister.cpp:36:setNewComponentState() | LED device: enabled
2020-09-25T11:52:44.093 hyperiond V4L2:/DEV/VI : <DEBUG> V4L2Grabber.cpp:713:init_device() | Set framerate to 5 fps
2020-09-25T11:52:44.094 hyperiond V4L2:/DEV/VI : <DEBUG> V4L2Grabber.cpp:735:init_device() | Pixel format=YUYV
2020-09-25T11:52:44.150 hyperiond HYPERION     : <DEBUG> PriorityMuxer.cpp:198:setInput() | Priority 254 is now active
2020-09-25T11:52:44.151 hyperiond HYPERION     : <DEBUG> PriorityMuxer.cpp:333:setCurrentTime() | Set visible priority to 0
2020-09-25T11:52:44.151 hyperiond HYPERION     : <DEBUG> Hyperion.cpp:538:handlPriorityChangedLedDevice() | priority[0], previousPriority[255]
2020-09-25T11:52:44.151 hyperiond HYPERION     : <DEBUG> Hyperion.cpp:548:handlPriorityChangedLedDevice() | new source available -> switch LED-Device on
2020-09-25T11:52:44.156 hyperiond V4L2:/DEV/VI : <INFO> Started
2020-09-25T11:52:44.157 hyperiond V4L2:/dev/vi : <DEBUG> GrabberWrapper.cpp:48:start() | Grabber start()
2020-09-25T11:52:44.158 hyperiond HYPERION     : <INFO> Hyperion instance 'First LED Hardware instance' has been started
2020-09-25T11:52:44.172 hyperiond HYPERION     : <DEBUG> PriorityMuxer.cpp:238:setInputImage() | Priority 0 is now active
2020-09-25T11:52:44.193 hyperiond WEBSERVER    : <DEBUG> WebServer.cpp:175:handleSettingsUpdate() | Setup SSL certificate
2020-09-25T11:52:44.194 hyperiond WEBSERVER    : <DEBUG> WebServer.cpp:191:handleSettingsUpdate() | Setup private SSL key
2020-09-25T11:52:44.194 hyperiond WEBSERVER    : <INFO> Started on port 8092 name 'Hyperion Webserver'
2020-09-25T11:52:44.671 hyperiond HYPERION     : <DEBUG> PriorityMuxer.cpp:238:setInputImage() | Priority 240 is now active
2020-09-25T11:52:47.305 hyperiond HYPERION     : <DEBUG> PriorityMuxer.cpp:298:setCurrentTime() | Timeout clear for priority 0
2020-09-25T11:52:47.482 hyperiond WEBSOCKET    : <DEBUG> WebSocketClient.cpp:30:WebSocketClient() | New connection from ::ffff:192.168.1.5
2020-09-25T11:52:47.482 hyperiond WEBSOCKET    : <DEBUG> JsonAPI.cpp:81:handleInstanceSwitch() | Client '::ffff:192.168.1.5' switch to Hyperion instance 0
2020-09-25T11:52:47.555 hyperiond HYPERION     : <DEBUG> PriorityMuxer.cpp:333:setCurrentTime() | Set visible priority to 240
2020-09-25T11:52:47.556 hyperiond HYPERION     : <DEBUG> Hyperion.cpp:538:handlPriorityChangedLedDevice() | priority[240], previousPriority[0]
^C
Hyperion caught signal :SIGINT
2020-09-25T11:53:11.066 hyperiond DAEMON       : <DEBUG> hyperiond.cpp:174:freeObjects() | Cleaning up Hyperion before quit.
2020-09-25T11:53:11.068 hyperiond FLATBUFSERVE : <INFO> Stopped
2020-09-25T11:53:11.069 hyperiond PROTOSERVER  : <INFO> Stopped
2020-09-25T11:53:11.071 hyperiond WEBSERVER    : <INFO> Stopped Hyperion Webserver
2020-09-25T11:53:11.072 hyperiond WEBSERVER    : <INFO> Stopped Hyperion Webserver
2020-09-25T11:53:11.074 hyperiond HYPERION     : <INFO> Hyperion instance 'First LED Hardware instance' has been stopped
2020-09-25T11:53:11.155 hyperiond LEDDEVICE    : <INFO>  Stopped LedDevice 'lightpack'
2020-09-25T11:53:11.161 hyperiond Dispmanx     : <DEBUG> GrabberWrapper.cpp:42:~GrabberWrapper() | Close grabber: Dispmanx
2020-09-25T11:53:11.170 hyperiond V4L2:/DEV/VI : <INFO> Stopped
2020-09-25T11:53:11.170 hyperiond V4L2:/dev/vi : <DEBUG> GrabberWrapper.cpp:58:stop() | Grabber stop()
2020-09-25T11:53:11.170 hyperiond V4L2:/dev/vi : <DEBUG> GrabberWrapper.cpp:42:~GrabberWrapper() | Close grabber: V4L2:/dev/video0
2020-09-25T11:53:11.170 hyperiond MAIN         : <INFO> Application closed with code 0
2020-09-25T11:53:11.170 hyperiond DAEMON       : <DEBUG> PythonInit.cpp:57:~PythonInit() | Cleaning up Python interpreter

@Lord-Grey
Copy link
Collaborator

@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
Copy link
Contributor

pdecat commented Sep 25, 2020

Sure, no problem for further testing.

Disabling then re-enabling the LED device in Remote Control page works fine with the patched version.

@pdecat
Copy link
Contributor

pdecat commented Sep 25, 2020

Note: building your current patch only works with the builder docker image based on debian buster. With stretch, it fails:

/source/libsrc/leddevice/dev_hid/LedDeviceLightpack.cpp: In member function ‘virtual bool LedDeviceLightpack::init(const QJsonObject&)’:                                                 
/source/libsrc/leddevice/dev_hid/LedDeviceLightpack.cpp:84:38: error: ‘LIBUSB_OPTION_LOG_LEVEL’ was not declared in this scope                                                           
    libusb_set_option(_libusbContext, LIBUSB_OPTION_LOG_LEVEL, LIBUSB_LOG_LEVEL_INFO);                                                                                                   
                                      ^~~~~~~~~~~~~~~~~~~~~~~                                                                                                                            
/source/libsrc/leddevice/dev_hid/LedDeviceLightpack.cpp:84:84: error: ‘libusb_set_option’ was not declared in this scope                                                                 
    libusb_set_option(_libusbContext, LIBUSB_OPTION_LOG_LEVEL, LIBUSB_LOG_LEVEL_INFO);                                                                                                   

@Lord-Grey
Copy link
Collaborator

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.

@Lord-Grey
Copy link
Collaborator

Does anybody make use of the MultiLighpack device?
Does anyone have multiple Lightpacks running with Hyperion.

I would like to check, if that device makes sense to be removed and Lightpacks are configured via individual instances for a better experience....

@gamer06
Copy link

gamer06 commented Oct 24, 2020

Hello. I had not seen this post, my mistake ...
My lightpack doesn't work. To start I leave here a log:

`pi@HyperBian:~ $ lsusb -v -d 1d50:6022

Bus 001 Device 004: ID 1d50:6022 OpenMoko, Inc. LightPack
Couldn't open device, some information will be missing
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x1d50 OpenMoko, Inc.
idProduct 0x6022 LightPack
bcdDevice 0.01
iManufacturer 1
iProduct 2
iSerial 220
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x0022
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.11
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 32
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 5
`

in web interface:
2020-10-24T21:05:10.123Z [hyperiond LEDDEVICE] (ERROR) Previous line repeats 200 times 2020-10-24T21:05:15.912Z [hyperiond LEDDEVICE] (ERROR) Previous line repeats 144 times 2020-10-24T21:05:15.920Z [hyperiond LEDDEVICE] (ERROR) Unable to write 1 bytes to Lightpack device(-1): LIBUSB_ERROR_IO 2020-10-24T21:05:15.920Z [hyperiond LEDDEVICE] (ERROR) Unable to write 1 bytes to Lightpack device(-1): LIBUSB_ERROR_IO

Thanks for any help

@Lord-Grey
Copy link
Collaborator

@gamer06 Not sure what you are looking for... Read the full issue and you will find that the issue was fixed by #1049 .
Either you install the latest master build yourself for wait for the next release.

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.

5 participants