Comments (4)
Name: linux-t2
Version: 5.18
Release: 1%{?dist}
Summary: System configuration for linux on t2 macs.
License: MIT
URL: https://t2linux.org
Source0: https://wiki.t2linux.org/tools/rmmod_tb.sh
%description
Configuration files for linux on t2 macs. The linux-t2 kernel is necessary for this to work, and this must be installed to boot. Everything works except for TouchId, eGPU, and audio switching.
%prep
cp %{_sourcedir}/* %{_builddir}
%build
echo -e 'hid-apple\nbcm5974\nsnd-seq\napple_bce' > apple_bce.conf
echo -e 'add_drivers+=" hid_apple snd-seq apple_bce "\nforce_drivers+=" hid_apple snd-seq apple_bce "' > apple_bce_install.conf
%install
mkdir -p %{buildroot}/etc/dracut.conf.d/
mv apple_bce_install.conf %{buildroot}/etc/dracut.conf.d/apple_bce_install.conf
mkdir -p %{buildroot}/etc/modules-load.d/
mv apple_bce.conf %{buildroot}/etc/modules-load.d/apple_bce.conf
mkdir -p %{buildroot}/lib/systemd/system-sleep
mv %{_builddir}/rmmod_tb.sh %{buildroot}/lib/systemd/system-sleep/rmmod_tb.sh
chmod +x %{buildroot}/lib/systemd/system-sleep/rmmod_tb.sh
%post
grubby --remove-args="efi=noruntime pcie_ports=compat" --update-kernel=ALL
grubby --args="efi=noruntime pcie_ports=compat" --update-kernel=ALL
sed -i '/^GRUB_ENABLE_BLSCFG=true/c\GRUB_ENABLE_BLSCFG=false' /etc/default/grub
grub2-mkconfig -o /boot/grub2/grub.cfg
%files
/etc/modules-load.d/apple_bce.conf
/lib/systemd/system-sleep/rmmod_tb.sh
/etc/dracut.conf.d/apple_bce_install.conf
This package removes the need for an install script. Whenever the suspend script, or grub config needs to change, just update this package, even if the kernel version is the same. To prevent the mainline kernel from being installed, this repo should have cost = 998
and priority = 98
in its *.repo
file.
from mbp-fedora-kernel.
You can enable BLS in grub, it works using this script, you have to use grubby to change kernel args, not edit the grub config file.
from mbp-fedora-kernel.
Will be done in #66
from mbp-fedora-kernel.
Done! Thanks for a suggestion!
from mbp-fedora-kernel.
Related Issues (18)
- wifi firmware load error HOT 4
- Can't turn on F-keys on touchbar on MBP 15,4 HOT 7
- After upgrading to the latest kernel (5.6.15), dnf complains about repo mbp-fedora-kernel HOT 2
- Suspend / resume HOT 3
- Interaction between Settings and Rhythmbox HOT 1
- Take Wifi driver from M1 linux? HOT 2
- wifi on MacBook Pro 15.4 (13" 2019) HOT 2
- Update script seems to be not working HOT 3
- WiFi issues HOT 81
- nvme genctr panics t2 HOT 1
- Keyboard + Trackpad not working anymore after kernel update HOT 4
- Docs on how to build custom kernel based on this repo? HOT 2
- Every time I try to update kernel it's locked to fc33 somewhy HOT 3
- Sign Packages HOT 1
- kernel 5.19.1 build and test OK; see 2022-08-14_Kernel_5.19_Test_Week HOT 1
- link broken HOT 2
- Idk How to Enable my broadcom chip HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mbp-fedora-kernel.