Usage: mouse-dpi-tool /dev/input/event0 This tool reads relative events from the kernel and calculates the distance covered and maximum frequency of the incoming events. Some mouse devices provide dynamic frequencies, it is recommended to measure multiple times to obtain the highest value.