From c780b24e7e9f1fe181dcdcf069b27fd2a76d41bd Mon Sep 17 00:00:00 2001 From: iurjscsi1101500 <80307553+iurjscsi1101500@users.noreply.github.com> Date: Sat, 21 Nov 2026 00:05:17 +0530 Subject: [PATCH 1/8] Update hybrid-graphics.md --- docs/guides/hybrid-graphics.md | 102 +++------------------------------ 1 file changed, 8 insertions(+), 94 deletions(-) diff --git a/docs/guides/hybrid-graphics.md b/docs/guides/hybrid-graphics.md index 28e46ecd..88bb0550 100644 --- a/docs/guides/hybrid-graphics.md +++ b/docs/guides/hybrid-graphics.md @@ -1,106 +1,26 @@ -# Introduction +0# Introduction This page describes how to use the iGPU on MacBook Pros with Hybrid Graphics (2 GPUs). 13-inch MacBooks only have an iGPU and do not need this. Using the iGPU means you can save power by putting the more powerful AMD dGPU in a low power state when you don't need it. -This has been tested on the MacBookPro16,1 and the MacBookPro15,1. The 15,3 and 16,4 models are very similar and should work too. +This has been tested on All T2 MacBook Pros with Hybrid Graphics. -Make sure you have a T2 kernel of version greater than 6.9.8-1 (you can check this with `uname -r`). - -## Issues - -If you experience system freezes followed by high fan speeds and sudden shutdowns (CPU CATERR), or if the AMD GPU is causing excessive heat, try the following solutions: - -1. Set the iGPU as the main GPU (instructions below) - -2. Set the AMD GPU Dynamic Power Management level from auto to low or high. Low can be safer option to avoid thermal issues or save battery. *Note this will not work on MacBookPro15,1 as the `amdgpu` driver does not support runtime PM on Polaris cards.* - - You can test it quickly with: `echo low | sudo tee /sys/bus/pci/drivers/amdgpu/0000:0?:00.0/power_dpm_force_performance_level` - - To apply the low level automatically, create `/etc/udev/rules.d/30-amdgpu-pm.rules` file with the following contents (on NixOS, use `services.udev.extraRules` in your configuration): - - ```plain - SUBSYSTEM=="drm", DRIVERS=="amdgpu", ATTR{device/power_dpm_force_performance_level}="low" - ``` - - You can also control the AMD GPU DPM with GUI tools such as [radeon-profile](https://github.com/emerge-e-world/radeon-profile). For GPU intensive tasks like playing games, machine learning or rendering you can try setting the DPM to high instead. +Make sure you have a T2 kernel of version greater than 7.3.3 (you can check this with `uname -r`). ## Making the iGPU the primary display adapter By default T2 Macs with hybrid graphics use the dGPU as primary display adapter, which in return requires the dGPU to be always powered on. To save energy and reduce battery consumption, we can force the iGPU to be the primary display adapter and default graphics accelerator in a first step. -1. Configure apple-gmux to switch to the iGPU at boot - - 1. Create `/etc/modprobe.d/apple-gmux.conf` with the following contents: +1. Configure `apple-gmux` to switch to the iGPU at boot. + 1. You can use the **T2-Hybrid-gpu-control** app provided by KaiT2en: https://github.com/kaiT2en/KaiT2en-Fedora/tree/main/apps/t2-hybrid-gpu-control - ```plain - # Enable the iGPU by default if present - options apple-gmux force_igd=y - ``` - - 2. Or alternatively, add kernel parameter `apple_gmux.force_igd=1` + 2. Alternatively, you can manually set the EFI variable `gpu-power-prefs-fa4ce28d-b62f-4c99-9cc3-6815686e30f9` on every boot (5th byte: `1` = IGD, `0` = DIS). After reboot `glxinfo | grep "OpenGL renderer"` should show an Intel GPU. Running programs with `DRI_PRIME=1` will make them render on your AMD GPU. On Gnome, by right clicking an application you can choose to run it using dedicated graphics. -## Disabling the dGPU - -We can take this a step further and save substantial amounts of energy by deactivating the discrete graphics card. - -1. We will create a systemd unit that will use `vgaswitcheroo` to disable the discrete graphics card on boot. Enter the full codeblock below and execute it. - - ```plain - sudo tee /etc/systemd/system/amdgpu-off.service >/dev/null <<'EOF' - [Unit] - Description=Disable AMD dGPU via vgaswitcheroo - After=systemd-modules-load.service - Before=display-manager.service - +There is a significant performance decrease when gaming or rendering with `DRI_PRIME=1` and the iGPU set as the primary GPU, compared to using the dGPU as the primary GPU. - [Service] - Type=oneshot - ExecStart=/bin/sh -c 'for i in $(seq 1 30); do [ -e /sys/kernel/debug/vgaswitcheroo/switch ] && exec sh -c "echo OFF > /sys/kernel/debug/vgaswitcheroo/switch"; sleep 1; done; exit 1' - - [Install] - WantedBy=multi-user.target - EOF - - sudo systemctl daemon-reload - sudo systemctl enable amdgpu-off.service - ``` - - We can now run `sudo systemctl enable amdgpu-off.service` and reboot to disable our dGPU. This will decrease power draw on a MacBook significantly from around 20 to 9 Watts on idle using 50% display brightness, resulting in much longer battery life. - Enabling the dGPU again is done using `sudo systemctl disable amdgpu-off.service` and reboot. A more convenient solution using aliases is explained in the next step. - -2. We can quickly disable, enable and check the current status of the dGPU by creating persistent aliases. Add the following lines to `~/.bashrc`: - - ```plain - alias dgpu-off='sudo systemctl enable amdgpu-off.service; sleep 2; sudo reboot' - alias dgpu-on='sudo systemctl disable amdgpu-off.service; sleep 2; sudo reboot' - alias dgpu-status='sudo cat /sys/kernel/debug/vgaswitcheroo/switch' - ``` - - Start a new shell or run `source ~/.bashrc` to make the aliases available in the current shell. - - From now on you can check the status of the dGPU by simply entering `dgpu-status` : - - ```plain - $ dgpu-status - 0:DIS-Audio: :DynOff:0000:01:00.1 - 1:IGD:+:Pwr:0000:00:02.0 - 2:DIS: :Off:0000:01:00.0 - ``` - - `IGD` is the iGPU and `DIS` is the dGPU. The position of the `+` shows the GPU currently in use as the display adapter, while `Pwr` and `Off` refer to their respective power status. - Executing the aliases `dgpu-off` and `dgpu-on` will enable and disable our `amdgpu-off` systemd service and reboot the computer. - - **Example:** Given the status above, executing `dgpu-on` will reboot your Mac. After reboot `dgpu-status` should be: - - ```plain - $ dgpu-status - 0:DIS-Audio: :DynAuto:0000:01:00.1 - 1:IGD:+:Pwr:0000:00:02.0 - 2:DIS: :Pwr:0000:01:00.0 - ``` +Also, there is no need to permanently disable the dGPU. With the new kernel, the dGPU automatically goes to sleep when not in use and wakes up when needed, such as when using `DRI_PRIME=1` or other applications that require it. ### Suspend workaround @@ -115,12 +35,6 @@ Mutter-based desktop environments (e.g. GNOME) pick one GPU to use as the "prima See [Mutter Multi-GPU documentation](https://gitlab.gnome.org/GNOME/mutter/-/blob/main/doc/multi-gpu.md) for more info, including how to change the primary GPU. -## Use on Windows - -The iGPU only works on Windows if there's no driver for it installed. Windows likes installing drivers. - -If you want to switch GPU for Windows, use 0xbb's [gpu-switch](https://github.com/0xbb/gpu-switch#windows-810-usage) script. - ## VFIO GPU passthrough Refer to [this gist](https://gist.github.com/Redecorating/956a672e6922e285de83fdd7d9982e5e) for quirks required to pass through the dGPU to a Windows Virtual Machine, while having Linux use the iGPU. From e84bb9214be8baa1f93197c5d55ced094b73b2d2 Mon Sep 17 00:00:00 2001 From: iurjscsi1101500 <80307553+iurjscsi1101500@users.noreply.github.com> Date: Sat, 21 Nov 2026 00:05:40 +0530 Subject: [PATCH 2/8] Update hybrid-graphics.md --- docs/guides/hybrid-graphics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/hybrid-graphics.md b/docs/guides/hybrid-graphics.md index 88bb0550..614172da 100644 --- a/docs/guides/hybrid-graphics.md +++ b/docs/guides/hybrid-graphics.md @@ -1,4 +1,4 @@ -0# Introduction +# Introduction This page describes how to use the iGPU on MacBook Pros with Hybrid Graphics (2 GPUs). 13-inch MacBooks only have an iGPU and do not need this. Using the iGPU means you can save power by putting the more powerful AMD dGPU in a low power state when you don't need it. From a186a84756b9f0c1b91c3d930b78496cdc4b71ea Mon Sep 17 00:00:00 2001 From: iurjscsi1101500 <80307553+iurjscsi1101500@users.noreply.github.com> Date: Sat, 21 Nov 2026 00:07:05 +0530 Subject: [PATCH 3/8] Update hybrid-graphics.md --- docs/guides/hybrid-graphics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/hybrid-graphics.md b/docs/guides/hybrid-graphics.md index 614172da..aeb544cf 100644 --- a/docs/guides/hybrid-graphics.md +++ b/docs/guides/hybrid-graphics.md @@ -11,7 +11,7 @@ Make sure you have a T2 kernel of version greater than 7.3.3 (you can check this By default T2 Macs with hybrid graphics use the dGPU as primary display adapter, which in return requires the dGPU to be always powered on. To save energy and reduce battery consumption, we can force the iGPU to be the primary display adapter and default graphics accelerator in a first step. -1. Configure `apple-gmux` to switch to the iGPU at boot. +1. Configure the MacBook to switch to the iGPU at boot. 1. You can use the **T2-Hybrid-gpu-control** app provided by KaiT2en: https://github.com/kaiT2en/KaiT2en-Fedora/tree/main/apps/t2-hybrid-gpu-control 2. Alternatively, you can manually set the EFI variable `gpu-power-prefs-fa4ce28d-b62f-4c99-9cc3-6815686e30f9` on every boot (5th byte: `1` = IGD, `0` = DIS). From d72926188e81afad2abace945c298bf9a324bf3d Mon Sep 17 00:00:00 2001 From: iurjscsi1101500 <80307553+iurjscsi1101500@users.noreply.github.com> Date: Sat, 21 Nov 2026 00:11:55 +0530 Subject: [PATCH 4/8] Update fan.md --- docs/guides/fan.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/guides/fan.md b/docs/guides/fan.md index c6e77079..ab0abaeb 100644 --- a/docs/guides/fan.md +++ b/docs/guides/fan.md @@ -4,6 +4,10 @@ This page is a step by step guide to get fan control working on T2 Macs. In some Macs, the fan has been found to work out of the box. In such cases, the driver is not required unless you want to force a certain speed or do some other configuration which can be done by the help of this driver. +If you are running a kernel version newer than 7.2 (check using `uname -r`), `t2fanrd` will not work on your system. You will need to use another fan-control daemon that supports standard hwmon paths (e.g., `fancontrol` or `thinkfan`). + +Additionally, you must add `macsmc_hwmon.fan_control=1` to your kernel command line when using these daemons. + ## Steps 1. Install `t2fanrd`. From ddfba304c0e795e8e336ec797362963ecc20f76f Mon Sep 17 00:00:00 2001 From: iurjscsi1101500 <80307553+iurjscsi1101500@users.noreply.github.com> Date: Sat, 21 Nov 2026 00:13:48 +0530 Subject: [PATCH 5/8] Update notable-contributors.md --- docs/notable-contributors.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/notable-contributors.md b/docs/notable-contributors.md index ec248bad..6607cba0 100644 --- a/docs/notable-contributors.md +++ b/docs/notable-contributors.md @@ -9,7 +9,7 @@ If there is someone missing that you think should be on this list, send a PR on - JPyke3 (Manjaro) [https://github.com/JPyke3](https://github.com/JPyke3) - marcosfad (Ubuntu) [https://github.com/marcosfad](https://github.com/marcosfad) - MCMrARM (apple-bce driver) [https://github.com/MCMrARM](https://github.com/MCMrARM) -- AndrΓ© Eikmeyer (t2bce driver stack) [https://github.com/deqrocks](https://github.com/deqrocks) +- AndrΓ© Eikmeyer (t2bce driver stack, Apple GMUX for T2 macs) [https://github.com/deqrocks](https://github.com/deqrocks) - mikeeq (Fedora) [https://github.com/mikeeq](https://github.com/mikeeq) - networkException (Wiki maintenance and `mbpfan` fork for T2) [https://github.com/networkException](https://github.com/networkException) - Redecorating (Arch Linux, Wiki maintenance, Apple GMUX for T2 Macs, Magic Backlight driver and improved the Touch Bar driver) [https://github.com/Redecorating](https://github.com/Redecorating) @@ -23,3 +23,4 @@ If there is someone missing that you think should be on this list, send a PR on - The Asahi Linux Contributors (Wi-Fi and Bluetooth) [https://asahilinux.org/](https://asahilinux.org/) - lemmyg (Fine audio tuning for MacBook Pro 16 inch 2019) [https://github.com/lemmyg](https://github.com/lemmyg) - slsrepo (t2archinstall for Arch Linux) [https://github.com/slsrepo/t2archinstall](https://github.com/slsrepo/t2archinstall) +- iurjscsi1101500 (Battery, RTC, Fans, Apple GMUX for T2 macs) [https://github.com/iurjscsi1101500](https://github.com/iurjscsi1101500) From 419bc516d00693b78cbd5d3c50eb550b421e1369 Mon Sep 17 00:00:00 2001 From: iurjscsi1101500 <80307553+iurjscsi1101500@users.noreply.github.com> Date: Sat, 21 Nov 2026 00:22:41 +0530 Subject: [PATCH 6/8] Update state.md --- docs/state.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/state.md b/docs/state.md index 2570e6f9..116301f0 100644 --- a/docs/state.md +++ b/docs/state.md @@ -5,7 +5,7 @@ While Linux is usable on all T2 models, some features are limited due to the lac |Feature|Status|Upstream|Notes|Issues/links| |-|-|-|-|-| |Internal Drive / SSD|🟒 Working|🟒 Kernel 5.4||[Filesystem notes](#filesystem-notes)| -|Screen, iGPU|🟒 Working|🟑 Partial||| +|Screen, iGPU|🟒 Working|🟒 Yes||| |USB|🟒 Working|🟒 Yes||| |Keyboard|🟒 Working|πŸ”΄ No||[t2bce](https://github.com/deqrocks/t2bce)| |Trackpad|🟒 Working|πŸ”΄ No|Works, but isn't as great as on macOS (no force touch or palm rejection).|[t2bce](https://github.com/AdityaGarg8/t2bce), [Trackpad tuning](https://wiki.t2linux.org/#trackpad-tuning)| @@ -16,9 +16,9 @@ While Linux is usable on all T2 models, some features are limited due to the lac |Touch Bar|🟒 Working|🟑 Partial|"Touch Bar Keyboard" mode works OOTB, where only the Function Keys or the Media/Brightness Control Keys are shown. Touch Bar drivers were upstreamed in kernel 6.15, while the internal USB connection is provided by t2bce.|[t2bce](https://github.com/deqrocks/t2bce), [tiny-dfr](https://github.com/AsahiLinux/tiny-dfr)| |Suspend|🟑 Partially working|🟒 Yes|t2bce handles suspend and resume of the BCE, VHCI, and audio stack. Remaining suspend issues are model-dependent and may involve other hardware.|[#53](https://github.com/t2linux/T2-Ubuntu-Kernel/issues/53)| |Audio|🟒 Working|πŸ”΄ No|The internal microphone has low input volume without DSP. This is a hardware characteristic and cannot be compensated for in an upstream kernel driver.|[t2bce](https://github.com/deqrocks/t2bce)| -|Hybrid Graphics|🟑 Partially working|🟑 Partial|Toggling dGPU power doesn't work.|[Hybrid Graphics](https://wiki.t2linux.org/guides/hybrid-graphics/)| -|AMD GPUs|🟑 Partially working||Changing resolution, using DRI_PRIME and doing various other things can cause crashes, but `echo high \| sudo tee /sys/bus/pci/drivers/amdgpu/0000:??:??.?/power_dpm_force_performance_level` or adding `amdgpu.dpm=0` to the kernel commandline stops these crashes.|| +|Hybrid Graphics|🟒 Working|🟑 Partial||[Hybrid Graphics](https://wiki.t2linux.org/guides/hybrid-graphics/)| |MacPro7,1|🟑 Partially working||Users have encountered PCIe Address Space issues, with auto remap breaking. A temporary solution may be possible by removing the Infinity Fabric Link (Bridge or Jumper) from the GPU(s).|| +|iMac 5K support|🟑 Partially working|πŸ”΄ No|Users may experience screen tearing when using GNOME, XFCE, or Cinnamon. Additionally, Hyprland, Niri, and KDE Plasma cannot be used with 5K support.|| |T2 Secure Enclave|🟑 Partially working|πŸ”΄ No|Currently only those fingers enrolled in macOS can be used on Linux. You cannot enroll or delete new fingers on Linux.|[Kait2en Touch ID daemon](https://github.com/kaiT2en/KaiT2en-Fedora/tree/main/apps/t2-touchid)| |T2 Audio Video Encoder|πŸ”΄ Not working||Used for Sidecar on macOS|| From e40d359ffb9d16bd7d8637c4f6a56e8443a77a89 Mon Sep 17 00:00:00 2001 From: iurjscsi1101500 <80307553+iurjscsi1101500@users.noreply.github.com> Date: Mon, 23 Nov 2026 01:33:59 +0530 Subject: [PATCH 7/8] Update hybrid-graphics.md --- docs/guides/hybrid-graphics.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/guides/hybrid-graphics.md b/docs/guides/hybrid-graphics.md index aeb544cf..b5ca9dbb 100644 --- a/docs/guides/hybrid-graphics.md +++ b/docs/guides/hybrid-graphics.md @@ -14,7 +14,7 @@ To save energy and reduce battery consumption, we can force the iGPU to be the p 1. Configure the MacBook to switch to the iGPU at boot. 1. You can use the **T2-Hybrid-gpu-control** app provided by KaiT2en: https://github.com/kaiT2en/KaiT2en-Fedora/tree/main/apps/t2-hybrid-gpu-control - 2. Alternatively, you can manually set the EFI variable `gpu-power-prefs-fa4ce28d-b62f-4c99-9cc3-6815686e30f9` on every boot (5th byte: `1` = IGD, `0` = DIS). + 2. Alternatively, you can use 0xbb's [gpu-switch](https://github.com/0xbb/gpu-switch#windows-810-usage) script. After reboot `glxinfo | grep "OpenGL renderer"` should show an Intel GPU. Running programs with `DRI_PRIME=1` will make them render on your AMD GPU. On Gnome, by right clicking an application you can choose to run it using dedicated graphics. @@ -35,6 +35,12 @@ Mutter-based desktop environments (e.g. GNOME) pick one GPU to use as the "prima See [Mutter Multi-GPU documentation](https://gitlab.gnome.org/GNOME/mutter/-/blob/main/doc/multi-gpu.md) for more info, including how to change the primary GPU. +## Use on Windows + +The iGPU only works on Windows if there's no driver for it installed. Windows likes installing drivers. + +If you want to switch GPU for Windows, use 0xbb's [gpu-switch](https://github.com/0xbb/gpu-switch#windows-810-usage) script. + ## VFIO GPU passthrough Refer to [this gist](https://gist.github.com/Redecorating/956a672e6922e285de83fdd7d9982e5e) for quirks required to pass through the dGPU to a Windows Virtual Machine, while having Linux use the iGPU. From c044492af5d00a4612c8faab43ea9324bdb4a67d Mon Sep 17 00:00:00 2001 From: iurjscsi1101500 <80307553+iurjscsi1101500@users.noreply.github.com> Date: Mon, 23 Nov 2026 04:29:33 +0530 Subject: [PATCH 8/8] Update fan.md --- docs/guides/fan.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/guides/fan.md b/docs/guides/fan.md index ab0abaeb..e0e80d02 100644 --- a/docs/guides/fan.md +++ b/docs/guides/fan.md @@ -8,6 +8,8 @@ If you are running a kernel version newer than 7.2 (check using `uname -r`), `t2 Additionally, you must add `macsmc_hwmon.fan_control=1` to your kernel command line when using these daemons. +See: https://wiki.archlinux.org/title/Fan_speed_control + ## Steps 1. Install `t2fanrd`.