MagicTrackpad2ForWindows icon indicating copy to clipboard operation
MagicTrackpad2ForWindows copied to clipboard

2024 USB-C version feedback

Open jbsilva opened this issue 1 year ago • 55 comments

Just writing to say thank you and share my experience. I installed yesterday's release and it's been working perfectly*! 🙌 (*missing Bluetooth 😔. I only tested for a couple of hours)

As written in the README, I manually assigned the drivers in Device Manager. It only mentions USB\VID_05AC&PID_0324&MI_00\*** & USB\VID_05AC&PID_0324&MI_01\*** and that was enough to make the trackpad work. But what about the other devices like USB\VID_05AC&PID_0324&MI_02\*** and USB\VID_05AC&PID_0324&MI_03\***? (are those for Bluetooth? And the others?)

Before connecting the Trackpad: Devices_Before

After connecting the Trackpad: Devices_After

jbsilva avatar Dec 11 '24 15:12 jbsilva

Thanks for the feedback!

The MI portion is the interface number in a composite device. Unfortunately I don't have a USB-C Magic Trackpad available for testing: I believe the PR author (@maashrafh) did some testing until the MT worked. I apologize in advance if I am wrong :-)

My question is another: looking at the imbushuo .inf file:

https://github.com/imbushuo/mac-precision-touchpad/blob/master/src/AmtPtpDeviceUniversalPkg/AmtPtpDevice.inf?plain=1#L88

perhaps it is enough to specify the driver only for the MI_01 variant?

@jbsilva: Can you do a test on a "clean" PC (or a VM)?

Thanks, Vito

vitoplantamura avatar Dec 11 '24 21:12 vitoplantamura

I tested in another laptop.

Indeed, applying only to MI_01 worked.

MI_00 shows errors though:

This device cannot start. (Code 10)
An unknown item was found in the report descriptor.
Device USB\VID_05AC&PID_0324&MI_00\8&7422bb5&0&0000 had a problem starting.

Driver Name: input.inf
Class Guid: {745a17a0-74d3-11d0-b6fe-00a0c90f57da}
Service: HidUsb
Lower Filters: 
Upper Filters: 
Problem: 0x0
Problem Status: 0xC00000E5
Device USB\VID_05AC&PID_0324&MI_00\8&7422bb5&0&0000 was configured.

Driver Name: input.inf
Class Guid: {745a17a0-74d3-11d0-b6fe-00a0c90f57da}
Driver Date: 06/21/2006
Driver Version: 10.0.22621.4111
Driver Provider: Microsoft
Driver Section: HID_Inst.NT
Driver Rank: 0xFF3205
Matching Device Id: USB\Class_03
Outranked Drivers: 
Device Updated: false
Parent Device: USB\VID_05AC&PID_0324\CC2H7S011DA0000502

trackpad_device_error

jbsilva avatar Dec 11 '24 21:12 jbsilva

so I guess our safest option is to leave the installation process as it is now...

Thank you, Vito

vitoplantamura avatar Dec 11 '24 22:12 vitoplantamura

Thanks for all the info guys!

Thought I'd share my experience too, though you'll have to excuse my total lack of understanding windows drivers:

