From 455a30be5e837a09410ab464a0de049522c907f9 Mon Sep 17 00:00:00 2001 From: Wryn Wagner Date: Tue, 22 Oct 2019 11:55:09 -0600 Subject: [PATCH] Added systemd utils --- systemd-utils/macbook_pro13/backlight-control.service | 8 ++++++++ systemd-utils/macbook_pro13/suppress-gpe.service | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100755 systemd-utils/macbook_pro13/backlight-control.service create mode 100755 systemd-utils/macbook_pro13/suppress-gpe.service diff --git a/systemd-utils/macbook_pro13/backlight-control.service b/systemd-utils/macbook_pro13/backlight-control.service new file mode 100755 index 0000000..9971a73 --- /dev/null +++ b/systemd-utils/macbook_pro13/backlight-control.service @@ -0,0 +1,8 @@ +[Unit] +Description=Enables the gmux backlighting. This is a non-standard NVIDIA issue on Macbooks + +[Service] +ExecStart=/usr/bin/bash -c 'setpci -v -H1 -s 00:01.00 BRIDGE_CONTROL=0; gmux_backlight 400' + +[Install] +WantedBy=multi-user.target diff --git a/systemd-utils/macbook_pro13/suppress-gpe.service b/systemd-utils/macbook_pro13/suppress-gpe.service new file mode 100755 index 0000000..6fe2ab9 --- /dev/null +++ b/systemd-utils/macbook_pro13/suppress-gpe.service @@ -0,0 +1,8 @@ +[Unit] +Description=Disables GPE 66, an interrupt that is going crazy on Macs + +[Service] +ExecStart=/usr/bin/bash -c 'echo "disable" > /sys/firmware/acpi/interrupts/gpe16; echo "disable" > /sys/firmware/acpi/interrupts/gpe17;' + +[Install] +WantedBy=multi-user.target