mirror of
https://github.com/systemd/systemd.git
synced 2026-06-30 19:57:29 +00:00
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
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.