-
-
Notifications
You must be signed in to change notification settings - Fork 514
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[BUG] Loupedeck CT not recognized #2744
Comments
From some googling, there are two revisions of the hardware of the CT, one with a product id of 0x0003, and one with 0x0007. It looks like we only support the 0x0007 one currently, I can't tell if it would be easy or need some reworking to support the other one |
Could you try beta 6789? Hopefully that will resolve this |
The beta works! The device was found directly after installing the beta. Either, the touch buttons are working, but there is nothing shown on the touch buttons. All physical buttons are working as well, but the rotary knobs on the sides aren't working. That being said, thank you for your help so far! |
I am running beta 6818 and have a Loupedeck CT 0x0003. Firmware is 0.2.5, which Loupedeck software reports as up to date. Companion recognizes the Loupedeck surface but always says "offline". It never allows me to set any settings for the surface and won't actually show any buttons on the surface. |
I took some time to debug this issue since I also really want to use my Loupedeck CT with companion. It sounds like such a perfect fit. I think I found the 2 issues preventing this from fixing. First issue: Incomplete data sent to the write queueThe first issue is that we send invalid data to the write queue. The LoupeDeckCT write queue is expecting a full renderer as the second argument (https://github.com/bitfocus/companion/blob/main/companion/lib/Surface/USB/LoupedeckCt.js#L271C105-L271C111). This is needed to fetch the rendered image size (https://github.com/bitfocus/companion/blob/main/companion/lib/Surface/USB/LoupedeckCt.js#L286-L287). However when sending an image to the write queue we do not send the full renderer but only the resulting buffer (here: https://github.com/bitfocus/companion/blob/main/companion/lib/Surface/USB/LoupedeckCt.js#L460 and here: https://github.com/bitfocus/companion/blob/main/companion/lib/Surface/USB/LoupedeckCt.js#L463). This results in a crash when fetching the render width and height. This fix is quite straight forward: just remove the With this fix, the device is now showing up as online in the companion interface. However the victory is short lived since even if all the buttons are now working fine, the display is staying black which lead us to the second issue. Issue 2: Missing DRAW instruction in the
|
@johnsudaar thanks for the detailed exploration and writeup. What I think has happened here is that at some point in the firmware loupedeck changed how they addressed the top 3 screens. For the live, you can either treat it as 3 separate displays and issue 0x0f to flush the buffer, or you can treat it as one display and not have to do that. So it probably is just a case of adding in the flushes at the appropriate places, and making it so that they are only done for the older revision of the ct. |
Thanks a lot @Julusian. IMHO it could be added in two places, either directly on the Loupedeck CT driver directly (add some logic to make sure that the code know when and when not sending those refresh packages) or in Companion, we could add an option so send those refresh states in companion. I do not own any Loupedeck type hardware so I can try to make the PR on the driver repository but I wont be able to test it on other models (or more recent revision of my CT). |
@johnsudaar I've made the changes you proposed, could you retest this with beta 6949 or later and let me know if it works any better? |
You're way too fast for me ! |
@Julusian Can you compile a Mac ARM version of beta #6949 for me, so I can test it in my environment? Thanks a lot! |
@aboutmedia there is one of 6951 |
@Julusian Great! It works for me as well. |
Is this a bug in companion itself or a module?
Is there an existing issue for this?
Describe the bug
Having an issue with the Loupedeck CT. Companion doesn't recognize the device. The software from Loupedeck is installed, but not running. Not even in the background. The checkboxes to activate support for the Loupedeck are checked.
The firmware of the Loupedeck CT is 0.2.8.
Steps To Reproduce
No response
Expected Behavior
No response
Environment (please complete the following information)
Additional context
No response
The text was updated successfully, but these errors were encountered: