Linux kernel module to log pressed keys on a keyboard The logfile contains:
- code: scancode of pressed key
- duration: time interval of key pressing (msec)
- interval: time interval between t1 (previous key was released) and t2 (current key was pressed) (msec)
make
sudo insmod kbd_module.ko
sudo rmmod kbd_module
dmesg
lsmod
gedit /var/log/kbd.log