Compare commits
1 Commits
macbook12-
...
master
Author | SHA1 | Date |
---|---|---|
Andy | 2df917e7a5 | 4 years ago |
@ -1,3 +1,3 @@
|
|||||||
ifeq ($(PACKAGE_SET),dom0)
|
ifeq ($(PACKAGE_SET),dom0)
|
||||||
RPM_SPEC_FILES := rpm_spec/core-dom0-linux.spec rpm_spec/core-dom0-vaio-fixes.spec rpm_spec/core-dom0-macbook12-spi-driver.spec
|
RPM_SPEC_FILES := rpm_spec/core-dom0-linux.spec rpm_spec/core-dom0-vaio-fixes.spec
|
||||||
endif
|
endif
|
||||||
|
@ -0,0 +1,16 @@
|
|||||||
|
#!/usr/bin/bash
|
||||||
|
# Add roadrunner2/macbook12-spi-driver drivers to initramfs for supporting keyboard, touchpad, touchbar in the MacBooks.
|
||||||
|
# Pre-requisite: these drivers need to be included in the Linux kernel package.
|
||||||
|
|
||||||
|
check() {
|
||||||
|
grep -q ^MacBook /sys/devices/virtual/dmi/id/product_name || return 255
|
||||||
|
}
|
||||||
|
|
||||||
|
installkernel() {
|
||||||
|
hostonly='' instmods intel_lpss intel_lpss_pci spi_pxa2xx_platform spi_pxa2xx_pci applespi apple_ib_tb
|
||||||
|
}
|
||||||
|
|
||||||
|
install() {
|
||||||
|
echo "options apple_ib_tb fnmode=2" >> "${initdir}/etc/modprobe.d/macbook12-spi-driver.conf"
|
||||||
|
echo "options applespi fnremap=1" >> "${initdir}/etc/modprobe.d/macbook12-spi-driver.conf"
|
||||||
|
}
|
@ -1 +0,0 @@
|
|||||||
add_drivers+=" intel_lpss intel_lpss_pci spi_pxa2xx_platform spi_pxa2xx_pci applespi apple_ib_tb "
|
|
@ -1 +0,0 @@
|
|||||||
options apple_ib_tb fnmode=2
|
|
@ -1,41 +0,0 @@
|
|||||||
Name: qubes-core-dom0-macbook12-spi-driver
|
|
||||||
Version: @VERSION2@
|
|
||||||
Release: 1%{?dist}
|
|
||||||
Summary: Additional modules for supporting keyboard, touchpad, touchbar in the MacBooks 2015-2018.
|
|
||||||
|
|
||||||
Group: Qubes
|
|
||||||
Vendor: Invisible Things Lab
|
|
||||||
License: GPL
|
|
||||||
URL: http://www.qubes-os.org
|
|
||||||
|
|
||||||
Source0: qubes-core-dom0-linux-@VERSION@.tar.gz
|
|
||||||
|
|
||||||
%description
|
|
||||||
[Additional modules][1] for supporting keyboard, touchpad, touchbar in the MacBooks 2015-2018.
|
|
||||||
|
|
||||||
The [current applespi driver in the upstream Linux 5.3][2] got issues such as a storm of the
|
|
||||||
"applespi spi APP00D:00: Received corrupted packet invalid message length 8 num fingers 0 tp len 48"
|
|
||||||
occasional system freezes, occasionally you cannot "modprobe -r applespi" as it would just
|
|
||||||
hang there without letting the system to gracefully shutdown/reboot.
|
|
||||||
|
|
||||||
For more information please refer to the [State of Linux on the MacBook Pro 2016 & 2017 page][3].
|
|
||||||
|
|
||||||
[1]: https://github.com/roadrunner2/macbook12-spi-driver
|
|
||||||
[2]: https://github.com/torvalds/linux/commit/038b1a05eae6666b731920e46f47d8e2332e07ff
|
|
||||||
[3]: https://github.com/Dunedan/mbp-2016-linux
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -q -n qubes-core-dom0-linux-@VERSION@
|
|
||||||
|
|
||||||
%install
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc/dracut.conf.d/
|
|
||||||
install -D macbook12-spi-driver/dracut.conf.d/macbook12-spi-driver.conf $RPM_BUILD_ROOT/etc/dracut.conf.d/
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc/modprobe.d/
|
|
||||||
install -D macbook12-spi-driver/modprobe.d/macbook12-spi-driver.conf $RPM_BUILD_ROOT/etc/modprobe.d/
|
|
||||||
|
|
||||||
%files
|
|
||||||
/etc/dracut.conf.d/macbook12-spi-driver.conf
|
|
||||||
/etc/modprobe.d/macbook12-spi-driver.conf
|
|
||||||
|
|
||||||
%changelog
|
|
||||||
@CHANGELOG@
|
|
Loading…
Reference in new issue