Tuesday, July 8, 2014

Laggy USB MIDI Piano Keyboard

In Arch 64bit, USB Midi Piano keyboard is laggy when plugged in. Pressing a key gives a delay of about 100-200 msec.

I resolved this previously by upping timer resolution with:

sudo su -c 'echo 1024 >> /sys/class/rtc/rtc0/max_user_freq'

But it didn't work this time (I haven't used the keyboard in months) so I found https://bbs.archlinux.org/viewtopic.php?id=113019 where a similar problem occurred for a USB typing keyboard, but the same fix worked for me.

$ sudo rmmod ehci_pci && rmmod ehci_hcd
$ sudo modprobe ehci_pci && modprobe ehci_hcd


Be warned, if you are using a USB keyboard, it will likely stop working after the rmmod statements, I'm on a laptop so the built in keyboard kept working.

No comments:

Post a Comment