F1zus wrote: ↑21 Oct 2023, 18:25
I would like to know what happens after switching the mouse dpi via a button.
Great idea!
I'm currently having trouble getting my (brand new...) Logitech G502 X to consistently switch between its DPI settings, and when using the Logitech OMM (Onboard Memory Manager) program it doesn't seem to have any effect (as-in, my mouse pointer movement felt roughly the same even when I set it to 400dpi vs. 3200dpi).
But even-so, I did do a software-only (ETW) trace of kernel and user-mode events and looked at the data in-detail and again, saw no difference when I moved my mouse sufficiently fast over my mousepad (just moving it back-and-forth rapidly about 3-4cm total displacement)
400dpi on the left, 3200dpi on the right:

- 400dpi vs 3200dpi.png (588.71 KiB) Viewed 9247 times
Ultimately, the data/information in the screenshot above isn't particularly interesting from a troubleshooting perspective, all it does is confirm that (my mouse, at least) will report at 1000Hz at both 400dpi and 3200dpi - which is what I expected.
I haven't looked at this in detail too much, and ETW/software traces are heavily dependent on the the system's own timekeeping so this data alone won't be too useful without an independent timing source (such as the one used by a hardware USB trace from my Beagle), and the USB events don't seem to include any of the raw HID report data (despite using the "FullDataBusTrace" keyword) so I can't see the raw traffic (which is what we both wanted to see, sorry!).
But don't worry, I will repeat a comparison of different DPI settings (and with a hardware USB trace) once I've resolved the other known problems with my data-collection methodology.
----
What is interesting is that the traces show there's some disk activity happening with each mouse event - but it could be because I was recording the trace to-disk (rather than keeping it in-memory). Also, after I made the traces I learned that I need to use a different trace-provider to get CPU power information (i.e. C-states, etc) so I'll include that next time.
The unsettling things about this whole adventure is that the more I learn (about how USB, Windows, profiling, and computer hardware in general) the more uncertainty and questions I have, instead of answers, argh
