Skip to content
Open
6 changes: 5 additions & 1 deletion install/hardware/apple/fix-spi-keyboard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ product_name="$(cat /sys/class/dmi/id/product_name 2>/dev/null || true)"
if [[ $product_name =~ MacBook[89],1|MacBook1[02],1|MacBookPro13,[123]|MacBookPro14,[123] ]]; then
echo "Detected MacBook with SPI keyboard"

omarchy-pkg-add macbook12-spi-driver-dkms
# macbook12-spi-driver-dkms is obsolete: applespi is mainlined (it ships in
# the kernel package, and its header that the out-of-tree copy needs was
# removed in 6.12), so the DKMS build fails on every kernel update once
# linux-headers is present. Only the initramfs drop-in below is needed to
# get the in-tree module into the initramfs (load-bearing for LUKS roots).
sudo mkdir -p /etc/mkinitcpio.conf.d
if [[ $product_name == "MacBook8,1" ]]; then
echo "MODULES=(applespi spi_pxa2xx_platform spi_pxa2xx_pci)" | \
Expand Down
1 change: 0 additions & 1 deletion install/omarchy-other.packages
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ limine-snapper-sync
linux-firmware
linux-omarchy
linux-omarchy-headers
macbook12-spi-driver-dkms
nvidia-580xx-dkms
nvidia-dkms
nvidia-open-dkms
Expand Down
9 changes: 9 additions & 0 deletions migrations/1788476400.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
echo "Remove the obsolete MacBook SPI keyboard DKMS package"

# applespi is mainlined (it ships with the kernel package), so the out-of-tree
# driver cannot build on current kernels: its include was removed in kernel
# 6.12 and the DKMS build fails on every kernel update once linux-headers is
# present. The initramfs drop-in written by
# install/hardware/apple/fix-spi-keyboard.sh loads the in-tree module instead,
# so the package is pure failure surface.
omarchy-pkg-drop macbook12-spi-driver-dkms
4 changes: 2 additions & 2 deletions test/shell.d/hardware-quirks-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ while IFS='|' read -r leaf name want; do
got=$(run_leaf "$leaf")
[[ $got == "$want" ]] || fail "install/$leaf on $name: $want" "got: $got"
done <<'ROWS'
hardware/apple/fix-spi-keyboard.sh|macbookpro13|0|pkg-add macbook12-spi-driver-dkms|wrote etc/mkinitcpio.conf.d/macbook_spi_modules.conf
hardware/apple/fix-spi-keyboard.sh|macbook8|0|pkg-add macbook12-spi-driver-dkms|wrote etc/mkinitcpio.conf.d/macbook_spi_modules.conf
hardware/apple/fix-spi-keyboard.sh|macbookpro13|0|wrote etc/mkinitcpio.conf.d/macbook_spi_modules.conf
hardware/apple/fix-spi-keyboard.sh|macbook8|0|wrote etc/mkinitcpio.conf.d/macbook_spi_modules.conf
hardware/apple/fix-spi-keyboard.sh|macbookpro13+unreadable|0
hardware/apple/fix-spi-keyboard.sh|macbookpro15|0
hardware/fix-synaptic-touchpad.sh|synaptics|0|modprobe psmouse synaptics_intertouch=1
Expand Down