diff --git a/install/hardware/apple/fix-spi-keyboard.sh b/install/hardware/apple/fix-spi-keyboard.sh index 59d4b12f881b..558af028d9e1 100644 --- a/install/hardware/apple/fix-spi-keyboard.sh +++ b/install/hardware/apple/fix-spi-keyboard.sh @@ -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)" | \ diff --git a/install/omarchy-other.packages b/install/omarchy-other.packages index 2d3e689d3f5f..9f96b40938c1 100644 --- a/install/omarchy-other.packages +++ b/install/omarchy-other.packages @@ -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 diff --git a/migrations/1788476400.sh b/migrations/1788476400.sh new file mode 100644 index 000000000000..3886647894e3 --- /dev/null +++ b/migrations/1788476400.sh @@ -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 diff --git a/test/shell.d/hardware-quirks-test.sh b/test/shell.d/hardware-quirks-test.sh index 809e5f758b98..ba2824fa99bd 100644 --- a/test/shell.d/hardware-quirks-test.sh +++ b/test/shell.d/hardware-quirks-test.sh @@ -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