NFC quirk as a HID keyboard

I got an NFC reader at work and had to begin registering cards for our newly installed door-entry system. Sadly, instead of proper UIDs of the cards, I would get what seemed incorrect data at first and I thought that it was a Linux issue since it worked fine on a Windows VM in pass-through mode.

This NFC reader works as a keyboard

What I failed to realise at first is that the NFC reader works as a keyboard. That means when it tried to enter numbers (in my case from 1 to 8) on Windows, which had the United States keyboard layout active, it would enter the correct NFC card UID. But on my Linux host, which I failed to notice had the keyboard layout switched to Lithuanian, it wrote Lithuanian specific letters (ą,č,ę, etc.) as the numbers above the keyboard translate to those.

A black plastic rectangular NFC card reader

Simple solution

It’s a simple issue as changing the keyboard layout fixes it. Yet I’ve spent a good 20 minutes searching around the internet for answers. I might’ve searched wrong. But I haven’t stumbled upon such a simple answer as “just change your keyboard layout, you bilingual snob”.

.
Tags: nfc