Gist/FedoraMacbookPro.md

62 lines
1.3 KiB
Markdown
Raw Normal View History

2024-07-06 14:19:25 +00:00
# Macbook Pro 2017 13,3" Touch
2024-07-06 14:35:19 +00:00
## Fix usb Ethernet for most adapters:
2024-07-06 14:19:25 +00:00
add this udev rule:
https://raw.githubusercontent.com/wget/realtek-r8152-linux/master/50-usb-realtek-net.rules
## Fix Audio
Install this: https://github.com/davidjo/snd_hda_macbookpro
2024-07-06 14:34:41 +00:00
### Install Dependencies
2024-07-06 14:19:25 +00:00
```bash
2024-07-06 17:56:15 +00:00
sudo dnf install gcc kernel-devel make patch wget git kernel-devel
2024-07-06 14:34:41 +00:00
```
### Clone Project to a Save location
```bash
2024-07-06 14:19:25 +00:00
mkdir -p ~/Drivers && cd Drivers
git clone https://github.com/davidjo/snd_hda_macbookpro.git
2024-07-06 14:34:41 +00:00
```
### Install it
in the repo folder run
```bash
2024-07-06 14:48:49 +00:00
sudo ./install.cirrus.driver.sh
2024-07-06 14:19:25 +00:00
```
## Add Touchbar Drivers
### Include in Dracut
2024-07-06 14:34:41 +00:00
add this to **/etc/dracut.conf.d/macbook.conf**
2024-07-06 14:19:25 +00:00
```bash
2024-07-06 14:44:46 +00:00
add_drivers+=" applespi intel_lpss_pci spi_pxa2xx_platform apple-ib-tb "
2024-07-06 14:19:25 +00:00
```
### Install DKMS
```bash
sudo dnf install dkms
```
### Add driver files to DKMS
```bash
cd /tmp
git clone https://github.com/marc-git/macbook12-spi-driver
cd macbook12-spi-driver
sudo dkms add .
```
### Fixes for Kernel 6.5^
apply patch from this: https://github.com/prem-prakash/macbook12-spi-driver/pull/1/files#diff-984f3aa56499b4f3f2430ce4ff6da90aa14c970c7cf0acbc11790f566f619926
```bash
cd /usr/src/applespi-0.1
```
### Install Driver
```bash
2024-07-06 14:27:29 +00:00
sudo dkms install -m applespi -v 0.1 -k $(uname -r)
2024-07-06 14:34:41 +00:00
```
### Regenerate Initramfs
```bash
2024-07-06 14:34:51 +00:00
sudo dracut --force
2024-07-06 14:19:25 +00:00
```