DeckBridge icon indicating copy to clipboard operation
DeckBridge copied to clipboard

[Bug]: Windows 11 – AKP153E Rev.2 display/touch mapping issues and freezes with keyboards

Open MBL-Polibuda opened this issue 2 months ago • 13 comments

Device model

Ajazz AKP153E Rev.2

Version / commit

0dc71f9

What happened?

I'm running DeckBridge 11.1 on Windows 11 with an Ajazz AKP153E/E Rev.2.

I have two separate issues:

  1. Display and touch mapping on the Ajazz AKP153E/E Rev.2 The button images displayed in the DeckBridge / Elgato Stream Deck interface do not match the physical layout of the device correctly. Additionally, the touch/button mapping does not correspond correctly to the displayed images. Touching a particular physical button can trigger the action assigned to a different position. The issue appears to be related to the device layout/orientation rather than the actual Stream Deck profile, because the physical device layout and the layout shown by the software are not aligned.

  2. DeckBridge freezes when certain USB keyboards are connected On Windows 11, DeckBridge becomes unresponsive / the web UI does not start when either of the following keyboards is connected:

  • Monsgeek M1 V5
  • Keychron Lemokey P1 Pro
Image

If I disconnect the keyboard, DeckBridge starts and the web interface becomes available. If I start DeckBridge first and then reconnect either keyboard, DeckBridge freezes again. This makes the issue reproducible with both keyboards. The keyboards themselves work normally in Windows and do not cause problems with other applications.

Environment:

  • Windows 11
  • DeckBridge 11.1
  • Ajazz AKP153E Rev.2
  • Monsgeek M1 V5
  • Keychron Lemokey P1 Pro

Steps to reproduce

Issue 1 – Ajazz AKP153E Rev.2

  1. Start DeckBridge.
  2. Connect the Ajazz AKP153E Rev.2.
  3. Open the DeckBridge web interface.
  4. Observe the displayed button images and touch/button positions.
  5. Compare them with the physical layout of the device.

Relevant logs / output


Host OS

Windows 11

MBL-Polibuda avatar Sep 13 '26 17:09 MBL-Polibuda

Część / Hello! Thank you for your report; I appreciate it. I thought no one was using or trying it.

I don’t have Windows, so this project is unfortunately untested on that operating system.

I’ll try to investigate it tomorrow. It would be great if you could provide the logs. I’ll also try to prepare and simplify the process for gathering and reporting issues like this.

//update: regarding the second issue (DeckBridge freezes when certain USB keyboards are connected) - I have no idea how to fix it since I own no hardware - the USB keyboards you have and Windows.

lukasMega avatar Sep 13 '26 20:09 lukasMega

