Re: ALSA MIDI on Raspberry PI: no events from input device (USB keyboard)

Fernando Carello <[email protected]> Sun, 31 Jan 2021 18:29:20 +0100
Newsgroups gmane.linux.alsa.user
Message-ID <CAFgqmsbjRUpp6GcNhzhL1aE9HryykmPo3BKE2Yx7AoxFCbwG9g@mail.gmail.com>
> > The keyboard seem to send raw midi messages in a stream, but Alsa does
> > not translate them in Sequencer events.
>
> Strange. This should happen automatically, especially if the sequencer
> device (port 20) is there.
>
> Does the count in /proc/asound/card1/midi0 increase while aseqdump
> is running?

No, it stays fixed (this time the keyboard is on port 16):

aseqdump --p 16
Waiting for data. Press Ctrl+C to end.
Source  Event                  Ch  Data
 16:0   Active Sensing


tail -f midi0
GarageKey mini

Output 0
  Tx bytes     : 0
Input 0
  Rx bytes     : 10155
  Owner PID    : 2224
  Buffer size  : 4096
  Avail        : 0
  Overruns     : 0
tail: midi0: file truncated
GarageKey mini

Output 0
  Tx bytes     : 0
Input 0
  Rx bytes     : 10155
  Owner PID    : 2224
  Buffer size  : 4096
  Avail        : 0
  Overruns     : 0