mac-precision-touchpad icon indicating copy to clipboard operation
mac-precision-touchpad copied to clipboard

Improve driver resiliency over device transportation stack failures

Open viper2345678901 opened this issue 5 years ago • 7 comments

I'm using the latest one with the magic trackpad 2, but the driver works and then stops working sometimes and then I get an error saying that the usb device is not functioning properly.

AB#647

viper2345678901 avatar Sep 11 '20 20:09 viper2345678901

I've hit this too. It got much worse when I upgraded to Windows version 20HW (19042.508) - It happens multiple times an hour. If I turn the trackpad off/on, it starts working again-for a while.

TylerMSFT avatar Sep 22 '20 21:09 TylerMSFT

This is definitely related to the Windows 20HW update. I downgraded my OS to the previous version, and the driver worked well. I was upgraded to 20HW again (work requirement) and the driver started failing multiple times an hour.

TylerMSFT avatar Sep 30 '20 18:09 TylerMSFT

I updated to Windows 20H2, today, and the driver is working better - I don't have to keep turning the trackpad on and off to reset.

TylerMSFT avatar Oct 09 '20 21:10 TylerMSFT

@TylerMSFT @viper2345678901 It might be related to the custom USB HID transport I implemented a few years ago. I am working on moving to system HID transport stack now (no ETA yet, Bluetooth is on it though.) This involves a hack with WDM and the way HID stack works, I hope they don't change anything soon.

imbushuo avatar Jun 12 '21 09:06 imbushuo

Thank you, @imbushuo. The problem is back, intermittently. What I see is periodic crazy high system interrupt usage in task manager (46% of an 8 core i7 Surface Book 3) The moment I unplug the trackpad, the system interrupt zero goes back to near zero. Now I'm running Windows version 21H1, and see the same thing. It's not all the time, but probably 2-3 times a week. I haven't isolated what causes it. Maybe wake from sleep is involved. Aside from this, I love this driver and how it allows me to use my trackpad with my Windows machine. I use it 8 hours a day and most weekends. Thank you very much for making it possible for me to use this trackpad! I look forward to seeing how your changes work out.

TylerMSFT avatar Jun 14 '21 17:06 TylerMSFT

@TylerMSFT Next time if you encountered high interrupt usage, please help me capture a WPR ETL trace (just not unplug the trackpad of course):

image

This should help me better understand what happens, since I am unable to reproduce this locally (for a really long time.)

imbushuo avatar Jun 15 '21 04:06 imbushuo

Will do

TylerMSFT avatar Jun 15 '21 18:06 TylerMSFT