How to do it…

evtest is a command-line tool. It will display the information on the input device. It will display all the events supported by the device. Then, it will monitor the device. We just need to run the evtest command with super user privilege. Run the command as follows:

$ sudo evtest /dev/input/event3

Get Bash Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.