M-AUDIO axiom air 32 mini USB midi keyboard not recognized

Hello everyone!
I have some issue connecting an USB midi keyboard to my Zynthian v4 .
Most of the times Zynthian doesn’t recognize my M-AUDIO axiom air 32, I get the following error:

[  392.934090] usb 1-1.3: new full-speed USB device number 9 using xhci_hcd
[  393.651553] xhci_hcd 0000:01:00.0: Setup ERROR: setup address command for slot 4.
[  393.864191] xhci_hcd 0000:01:00.0: Setup ERROR: setup address command for slot 4.
[  394.084099] usb 1-1.3: device not accepting address 9, error -22
[  394.194091] usb 1-1.3: new full-speed USB device number 10 using xhci_hcd
[  394.911800] xhci_hcd 0000:01:00.0: Setup ERROR: setup address command for slot 4.
[  395.124172] xhci_hcd 0000:01:00.0: Setup ERROR: setup address command for slot 4.
[  395.344102] usb 1-1.3: device not accepting address 10, error -22
[  395.344392] usb 1-1-port3: attempt power cycle
[  396.004104] usb 1-1.3: new full-speed USB device number 11 using xhci_hcd
[  396.004223] xhci_hcd 0000:01:00.0: Setup ERROR: setup address command for slot 4.
[  396.224208] xhci_hcd 0000:01:00.0: Setup ERROR: setup address command for slot 4.
[  396.444097] usb 1-1.3: device not accepting address 11, error -22
[  396.544106] usb 1-1.3: new full-speed USB device number 12 using xhci_hcd
[  396.544218] xhci_hcd 0000:01:00.0: Setup ERROR: setup address command for slot 4.
[  396.764180] xhci_hcd 0000:01:00.0: Setup ERROR: setup address command for slot 4.
[  396.984111] usb 1-1.3: device not accepting address 12, error -22
[  396.984376] usb 1-1-port3: unable to enumerate USB device

I’m using also another keyboard (M-AUDIO oxygen 49) and I don’t have any problem with that.
Do you have any suggestion to fix the issue?
Thanks a lot!

Does it work in standard linux distros?

Yep.

Sometime the USB is randomly reconized but most of the time it is not.

Does it work if you put the zynthian into Stage mode, formally called single channel mode?

Are you using a big psu with a chonky lead or some phone charger hanging off a single strand of spider web?

Nope, it is not working in stage mode.
For the keyboard I’m using the original M-AUDIO USB cable, for the raspberry I’m using a LABISTS USB-C charger.

Hmm, sounds like a psu issue though as it sometimes works. We can discount a dodgy usb port as the pi and 'board work with other things. Do you get any lightening bolts showing up on the screen? Can you power the keyboard seperatly somehow?

The keyboard has just one mini-USB port (with a mini-USB-to-USB cable) so I’m afraid the only way to power up the keyboard is plugging it to the zynthian

How annoying. What about the lightening bolts?

I see one lightening bolt powering up the USB-C power supply and another one just before showing the Zynthian UI logo.

I typically never see them. What if you repeatedly unplug and replug the keyboard, does that bring up lightening symbols?

I don’t know if I made any confusion: I don’t see lightening bolt logos but just a king of flash light.
I don’t see anything plugging and unplugging the keyboard.
If I power up the Zynthian without any keyboard connected I still see the the flash light I mentioned before.

I’ve had a situation where some MIDI devices need a wakeup MIDI event going the other way (from zynth to Keyboard).

Interesting…what kind of midi event?

I think I sent Midi note on off. Can’t remember how I discovered it. It part of my ongoing zynthian MIDI device class that covers all kinds of weird and wonderful zynth MIDI in sources.

Do remember there is alsa & jack in all this…

aseqdump&

check you have alsa MIDI in with

aconnect -l

and then patch the MIDI source in to aseqdump …

aconnect 28:0 128:0

in my world …

The midi log in webconf is pretty helpful as well…

I meant the Red Lightning symbol

Ok, got it!
No, I confirm I don’t see any red lighting symbol.

I see but I think my problem is strictly related to the USB interface and it seems the xhci_hcd is part of the problem.

dmesg when I plugin the working M-AUDIO keyboard:

[ 1642.636801] usb 1-1.3: new full-speed USB device number 9 using xhci_hcd
[ 1642.776097] usb 1-1.3: New USB device found, idVendor=0763, idProduct=3102, bcdDevice= 1.10
[ 1642.776104] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1642.776110] usb 1-1.3: Product: Oxygen 49
[ 1642.776115] usb 1-1.3: Manufacturer: M-Audio

dmesg when I plug the “not recognized” M-AUDIO keyboard:

[ 1753.518043] usb 1-1.3: new full-speed USB device number 10 using xhci_hcd
[ 1754.235573] xhci_hcd 0000:01:00.0: Setup ERROR: setup address command for slot 3.
[ 1754.448146] xhci_hcd 0000:01:00.0: Setup ERROR: setup address command for slot 3.
[ 1754.668052] usb 1-1.3: device not accepting address 10, error -22
[ 1754.778052] usb 1-1.3: new full-speed USB device number 11 using xhci_hcd