HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
cb22
macbook12-spi-driver
C2016–2020
cb22 / macbook12-spi-driver

macbook12-spi-driver

WIP input driver for the SPI touchpad / keyboard found in the 12" MacBook (MacBook8,1 + MacBook9,1)

4Distinct people
7Mentions
0Explicit recommenders
329GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

WIP input driver for the SPI touchpad / keyboard found in the 12" MacBook (MacBook8,1 + MacBook9,1)

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 8–Nov 15 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/15/2026, 2:04:58 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year7 dated mentions

Observed mentions: 2016-11-10 23:03:47 UTC to 2020-04-26 04:34:27 UTC.

01232016-01-01 00:00:00 UTC to 2017-01-01 00:00:00 UTC (exclusive): 3 mentions; 0 submissions, 3 comments20162017-01-01 00:00:00 UTC to 2018-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2018-01-01 00:00:00 UTC to 2019-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments20182019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2020

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20162016-01-01 00:00:00 UTC2017-01-01 00:00:00 UTC303
20172017-01-01 00:00:00 UTC2018-01-01 00:00:00 UTC202
20182018-01-01 00:00:00 UTC2019-01-01 00:00:00 UTC000
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC000
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC202

What Hacker News says

2 sources
> Can I install Debian on it and have stuff working? Depends on the kind of Mac you buy. I can only comment on their mobile offerings: - Best supported are the current MacBook Airs. Everything except the Webcam should work out-of-the-box. The webcam needs the out-of-tree bcwc_pcie driver (https://github.com/patjak/bcwc_pcie)). - The Retina MacBooks need some manual work before being usable (e.g. need to compile out-of-tree keyboard & touchpad driver (https://github.com/cb22/macbook12-spi-driver)), but should work fine as well. - The MacBook Pros before October 2016 are also quite good supported, the support for newer ones is still quite incomplete (check out https://github.com/Dunedan/mbp-2016-linux for details), although it's possible to use them as daily driver if you're aware of the limitations.
In “We have obtained fully functional JTAG for Intel CSME via USB DCI”
> Apple just doesn't seem to care about build quality beyond the cosmetics of their Mac lineup. A great example of this is how they have dual connections from the keyboard & trackpad to the mainboard (USB and SPI), while the UEFI and Linux have drivers to support the keyboard fully, macOS has no driver for the built-in USB connection. Well, it's complicated. In the past mobile Macs used USB to connect the input devices like most other notebooks do. At a certain point Apple decided that it would be a good idea to switch to SPI for power consumption reasons. Following that decision there were certain models which had wired both, e.g. the MacBook Pro 2015. While Apple switched already to use SPI there, Linux still used USB, as there was simply no driver support. The Retina MacBook in 2015 was the first mobile Mac which didn't support USB for
Read the rest
input devices anymore. The MacBook Pro followed in late 2016. That left Linux without a working driver for the input devices. A year ago somebody started to reverse engineer the SPI protocol to get a working driver: https://github.com/cb22/macbook12-spi-driver/ The release of the SPI-only MacBook Pros end of last year sparked the further development of this driver, so it's slowly reaching a state were everything is just working (maybe except for advanced Touchpad features). That driver is still not included in any major Linux distribution, as it's still pretty experimental and also required patching the Linux kernel for quite some time, because Apple does some ACPI-related stuff different than the PC-world. Thankfully support for Apples way will land in the upcoming Linux 4.14 (https://github.com/torvalds/linux/commit/53ac64aac9af8cd0e54...) making some code in the driver redundant (https://github.com/cb22/macbook12-spi-driver/pull/46). So I would say that whole topic isn't about not to care about build quality, but about to care about power consumption. Still having USB on some generations of Macs in addition to SPI was probably simply to ease the migration by unbundling the hardware changes from the software changes.
In Thinkpad X62

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.