You are not logged in.

#1 2023-12-16 23:20:59

godofavacyn
Member
Registered: 2023-12-16
Posts: 1

Unable to use UDEV to remap a key

I want to permanently remap caps lock to backspace, since making the change in Gnome doesn't allow the caps lock key to repeat. I have the following file saved at /etc/udev/hwdb.d/90-capsswitch.hwdb:

evdev:input:b0001v24F0p0140*
KEYBOARD_KEY_70039=backspace

The output of lsusb is this:
Bus 001 Device 004: ID 24f0:0140 Metadot Das Keyboard 4

Evtest gives me this when I press caps lock:
Event: time 1702768781.226514, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70039

All of this information looks correct with what I've read on how to do this, and yet, when I do "systemd-hwdb update", "udevadm trigger", and reboot, nothing happens every time. Caps lock is still caps lock. Am I missing something about how this should work?

EDIT: I'm using Gnome with Wayland.

Last edited by godofavacyn (2023-12-16 23:22:32)

Offline

#2 2023-12-17 09:27:24

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,048

Re: Unable to use UDEV to remap a key

evdev:input:b0003v24F0p0140*

The bus id isn't the ID of the usb hub, https://github.com/torvalds/linux/blob/ … put.h#L256

Offline

Board footer

Powered by FluxBB