Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AUR Package not working with Macbook8,1 #15

Open
medismailben opened this issue Apr 24, 2017 · 6 comments
Open

AUR Package not working with Macbook8,1 #15

medismailben opened this issue Apr 24, 2017 · 6 comments

Comments

@medismailben
Copy link

Hi,

First, I would like to thank you for your great work. This piece of code might be the only thing that allows people to use Linux on their new mac.

I've tried installing the driver on my MacBook8,1 (12" 2015) as you explain it, and it didn't work.

Then I check the AUR repo and I was happy to find a distributed version on your driver called "macbook12-spi-driver-dkms".

The installation ran smoothly and the driver is installed according to dkms status however the keyboard and the trackpad are not working.

Just to be clear, I'm running Archlinux with kernel 4.10.11-1 and the initremap=nosid is enabled.

Am I missing something ??

@cb22
Copy link
Owner

cb22 commented Apr 24, 2017

Hey @medismailben

You might want to read through #9 - it seems that on the 2015 model, the LPSS module needs to be disabled for things to work.

Furthemore, there's current a pull request (#14) that apparently significantly improves things on the Macbook8,1 as well as the reliability of initialization and the driver in general.

@mxms0
Copy link

mxms0 commented Apr 24, 2017

This was the difference between things working and not working here on the macbook8,1.

~/linux $ diff .config goodconfig
425c425
< CONFIG_X86_INTEL_LPSS=y
---
> # CONFIG_X86_INTEL_LPSS is not set
427,428c427
< CONFIG_IOSF_MBI=y
< # CONFIG_IOSF_MBI_DEBUG is not set
---
> # CONFIG_IOSF_MBI is not set
2146,2155d2144
< CONFIG_PINCTRL=y
< 
< #
< # Pin controllers
< #
< # CONFIG_DEBUG_PINCTRL is not set
< # CONFIG_PINCTRL_CHERRYVIEW is not set
< # CONFIG_PINCTRL_BROXTON is not set
< # CONFIG_PINCTRL_GEMINILAKE is not set
< # CONFIG_PINCTRL_SUNRISEPOINT is not set
3203c3192
< CONFIG_DW_DMAC_PCI=y
---
> # CONFIG_DW_DMAC_PCI is not set

Full config for thoroughness:
config.txt

@christophgysin
Copy link
Contributor

@medismailben I'm the author of that AUR package.

Now that #14 is merged, is this still an issue? If a module needs to be blacklisted, I could add it to dkms.conf so that it will be done automatically during installation.

@mxms0
Copy link

mxms0 commented Apr 28, 2017

@christophgysin From my experience, even after displaying the LPSS module in the source tree, and recompiling, it won't work. I think there are some dependencies it has which are in-tree, and not modules, I just can't track them down. I went through all the dependencies that menuconfig showed me, but still couldn't get it. Just had to start with a fresh config. However, this is pure speculation.

@medismailben
Copy link
Author

@Maximus- In #9, it seems that you made the keyboard work on 2015 12" MacBook, but now you say it won't work.

Also on Archlinux, I couldn't find the LPSS module. @christophgysin Even after pulling latest update of the package (version 0.35), the keyboard and trackpad are not detected.

I'm not sure if that a problem but I running the stock linux kernel (it is not recompiled).

@mxms0
Copy link

mxms0 commented Apr 28, 2017

@medismailben Ah, sorry if I'm unclear. The only way I've gotten things to work is by cloning a stock linux kernel and ensuring I don't enable LPSS or it's friends. I'll investigate some more in the upcoming weeks. Oh, also, a friendly reminder– you still need DSDT modifications to allow the device to show up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants