mirror of https://github.com/marcosfad/mbp-ubuntu
Add wifi
This commit is contained in:
parent
e48547a3e1
commit
5e5e12c256
|
@ -10,6 +10,8 @@ on:
|
|||
type: string
|
||||
default: ''
|
||||
description: (optional) Choose kernel version to use from T2Linux. Without the "v".
|
||||
env:
|
||||
KERNEL_VERSION: ${{ github.event.inputs.KERNEL_VERSION }}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
@ -17,11 +19,23 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: debug
|
||||
env:
|
||||
TEST: ${{ github.event.inputs.KERNEL_VERSION }}
|
||||
run:
|
||||
echo "inputs.KERNEL_VERSION ${{ github.event.inputs.KERNEL_VERSION}}"
|
||||
echo "env.KERNEL_VERSION ${{env.KERNEL_VERSION}}"
|
||||
echo "env.TEST ${{env.TEST}}"
|
||||
|
||||
- name: Configure variables
|
||||
id: variables
|
||||
if: ${{ inputs.KERNEL_VERSION == '' }}
|
||||
env:
|
||||
KERNEL_VERSION: ${{ env.KERNEL_VERSION }}
|
||||
run: |
|
||||
KERNEL_VERSION=$(curl -Ls https://github.com/t2linux/T2-Ubuntu-Kernel/releases/ | grep deb | grep download | grep "${MBP_VERSION}" | cut -d'/' -f6 | head -n1 | cut -d'v' -f2)
|
||||
if [ -z "${KERNEL_VERSION}" ]; then
|
||||
echo "KERNEL_VERSION not set, calculating it"
|
||||
KERNEL_VERSION=$(curl -Ls https://github.com/t2linux/T2-Ubuntu-Kernel/releases/ | grep deb | grep download | grep "${MBP_VERSION}" | cut -d'/' -f6 | head -n1 | cut -d'v' -f2)
|
||||
fi
|
||||
echo "::set-output name=build::${KERNEL_VERSION}"
|
||||
|
||||
- name: Download kernel packages
|
||||
|
|
16
README.md
16
README.md
|
@ -97,6 +97,22 @@ GRUB_TIMEOUT=10
|
|||
and then:
|
||||
`sudo update-grub`
|
||||
|
||||
### Crashes with amdgpu or shutdown issues
|
||||
|
||||
Try to disable the power management by adding `amdgpu.dpm=0` to the kernel command line or disabling it temporarily using:
|
||||
```shell
|
||||
echo high | sudo tee /sys/bus/pci/drivers/amdgpu/0000:??:??.?/power_dpm_force_performance_level
|
||||
```
|
||||
|
||||
if that fix the issue for you, you can make this change permanent using:
|
||||
|
||||
```shell
|
||||
sudo su
|
||||
cat << EOF > /etc/udev/rules.d/30-amdgpu-pm.rules
|
||||
KERNEL=="card0", SUBSYSTEM=="drm", DRIVERS=="amdgpu", ATTR{device/power_dpm_force_performance_level}="high"
|
||||
EOF
|
||||
```
|
||||
|
||||
## Update to newer kernels
|
||||
|
||||
**IF YOU UPDATE THE KERNEL, REMEMBER TO ADD THE REQUIRED DRIVERS AGAIN.**
|
||||
|
|
|
@ -29,11 +29,6 @@ echo >&2 "===]> Info: Install systemd and Ubuntu MBP Repo... "
|
|||
|
||||
apt-get install -y systemd-sysv gnupg curl wget
|
||||
|
||||
mkdir -p /etc/apt/sources.list.d
|
||||
echo "deb https://mbp-ubuntu-kernel.herokuapp.com/ /" >/etc/apt/sources.list.d/mbp-ubuntu-kernel.list
|
||||
curl -L https://mbp-ubuntu-kernel.herokuapp.com/KEY.gpg | apt-key add -
|
||||
apt-get update
|
||||
|
||||
echo >&2 "===]> Info: Configure machine-id and divert... "
|
||||
|
||||
dbus-uuidgen >/etc/machine-id
|
||||
|
@ -43,7 +38,6 @@ ln -s /bin/true /sbin/initctl
|
|||
|
||||
echo >&2 "===]> Info: Install packages needed for Live System... "
|
||||
|
||||
# todo: Install the latest kernel automatically
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
apt-get install -y -qq -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" \
|
||||
ubuntu-standard \
|
||||
|
@ -64,7 +58,6 @@ apt-get install -y -qq -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="
|
|||
linux-firmware \
|
||||
grub-efi-amd64-signed \
|
||||
intel-microcode \
|
||||
linux-headers-azure \
|
||||
thermald
|
||||
|
||||
echo >&2 "===]> Info: Add firmwares"
|
||||
|
@ -113,10 +106,8 @@ sed -i "s/COMPRESS=lz4/COMPRESS=gzip/g" "/etc/initramfs-tools/initramfs.conf"
|
|||
printf '\n### applespi start ###\napple_ib_tb\napple_ib_als\n### applespi end ###' >> /etc/modules-load.d/applespi.conf
|
||||
printf '\n# display f* key in touchbar\noptions apple-ib-tb fnmode=2\n' >> /etc/modprobe.d/apple-touchbar.conf
|
||||
|
||||
echo >&2 "===]> Configure amdgpu"
|
||||
cat << EOF > /etc/udev/rules.d/30-amdgpu-pm.rules
|
||||
KERNEL=="card0", SUBSYSTEM=="drm", DRIVERS=="amdgpu", ATTR{device/power_dpm_force_performance_level}="high"
|
||||
EOF
|
||||
echo >&2 "===]> Info: Install wifi firmware... "
|
||||
dpkg -i /tmp/setup_files/wifi/iso-firmware.deb
|
||||
|
||||
#echo >&2 "===]> Info: install mpbfan ... "
|
||||
#git clone https://github.com/networkException/mbpfan /tmp/mbpfan
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue