MIDI Keyboard with 0218:0201 Hangzhou Worlde driver connects and disconnects

Hello Manjaro and GNU/Linux community,

I borrowed a Waldman Krypton 25 MIDI Controller/Keyboard ( http://www.waldman-music.com/audio-dj-iluminacao/krypton-25/ ) from a friend of mine that actually works fine on Windows 7. This device connects and reconnects as showed below. On jack by a2j it appears and disappears.

https://www.youtube.com/watch?v=Vz9CKDamcGc

On lsusb the same:

[mojo@BlackCatBone ~]$ lsusb
Bus 002 Device 082: ID 0218:0201 Hangzhou Worlde 
Bus 002 Device 025: ID 0101:0007  
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0402:9665 ALi Corp. Gateway Webcam
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[mojo@BlackCatBone ~]$ lsusb
Bus 002 Device 122: ID 0218:0201 Hangzhou Worlde 
Bus 002 Device 025: ID 0101:0007  
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0402:9665 ALi Corp. Gateway Webcam
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

at aconnect -i it also appears and disappears, but when appears shows as normal.

 [mojo@BlackCatBone ~]$ aconnect -i
client 0: 'System' [type=kernel]
    0 'Timer           '
    1 'Announce        '
client 14: 'Midi Through' [type=kernel]
    0 'Midi Through Port-0'
client 20: 'USB Device 0x218:0x201' [type=kernel,card=1]
    0 'USB Device 0x218:0x201 MIDI 1'

on aseqdum -p ## it appears and disappears too and do not shows any MIDI events.

[mojo@BlackCatBone ~]$ aseqdump -p 20
Cannot connect from port 20:0 - Invalid argument
[mojo@BlackCatBone ~]$ aseqdump -p 20
Waiting for data. Press Ctrl+C to end.
Source  Event                  Ch  Data
  0:1   Port unsubscribed          20:0 -> 128:0

My system:

[mojo@BlackCatBone ~]$ inxi
CPU: Dual Core Intel Core i3 M 350 (-MT MCP-) 
speed/min/max: 1078/933/2266 MHz Kernel: 4.17.0-2-MANJARO x86_64 Up: 3h 11m 
Mem: 1548.1/3622.2 MiB (42.7%) HDD: 298.09 GiB (75.0% used) Procs: 179 
Shell: bash 4.4.19 inxi: 3.0.10 

It works fine on Windows with Kontakt, my frend's pc. I also have a Worlde Easycontrol.9 (midi surface controller) that works fine on my machine with Ardour5. I also tried with Linux Kernel 4.14 so i upgraded to 4.17 to see what happened w/o success. I grab a second cable and tried with all usb ports. I also tried with a notebook with pure Arch Linux and it appeared and disappeared like videos above.

I read all documentation like wiki.archlinuxDOTorg/index.php/USB_MIDI_keyboards and wiki.archlinuxDOTorg/index.php/MIDI

Any ideas? I just don't know what to do now. E-mail me if you want heitordrp@gmail.com

Thank you for your attention.

If you boot with the 4.14 kernel that connect/disconnect will not occur. Is something that was introduced in the 4.16 and 4.17 kernels that make some USB devices to connect/disconnect simultaneously (event16) ... You will find it in X.org Log

As per any troubleshoot we prefer this forum, in this format, not an e-mail address.
Hope this clarifies the issue.

Another little video

https://www.youtube.com/watch?v=vKHcceFbrdg

Hello, bogdancovaciu,

I tried more Kernels at this time, 3.18, 4.14 rt, 4.14, 4.16rt and 4.17 and nothing changed. I also tweaked Jackd with different drives, etc, but i think there's nothing to do with jack. Is the way that the system sees the keyboard that isn't working here, something that seems to do with the Kernel but i got no success on my attempts..

I also thought could be some sort of malfunction but i tried in another usb ports and just tried on a nb with windows installed and worked as expected. I've never seen any device like this. I have a Worlde Easycontrol.9 and a chinese MIDI-USB adapter with no brand that i bought from aliexpress to connect an old keyboard with midi out to my nb and everything works well.

Thank you so much for your reply, i'll keep trying.

Hello,

The reasons i was mentioning the kernels higher in version than the 4.14 is because on any of those, i get the same behavior as you described with my cintiq device. it connects and disconnects, but then i plug it back in or turn it off and on again and it works. Is a bit of an inconvenient, but i couldn't find a better workaround. In fact i get the same with some other usb devices. Always that event16 is connect/identification_of_the_device/disconnect ...

Interesting. I just can't understand the reason things like these were not solved in newer kernels.. I hope this post can attract the attention of the devs. Thank you so much, i'll give more focus to older kernels when trying to solve this.

dmesg says

[ 2624.172768] usb 2-1.1: new full-speed USB device number 88 using ehci-pci
[ 2624.273599] usb 2-1.1: New USB device found, idVendor=0218, idProduct=0201, bcdDevice= 0.00
[ 2624.273607] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2624.273611] usb 2-1.1: Product: USB MIDI Controller
[ 2624.273615] usb 2-1.1: Manufacturer: **
[ 2624.476229] usb 2-1.1: USB disconnect, device number 88

Once you unplug it and plug it back in, it should work. A bit inconvenient, but ... I still didn't find the reason behind the 4.17 kernel doing that. You could make use of 4.14 kernel (where the unplug event doesn't happen - at least on my machine it doesn't happen)

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by