I want to have two keyboards connected to my computer, from two different USB ports, of course.

One shall work normally, but the other one I don't want the system to collect input from. That one I shall manually read using a Python script.

How would I do this?

  • Aside from using Python to manually read it, is there a way to disable one keyboard without making it unaccessible? – user96931 Jun 4 at 21:23

After hours of searching, I decided that IOCtl(xxx,EVIOCGRAB,1) was going to solve my problem.

Documentation here:

Disable keyboard but still allow reading from it

Disable or redirect keystrokes from keyboard

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.