Troubleshooting Caps Lock with evtest

Use evtest to see which physical or virtual input device is sending a key.

Find Candidate Devices

for e in /sys/class/input/event*/device/name; do
  printf '%s: ' "$e"
  cat "$e"
done

Likely candidates are:

/dev/input/event4   MoErgo Glove80 Left Keyboard
/dev/input/event8   SteelSeries keyboard interface
/dev/input/event10  SteelSeries keyboard interface
/dev/input/event2   Internal keyboard

Watch One Device

sudo evtest /dev/input/event4

Press the keys or sequence that usually triggers the problem. Look for:

KEY_CAPSLOCK

If KEY_CAPSLOCK appears, that device emitted Caps Lock. If it does not, stop with Ctrl-C and test the next candidate device.

Check Current Caps State

grep -H . /sys/class/leds/input*::capslock/brightness
hyprctl devices | rg -A8 'Keyboard|capsLock'

1 means Caps Lock is on for that LED device. 0 means off.