How it works…

The evtest command will produce output as follows:

Input driver version is 1.0.1Input device ID: bus 0x11 vendor 0x2 product 0x13 version 0x6Input device name: "VirtualPS/2 VMware VMMouse"Supported events:  Event type 0 (EV_SYN)  Event type 1 (EV_KEY)    Event code 272 (BTN_LEFT)    Event code 273 (BTN_RIGHT)  Event type 2 (EV_REL)    Event code 0 (REL_X)    Event code 1 (REL_Y)    Event code 8 (REL_WHEEL)Properties:  Property type 0 (INPUT_PROP_POINTER)Testing ... (interrupt to exit)

The output shows the information presented by the kernel.

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.