I noticed 4 USB Input Devices, MI_00, MI_01, MI_02 and MI_03 respectively. (Though this is entirely possible it's me tampering with bluetooth, usb ports etc) It wasn't until I installed the driver on 01 that the track pad started working, which reinforces jbsilva's claim that only applying to MI_01 works.

ohmsl avatar Dec 14 '24 00:12 ohmsl

Hello,

I registered just to comment on this thread. First of all, thank you to all who contributed to this discussion so far. However I must report that the described installation procedure does not work for me. I am using Win 10 LTSC.

If I try to install either the standard or user-mode drivers for the HID MI_00 (the one which initially shows a driver error on first plugging in this device) I get Code 10 errors.

If I install the kernel mode driver on MI_00 , then the code 10 error disappears and the device is reported as working correctly, however the most functionality this produces is just simple pointer motions and physical clicks (not taps); it is recognised as a precision touchpad in Windows Settings but none of the gestures work. If I then install any of the drivers on HID MI_01 even the pointer motion stops working.

I tried uninstalling the device completely then plugging back in and installing the kernel mode driver on HID MI_01 FIRST, ignoring the error on MI_00, and after some pause this prompted a PC reboot, upon which I almost got locked out of the system as it appeared to disable ALL the USB devices including my mouse and keyboard! I managed to recover from this by logging in with the OSK and uninstalling the MTP from the device manager.

If I try installing the user-mode driver on just HID MI_01 then I get the code 10 error and the pointer doesn't work.

User Gentoli has a commit for the imbushuo drivers to incorporate the USB Type-C Device ID: https://github.com/Gentoli/magic-trackpad-precision/commit/2f9b21821ec9fa5ae48de1a03b456b6a82798203

It appears we will just need to wait and hope this gets accepted?

Thanks.

gls82 avatar Dec 15 '24 15:12 gls82

unfortunately I have no idea of an easy way to debug a problem like this.

Surely the correct driver is the user-mode one, and not the kernel-mode one, and it must be specified for both MI_00 and MI_01...

I guess our users have to accept the risk that this solution may not work.

Vito

vitoplantamura avatar Dec 15 '24 23:12 vitoplantamura

There was a large Windows 11 Update today (24H2). After completion, I noticed that gestures were not working.

There was an event in Device Manager: "Device settings for USB\VID_05AC&PID_0324&MI_01\xxx were migrated from previous OS installation". I saw that Windows reset to its own driver. I had to manually set to "Bingxing Wang" again.

jbsilva avatar Dec 16 '24 17:12 jbsilva

thanks @jbsilva for the additional information.

I still believe that this solution of manually specifying the driver in the case of the USB-C MT2 is the right compromise between security and functionality. This is assuming that it is not a question of doing it more than a couple of times a year, on the occasion of major OS updates.

For example, the alternative of using a self-signed certificate for an updated driver package containing an updated INF file would require having to add a certificate to the Trusted Root CAs of the end users' systems, which in my opinion is less "acceptable" than the current approach.

Vito

vitoplantamura avatar Dec 17 '24 02:12 vitoplantamura

@gls82 It looks like your issue can be replicated in a Win 10 LTSC VM; I made a fresh VM, attached the USBC MT2 to the VM, installed the drivers, and the Code 10 error showed up. Here's what the system dialog shows:

image image image

The Problem status code seems to be related to Windows update, less of the MT2 drivers.

Could I ask if @vitoplantamura could try testing a Lightning MT2 on a Win 10 LTSC VM? just to rule out the OS version being the issue.

maashrafh avatar Dec 18 '24 03:12 maashrafh

@maashrafh interesting, thanks. I did wonder if LTSC might be the issue, but it seems very odd if that would be affecting device drivers. I've not experienced any other driver issues on this system before.

FYI my Win version is 10.0.17763 Build 17763.

gls82 avatar Dec 18 '24 07:12 gls82

Hello, MT2 USB-C is working perfectly in Windows 10 now for me. At first, it doesn't work nicely like jbsilva's another laptop and gls82 (Showed Code 10 Error and not working at all). Next I tried remove imbushuo's driver with Driver Store Explorer and reinstalled imbushuo's and vitoplantamura's. (Also manually choosed drivers in USB\VID_05AC&PID_0324&MI_00*** & USB\VID_05AC&PID_0324&MI_01***) Then it is working correctly ^^

exesdnied avatar Dec 18 '24 07:12 exesdnied

-@exesdnied : Thanks for the feedback.

@maashrafh: It definitely makes sense to give the old MT2 a try there.

I'm downloading Windows 10 Enterprise LTSC 2019 (English) x64, which should be the @gls82 version. I'll be able to test it in a few hours.

Thanks, Vito

vitoplantamura avatar Dec 18 '24 08:12 vitoplantamura

On Windows 10 Enterprise LTSC 2019 (English) x64, fully updated, the old MT2 (including my Control Panel) works perfectly:

Win10LTSC_MT2

So the problem is in the new installation procedure for the USB-C MT2.

In the next few days, I will prepare an updated driver package with an INF file updated with the new Product Id of the USB-C MT2, signed with a self-signed certificate. This way, it will work on all systems. The downside is that the user will need to add a certificate to the Trusted Root CAs of their system to make it work. Incidentally, this is how early versions of the imbushuo driver were distributed.

My idea is that the user will be able to choose whether to use the current solution of manually specifying the driver or this second solution with the self-signed driver package.

Vito

vitoplantamura avatar Dec 18 '24 20:12 vitoplantamura

hi Everyone,

These are the self-signed drivers with the updated INF file for the USB-C MT2:

MT2FW-SelfSigned.zip

They can be installed like those of imbushuo.

The only requirement is to import the included certificate in the Trusted Root Certification Authorities (using certlm.msc).

Can anyone with a USB-C MT2 give it a try?

PS: "DriverStoreExplorer" can be used to completely delete a previous installation.

Thanks, Vito

vitoplantamura avatar Dec 19 '24 09:12 vitoplantamura

@vitoplantamura The self-signed driver works as intended in my LTSC VM, gestures and the control panel included.

Though I still wonder what differences in the driver and OS that causes it to not work on the LTSC version; would appreciate if @gls82 could try it on their physical machine.

maashrafh avatar Dec 19 '24 12:12 maashrafh

@vitoplantamura Thanks for the updated drivers. I can confirm these work on my physical LTSC install, with some caveats:

After wiping all old drivers, then installing these new drivers, the device MI_01 is now recognised correctly and all precision touchpad gestures appear to work fine. However, MI_00 still reports a code 10 error by default, and manually attempting installation of the new user-mode driver on it does not change this. Can this device be left in this state and still get full functionality from the touchpad?

mtp driver error

Furthermore, after installing the new driver, if I then try and use the "install driver" button on your control panel I get the following error:

mtp control panel error

If I try and change any of the control panel settings and click apply, it breaks the trackpad functionality entirely (cursor won't even move), and MI_00 also then reports a driver error.

Would a new version of the control panel need to be released to work with these new drivers?

gls82 avatar Dec 19 '24 14:12 gls82

@gls82 when I tested the drivers on my VM, I ignored the errors on the MI_00 device and simply disabled it (MT2 works with no issue with it disabled btw, that's how I have my daily driver set up).

Also of note is that the "Install Driver" button on the control panel is no longer necessary, as the driver that's installed via installing the .inf file is vitoplantamura's driver (no longer needs the .dll replacement workaround as the driver is now self signed with a certificate).

In my testing, the MT2 updates accordingly when I click "Apply" on the control panel.

maashrafh avatar Dec 19 '24 14:12 maashrafh

@maashrafh Ah, OK thanks. FWIW the new driver installs under a different path, which explains the above error.

I just tried disabling MI_00 completely, then changing something in the control panel and clicking apply. Same result as before: the device immediately stops working at all and gives the below specific code 10 error:

image

edit: furthermore, the device and drivers then need to be uninstalled completely and reinstalled to get functionality back.

Anyway, it's progress! I can live without the control panel customisations, but it would be nice to understand what's going wrong.

gls82 avatar Dec 19 '24 14:12 gls82

thank you both for your tests.

@maashrafh: I wonder if it would make sense to specify in the installation instructions to disable MI_00 instead... what do you think?

So, in summary, there is the problem of the two Control Panel buttons:

Install Driver, as @maashrafh correctly said, is no longer necessary. The driver path in the DriverStore has changed, because the INF file has changed (that id in the path is a hash of the INF file). In the future, when we have defined the installation procedure well, the message will be clearer...

Apply: here I would like to understand what happens.

@gls82: can you try unplugging the MT2 from the USB port and plugging it in immediately afterwards? If you do this test several times, what happens? My question is every time you plug it in, is the driver able to initialize properly? (i.e. does the MT2 work correctly every time you replug it?)

I would ask you to do another test: if you unplug the MT2, change something in the Control Panel and click Apply and then replug the MT2, what happens? Are the new Control Panel settings applied by the driver?

Thanks, Vito

vitoplantamura avatar Dec 19 '24 20:12 vitoplantamura

@vitoplantamura Thanks for the updated comments. What is device MI_00 anyway? The Bluetooth interface?

Re: your requested tests, I can confirm that on disconnecting and reconnecting the device it is always recognised correctly (I did this 5 times in a row).

Secondly, I can also confirm that disconnecting the device, then changing one or more options in the control panel, then reconnecting the device works and the new settings are applied. No driver errors reported. I also did this several times without incident. Curious.

gls82 avatar Dec 19 '24 21:12 gls82