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
298 stars 103 forks source link

Macbook 2017 12" ssd512 i5u 8gb usb-c all work fine trackpad and keyboard, but if suspend/resumen bug #52

Open reproteq opened 6 years ago

reproteq commented 6 years ago

Macbook 2017 12" ssd512 i5u 8gb usb-c KALI LINUX 2017.2 INSIDE kernel 4.13 refind
kali linux 2017.2

cb22/macbook12-spi-driver (keyboard and trackpad work, but if suspend/resume not work more, need reboot) have solution?

https://youtu.be/gHMjfi38ji0

https://youtu.be/Wau2sD1lmYw

rquast commented 6 years ago

Does suspend/resume work properly with the 2017 12"? That is, does the keyboard still work after resume?

reproteq commented 6 years ago

uff.... not man not work after suspend/resume. i think problem is User Manager UID

rquast commented 6 years ago

it might be this... https://github.com/cb22/macbook12-spi-driver/issues/49

roadrunner2 commented 6 years ago

@reproteq Sorry, I'm a little unclear as to the state of resume on this laptop: you're saying that resume is not working, right? Can you be a bit more specific: what isn't working? Is the keyboard working or not? What else is not working?

reproteq commented 6 years ago

all work fine keybord, mouse but when resume/suspend not working more i need reboot is posible solution for this bug?

roadrunner2 commented 6 years ago

@reproteq Just before suspending (assuming a working keyboard at this point), can you set the debug param to enable logging of some of the SPI packets:

echo 0x0507 | sudo tee /sys/module/applespi/parameters/debug

After resume you can turn off that logging by setting the debug param to 0 again. This should generate a moderate amount of output (a hexdump of each 256 byte packet, one packet for each key event plus a few others). Then provide the dmesg output for that, please.