Commit Graph

29 Commits

Author SHA1 Message Date
Aditya Garg 33d31df012 Tools: Do not stop script run if modprobe fails
Older kernels do not have the Bluetooth driver, so running the script there may cause it to fail.
2022-12-24 16:05:34 +05:30
Aditya Garg 15dcd30680 Tools: use apple-touchbar instead of apple-ib-tb (#360) 2022-11-22 08:07:55 +05:30
Aditya Garg e552b89a6d Tools: Update wifi script to support iMac19,1 and iMac 19,2 (#361) 2022-11-18 19:51:41 +05:30
Aditya Garg 79e8331207 Tools: Capitalise "v" in productversion
In older versions of macos, the script failes if small v is used.
2022-11-03 22:08:56 +05:30
Aditya Garg 995c7f6a43 Revert "Tools: Add support for error on older versions in firmware script" 2022-11-03 14:03:43 +05:30
Aditya Garg 12d7dcdbea Tools: Add support for error on older versions in firmware script 2022-11-03 08:51:11 +05:30
Aditya Garg 69f813338b Tools: Add script to seperate out Linux EFI partition (#347) 2022-11-01 11:14:33 +05:30
Aditya Garg 987c18530a Define ver variable in macOS only
If done universally , the script may fail on Linux
2022-10-28 18:06:36 +05:30
Aditya Garg f9d5b44dc7 Add checks to ensure that script runs on macOS 12 or later 2022-10-28 18:03:55 +05:30
Aditya Garg c7703acca4 Tools: Remove unused variable in wifi script 2022-10-05 18:45:25 +05:30
Aditya Garg 23cfa02ebe Tools: Improvements to the WI-Fi script 2022-10-05 18:42:47 +05:30
Aditya Garg 2782cfa539 Tools: Minor improvements to the touchbar script 2022-10-05 15:32:19 +05:30
Aditya Garg 479d8f7f23 Update wiki and wifi script for BCM4377 Bluetooth (#304) 2022-08-12 16:44:22 +05:30
Aditya Garg 435af5c4f3 Tools: fix the WiFi script 2022-05-30 15:41:29 +05:30
Aditya Garg 575ef44c04 Tools: Minor improvements to the touchbar script (#260) 2022-03-19 17:48:49 +05:30
Aditya Garg 443c38d7f1 fix typo 2022-03-06 10:28:20 +05:30
Aditya Garg ba73d2a04f Tools: Add checks so that the touchbar script runs only on LInux 2022-02-08 10:55:56 +05:30
Aditya Garg d478db5d55 We do not require rebooting after running the touchbar script. 2022-02-06 20:39:45 +05:30
Aditya Garg c19a53b9c8 Embed Asahi's script in the wifi script. (#238) 2022-02-06 15:04:37 +05:30
Aditya Garg d72cfff8b3 Do not delay loading of the touchbar module (#237) 2022-02-06 11:34:03 +05:30
Aditya Garg 4672adf495 Tools: stop the touchbar script if it fails. 2022-02-06 09:46:58 +05:30
networkException 27e4af099a Tools: Mark "n" as the default option for keeing the fimware on EFI 2022-02-05 18:15:59 +01:00
Aditya Garg be9b122c56 Add scripts to fix the touchbar and suspend (#234)
```patch
From 75e93e9689b4e0b24ddd4367d241cfd90183f7d7 Mon Sep 17 00:00:00 2001
From: Aditya Garg <gargaditya08@live.com>
Date: Mon, 31 Jan 2022 19:10:18 +0530
Subject: [PATCH] Fix for touchbar

---
 drivers/hid/hid-ids.h    | 2 ++
 drivers/hid/hid-quirks.c | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h
index 859750313..94aaf8777 100644
--- a/drivers/hid/hid-ids.h
+++ b/drivers/hid/hid-ids.h
@@ -177,6 +177,8 @@
 #define USB_DEVICE_ID_APPLE_IRCONTROL4	0x8242
 #define USB_DEVICE_ID_APPLE_IRCONTROL5	0x8243
 #define USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_2021   0x029c
+#define USB_DEVICE_ID_APPLE_TOUCHBAR_BACKLIGHT 0x8102
+#define USB_DEVICE_ID_APPLE_TOUCHBAR_DISPLAY 0x8302
 
 #define USB_VENDOR_ID_ASUS		0x0486
 #define USB_DEVICE_ID_ASUS_T91MT	0x0185
diff --git a/drivers/hid/hid-quirks.c b/drivers/hid/hid-quirks.c
index 9af1dc8ae..2f5c54edc 100644
--- a/drivers/hid/hid-quirks.c
+++ b/drivers/hid/hid-quirks.c
@@ -305,6 +305,8 @@ static const struct hid_device_id hid_have_special_driver[] = {
 	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_FOUNTAIN_TP_ONLY) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER1_TP_ONLY) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_2021) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_TOUCHBAR_BACKLIGHT) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_TOUCHBAR_DISPLAY) },
 #endif
 #if IS_ENABLED(CONFIG_HID_APPLEIR)
 	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_IRCONTROL) },
-- 
2.25.1
```

We also need to apply this patch to the kernels
2022-02-02 18:10:42 +05:30
Aditya Garg cf5a87717a Minor improvements 2022-01-29 13:25:39 +05:30
Aditya Garg 4198c29aac the script made it look like we are copying Asahi 2022-01-29 12:47:23 +05:30