Skip to content

Commit

Permalink
Fedora 34 readme changes (#38)
Browse files Browse the repository at this point in the history
Github Actions
  • Loading branch information
mikeeq authored Aug 26, 2021
1 parent e5f84f3 commit 567b8ec
Show file tree
Hide file tree
Showing 7 changed files with 90 additions and 66 deletions.
File renamed without changes.
52 changes: 52 additions & 0 deletions .github/workflows/build-iso.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---
name: Build Fedora ISO

on: [push, pull_request]

jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: "AgentInfo"
run: ./.github/agent-info.sh
- name: "YamlLint"
run: |
docker run \
--rm \
-w /repo \
-v $(pwd):/repo \
-t \
alpine:3.13 /bin/sh -c " \
apk add --no-cache py-pip python3 bash \
&& pip3 install yamllint \
&& yamllint -s . \
"
- name: "ShellCheck"
run: |
docker run \
--rm \
-w /repo \
-v $(pwd):/repo \
-t \
alpine:3.13 /bin/sh -c " \
apk add --no-cache shellcheck bash \
&& shellcheck $(find . -type f -name "*.sh" | tr '\n' ' ')
"
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: "Build Fedora ISO"
run: ./build_in_docker.sh
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: true
files: |
./fedora-kickstarts/output_zip/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # You don't need to add this in secrets it's by default.
47 changes: 0 additions & 47 deletions .travis.yml

This file was deleted.

33 changes: 25 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# mbp-fedora

[![Build Status](https://travis-ci.com/mikeeq/mbp-fedora.svg?branch=master)](https://travis-ci.com/mikeeq/mbp-fedora)
[![Build Status](https://github.com/mikeeq/mbp-fedora-kernel/actions/workflows/build-iso.yml/badge.svg)](https://github.com/mikeeq/mbp-fedora-kernel/actions/workflows/build-iso.yml)

Fedora ISO with Apple T2 patches built-in (Macbooks produced >= 2018).

Expand Down Expand Up @@ -116,14 +116,31 @@ macOS Mojave: 10.14.6 (18G103)
- alsa/pulseaudio config
- Dynamic audio input/output change (on connecting/disconnecting headphones jack)

```bash
## to manually change audio profile via PulseAudio cli execute
# to headphones output
pacmd set-card-profile $(pacmd list-cards | grep -B6 'alsa.card_name = "Apple T2 Audio"' | head -n1 | cut -d':' -f 2) output:codec-output+input:codec-input
```bash
## to fix pipewire configs on current mbp-fedora installations
sudo -i
curl -Ls https://raw.githubusercontent.com/mikeeq/mbp-fedora/cdc2fa6e7ef53f995041f1b86d50f34587d7b738/files/audio/apple-t2.conf -o /usr/share/alsa-card-profile/mixer/profile-sets/apple-t2.conf
curl -Ls https://raw.githubusercontent.com/mikeeq/mbp-fedora/cdc2fa6e7ef53f995041f1b86d50f34587d7b738/files/audio/91-pulseaudio-custom.rules -o /usr/lib/udev/rules.d/91-pulseaudio-custom.rules
reboot
# to speakers output
pacmd set-card-profile $(pacmd list-cards | grep -B6 'alsa.card_name = "Apple T2 Audio"' | head -n1 | cut -d':' -f 2) output:builtin-speaker+input:builtin-mic
```
## if you're using MBP16,1 please apply those commands
# https://gist.github.com/kevineinarsson/8e5e92664f97508277fefef1b8015fba
sudo -i
curl -Ls https://gist.github.com/kevineinarsson/8e5e92664f97508277fefef1b8015fba/raw/bb8319991923e1ad10f68f5c345706f2796ede21/AppleT2.conf -o /usr/share/alsa/cards/AppleT2.conf
curl -Ls https://gist.github.com/kevineinarsson/8e5e92664f97508277fefef1b8015fba/raw/bb8319991923e1ad10f68f5c345706f2796ede21/apple-t2.conf -o /usr/share/alsa-card-profile/mixer/profile-sets/apple-t2.conf
curl -Ls https://raw.githubusercontent.com/mikeeq/mbp-fedora/cdc2fa6e7ef53f995041f1b86d50f34587d7b738/files/audio/91-pulseaudio-custom.rules -o /usr/lib/udev/rules.d/91-pulseaudio-custom.rules
reboot
## to manually change audio profile via PulseAudio cli execute
# to headphones output
pactl set-card-profile $(pactl list cards | grep -B10 "Apple T2 Audio" | head -n1 | cut -d "#" -f2) output:codec-output+input:codec-input
# to speakers output
pactl set-card-profile $(pactl list cards | grep -B10 "Apple T2 Audio" | head -n1 | cut -d "#" -f2) output:builtin-speaker+input:builtin-mic
## to manually adjust built-in mic volume
pactl set-source-volume $(pactl list sources | grep -B3 "Built-in Mic" | head -n1 | cut -d"#" -f2) 300000
```

- disable iBridge network interface (awkward internal Ethernet device?)
- disable not working camera device
Expand Down
16 changes: 8 additions & 8 deletions fedora-mbp.ks
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ wpa_supplicant
-kernel-modules-5.*.fc34.x86_64
-kernel-modules-extra-5.*.fc34.x86_64
-kernel-modules-internal-5.*.fc34.x86_64
kernel-5.13.10-200.mbp16.fc33.x86_64
kernel-core-5.13.10-200.mbp16.fc33.x86_64
kernel-devel-5.13.10-200.mbp16.fc33.x86_64
kernel-modules-5.13.10-200.mbp16.fc33.x86_64
kernel-modules-extra-5.13.10-200.mbp16.fc33.x86_64
kernel-modules-internal-5.13.10-200.mbp16.fc33.x86_64
kernel-5.13.12-200.mbp16.fc33.x86_64
kernel-core-5.13.12-200.mbp16.fc33.x86_64
kernel-devel-5.13.12-200.mbp16.fc33.x86_64
kernel-modules-5.13.12-200.mbp16.fc33.x86_64
kernel-modules-extra-5.13.12-200.mbp16.fc33.x86_64
kernel-modules-internal-5.13.12-200.mbp16.fc33.x86_64

%end

Expand All @@ -38,7 +38,7 @@ kernel-modules-internal-5.13.10-200.mbp16.fc33.x86_64
### Add dns server configuration
echo 'nameserver 8.8.8.8' > /etc/resolv.conf
KERNEL_VERSION=5.13.10-200.mbp16.fc33.x86_64
KERNEL_VERSION=5.13.12-200.mbp16.fc33.x86_64
UPDATE_SCRIPT_BRANCH=v5.13-f34-mbp16
BCE_DRIVER_GIT_URL=https://github.com/t2linux/apple-bce-drv
BCE_DRIVER_BRANCH_NAME=aur
Expand Down Expand Up @@ -94,7 +94,7 @@ cp -rfv /tmp/kickstart_files/post-install-kickstart/*.ks ${INSTALL_ROOT}/usr/sha
### Copy audio config files
mkdir -p ${INSTALL_ROOT}/usr/share/alsa/cards/
cp -rfv /tmp/kickstart_files/audio/AppleT2.conf ${INSTALL_ROOT}/usr/share/alsa/cards/AppleT2.conf
cp -rfv /tmp/kickstart_files/audio/apple-t2.conf ${INSTALL_ROOT}/usr/share/pulseaudio/alsa-mixer/profile-sets/apple-t2.conf
cp -rfv /tmp/kickstart_files/audio/apple-t2.conf ${INSTALL_ROOT}/usr/share/alsa-card-profile/mixer/profile-sets/apple-t2.conf
cp -rfv /tmp/kickstart_files/audio/91-pulseaudio-custom.rules ${INSTALL_ROOT}/usr/lib/udev/rules.d/91-pulseaudio-custom.rules
### Copy suspend fix
Expand Down
2 changes: 1 addition & 1 deletion files/audio/91-pulseaudio-custom.rules
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ SUBSYSTEM!="sound", GOTO="pulseaudio_end"
ACTION!="change", GOTO="pulseaudio_end"
KERNEL!="card*", GOTO="pulseaudio_end"

SUBSYSTEMS=="pci", ATTRS{vendor}=="0x106b", ATTRS{device}=="0x1803", ENV{PULSE_PROFILE_SET}="apple-t2.conf"
SUBSYSTEMS=="pci", ATTRS{vendor}=="0x106b", ATTRS{device}=="0x1803", ENV{PULSE_PROFILE_SET}="apple-t2.conf", ENV{ACP_PROFILE_SET}="apple-t2.conf"

LABEL="pulseaudio_end"
6 changes: 4 additions & 2 deletions files/suspend/rmmod_tb.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/sh
if [ "${1}" = "pre" ]; then
modprobe -r apple_ib_tb hid_apple
modprobe -r apple_ib_tb
modprobe -r hid_apple
elif [ "${1}" = "post" ]; then
modprobe hid_apple apple_ib_tb
modprobe hid_apple
modprobe apple_ib_tb
fi

0 comments on commit 567b8ec

Please sign in to comment.