Files
systemd/hwdb.d
LucasTavaresA b48228a559 hwdb: map Brazilian ThinkPad T14 Gen 1 slash key to KEY_RO
On Lenovo ThinkPad T14 Gen 1 AMD model 20UES5TQ00 with the Brazilian
keyboard, the physical slash/question key reports as KEY_RIGHTCTRL.

This keyboard layout has no physical Right Ctrl key in that position. The
key after Space is AltGr, then PrtSc, then the slash/question key. Map the
AT keyboard scancode 0x9d to KEY_RO, matching the ABNT slash/question key
used by Brazilian keyboard layouts.

Verified with evtest:

Event: type 4 (EV_MSC), code 4 (MSC_SCAN), value 9d
Event: type 1 (EV_KEY), code 97 (KEY_RIGHTCTRL), value 1

After applying the hwdb mapping, the key reports as KEY_RO.

DMI: svnLENOVO:pn20UES5TQ00:pvrThinkPadT14Gen1
AT keyboard scancode: 0x9d
2026-06-24 15:37:27 +01:00
..
2026-06-03 12:34:44 +01:00
2026-06-19 19:08:35 +01:00
2026-06-19 19:08:35 +01:00
2025-11-17 08:54:08 +00:00
2026-06-19 19:08:35 +01:00
2025-12-17 13:32:00 +00:00
2026-06-16 17:57:06 +01:00
2024-07-03 13:51:52 +02:00
2022-02-04 11:01:20 +09:00
2026-02-20 06:38:53 +09:00
2026-06-03 12:34:44 +01:00
2026-06-19 19:08:35 +01:00
2026-06-19 19:08:35 +01:00
2026-06-19 19:08:35 +01:00
2026-06-19 19:08:35 +01:00
2026-05-18 12:16:44 +01:00
2021-03-26 09:35:07 +01:00
2026-06-16 17:57:06 +01:00

Files in this directory specify a description of hardware devices, in the form
of mappings from modalias-like keys (which identify specific hardware devices)
to udev properties.

Files in this directory are not read by udev directly. Instead,
man:systemd-hwdb(8) compiles them into a binary database.

See man:hwdb(7) for an overview of the configuration file format, and
man:systemd-udevd.service(8) for a description of the udev daemon.

Use 'systemd-analyze cat-config udev/hwdb.d' to display the effective config.