cb22 / macbook12-spi-driver

WIP input driver for the SPI touchpad / keyboard found in the 12" MacBook (MacBook8,1 + MacBook9,1)
GNU General Public License v2.0
300 stars 106 forks source link

Touchpad not initilized properly on MacBookPro13,3 #6

Closed roadrunner2 closed 7 years ago

roadrunner2 commented 7 years ago

Generally on boot the touchpad is unavailable; one or more 'sudo rmmod applespi && sudo modprobe applespi' will get it working, though. This seems to indicate some initialization issue. I was able to narrow things down a bit to lines 282 - 285 (sending the applespi_init_commands): if I put a loop around just those to run them 10 times, then I have a functioning touchpad on boot in about 50% of the cases. This obviously isn't a fix or even a usable workaround, of course.

Where did those magic applespi_init_commands come from? Any suggestions on how to proceed further here? Do we need to somehow trace the driver in MacOS?

roadrunner2 commented 7 years ago

@peterychuang That's good news - the latest version is a cleaner and more consistent fix. Many thanks for testing it!

cb22 commented 7 years ago

Happy to close this, @roadrunner2?

roadrunner2 commented 7 years ago

@cb22 Agreed. If this shows up again it can be re-opened or a new issue started.