heads icon indicating copy to clipboard operation
heads copied to clipboard

CAPSLOCK Detection

Open barbed-overflow opened this issue 2 years ago • 3 comments

CAPSLOCK Detection when typing in password to avoid lockout.

barbed-overflow avatar Sep 01 '23 12:09 barbed-overflow

Have not found a unified way to do that with busybox yet, thanks for the reminder.

One way, not even sure its there since those ThinkPad do not have the caplsock led which is the problem here, could be

cat /sys/class/leds/tpacpi::kbd_backlight/max_brightness

xset could do it, but not sure. Will have to dig down here (yeek x)

tlaurion avatar Sep 01 '23 13:09 tlaurion

Nope. Just changes the led, not interact with console....

tlaurion avatar Jan 13 '24 06:01 tlaurion

Seems like kbd tool would permit this. Smallest poc would be c code, ioctl on try to check input modifiers.

Still ugly. Is there something from keyboard drivers exposed?

tlaurion avatar Jan 20 '24 23:01 tlaurion