please try newest release (v0.12.2 https://github.com/lukasMega/DeckBridge/releases/tag/deckbridge-v0.12.2) and in webui go to Settings (gear icon in header) and there I added 2 new sections:

  • Logging & diagnostics
    • you can create new diagnostic report file using "Create diagnostics report" button
  • Device tuning — <your connected device>
    • where you can adjust rotation of images and other settings:
      • Rotation
        Image fit
        Pad fill
        Width (px)
        Height (px)
        JPEG quality (0.05–1)
        Max image bytes
        Flip horizontally
        Flip vertically
        

Best next evidence:

  1. Set rotation to 90.
  2. Confirm pixel orientation.
  3. Run key-map learning.
    Start key-map learn mode.
    Press keys row-by-row.
    Start from top-left.
    Finish at bottom-right.
    Save generated mapping.
    Check every displayed action.
    
  4. Paste generated mapping.
  5. Photograph numbered test profile.

lukasMega avatar Sep 14 '26 11:09 lukasMega

deckbridge-v0.12.2

There is still a slight issue with the mapping. After applying the new mapping, the button input mapping works correctly, but the images are still displayed on the wrong buttons.

For example, when I press the top-right button on the Ajazz, it correctly triggers the top-right button in Stream Deck, even though the image displayed on the top-right button of the Ajazz does not correspond to that button.

So the button input mapping is correct, but the image mapping is still incorrect.

Image

As a possible improvement, when creating a custom mapping, it might be useful to allow a separate custom mapping for the images, or perhaps connect the two mappings so that changing the button mapping automatically adjusts the image positions as well. I think this would make the configuration easier and less prone to mistakes.

From what I can see, the stability issue seems to be fixed. The program is now much more stable.

There is still an issue with USB keyboards, however. When I connect a keyboard, the program freezes. I tested this with several different keyboards and also on another PC, so it does not seem to be specific to one keyboard or one computer. Other USB devices do not cause the same problem.

I suspect there may be some kind of loop responsible for HID device monitoring/detection that starts looping or repeatedly performs the same operation when a keyboard is connected, eventually causing the program to freeze.

And one more question — are you planning to support the screen on the right side of Mirabox/Ajazz devices and similar devices in the future? It would be really nice if DeckBridge could make use of that screen as well.

deckbridge-diagnostics (3).txt

deckbridge.log

MBL-Polibuda avatar Sep 14 '26 18:09 MBL-Polibuda

are you planning to support the screen on the right side of Mirabox/Ajazz devices and similar devices in the future? It would be really nice if DeckBridge could make use of that screen as well.

I currently have simple support, but just for my Mirabox 293S

it's called "Side keys":

  • https://lukasmega.github.io/DeckBridge/features#feature-overview
    • Side-key widgets — decks with display-only keys outside the grid (e.g. the 293S sixth column) show server-rendered clock / date / text / weather / command / plugin widgets;

  • https://lukasmega.github.io/DeckBridge/side-keys
🖼️ see it in action (click to see photo & screenshot) Image Image

lukasMega avatar Sep 14 '26 18:09 lukasMega

please try new version https://github.com/lukasMega/DeckBridge/releases/tag/deckbridge-v0.13.0

lukasMega avatar Sep 14 '26 19:09 lukasMega

After the 13.0 update, I managed to get the Stream Deck working with the keyboard connected, although it took a while to get it working properly.

I experienced my first crash, and there were also a few situations where I had to unplug and reconnect the Stream Deck before it started working again.

However, once everything is running properly, it works without any issues for 3–4 hours continuously.

One other thing that could still be improved is the way the icons are displayed. I had to set the icon size to 95×95 px for the entire icons to fit on the display.

From what I can see, the icons are positioned relative to the top-right corner, but there is still some spacing between the image and the actual edge of the display. Because of this, larger icons get partially cut off. Reducing them to 95×95 px makes the entire image fit and also makes it appear centered.

MBL-Polibuda avatar Sep 15 '26 00:09 MBL-Polibuda

Thanks. This confirms v0.13.0 stopped long-running freezes.
95×95 matches upstream AKP153E settings. DeckBridge default remains wrong. I’ll correct that model only.
Please attach fresh v0.13.1 diagnostics. Include deckbridge.log after failures. Crash timing also matters. Was keyboard connected before launch? Or connected afterward?

Please try newest release 0.13.1 https://github.com/lukasMega/DeckBridge/releases/tag/deckbridge-v0.13.1

lukasMega avatar Sep 15 '26 09:09 lukasMega

It seems to be stable now. At the beginning, it kept flickering between disconnecting and reconnecting to Elgato for a few seconds, but eventually the connection stabilized and stayed connected. This time I didn't have to unplug anything or restart the application.

deckbridge.log

deckbridge-diagnostics (5).txt

MBL-Polibuda avatar Sep 15 '26 10:09 MBL-Polibuda

@MBL-Polibuda Could you please check if latest release is working for you on Windows like 0.13.1. I did some changes regarding USB devices detection and reconnecting issues. Also polling interval was changed from 2s to 3s. Thank you

lukasMega avatar Sep 15 '26 21:09 lukasMega

At the moment, it seems to be working well. It still disconnected and reconnected for a few seconds at the beginning, but after looking into it, I think this is more likely related to the Elgato application itself.

deckbridge.log deckbridge-diagnostics (6).txt

MBL-Polibuda avatar Sep 16 '26 00:09 MBL-Polibuda

Edit: After exporting the event log, the application froze and required me to reconnect the Ajazz. However, during normal use there are currently no issues.

I’m going to bed now and will leave the application running overnight. If it disconnects during the night, I’ll let you know and provide the logs.

deckbridge.log deckbridge-diagnostics (7).txt

MBL-Polibuda avatar Sep 16 '26 00:09 MBL-Polibuda

I’ve been using it all day and haven’t noticed any major issues.

MBL-Polibuda avatar Sep 16 '26 17:09 MBL-Polibuda

I'm glad I hear these great news from you. I really appreciate it. Thank you!

BTW I created new release 0.13.7 with added batching - but only for devices Mirabox 293S (and other devices using protocol mirabox-cora-v1) where is noticeably slower image rendering, see:

  • GIF: Image
    • or video (webm): https://lukasmega.github.io/DeckBridge/assets/medias/batch-improvement-8a4a8e0f73e61e2f708493c3e642d038.webm
    • or video (mp4): https://lukasmega.github.io/DeckBridge/assets/medias/batch-improvement-1fd95a7f2240ef71afa3d240ecf9e986.mp4

You should not be affected, APK153E Rev.2 is using different protocol - more modern and faster

lukasMega avatar Sep 17 '26 12:09 lukasMega