Zero-Fork-Storage / apple-gmux-t2

Work in progress version of apple-gmux for T2 MacBookPro's with both Intel and AMD graphics (15 and 16 inch models)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

apple-gmux T2

Work in progress version of apple-gmux for T2 MacBookPros with both Intel and AMD graphics (15 and 16 inch models)

Install

Enabling the iGPU

Follow this guide.

Installing the module

Arch Based Distros

If you are on an arch based distro and have the Redecorating-t2 repo, you can install with sudo pacman -S apple-gmux-t2-dkms-git.

Debian Based Distros

If you are on a Debian or Ubuntu based distro and have the adityagarg8.github.io/t2-ubuntu-repo repo, you can install with sudo apt install apple-gmux-t2.

Other Distros

To install with dkms sudo dkms install .

Otherwise, you can do:

make
sudo modprobe -r apple-gmux
sudo modprobe ./apple-gmux.ko

TODO List

  • Read and Write to gmux ports
  • Backlight control
  • Switching Display between GPUs
    • To preserve state after resume (so you can resume properly when using the igpu!)
    • At runtime with vga_switcheroo
      • Make amdgpu register with vga_switcheroo
      • Make intel card register with vga_switcheroo
    • Get the switched to GPU to output to the display
  • Interrupts
  • Power up/down dGPU
    • Power Down
    • Power Up
      • mbp15,x
      • mbp16,x
    • ACPI PWRD, PWG1
  • Update internal documentation
  • Test on other T2 models once everything should be working
  • Ensure these changes don't cause regressions for pio and indexed models.

Support Me

If you want to support me see here.

About

Work in progress version of apple-gmux for T2 MacBookPro's with both Intel and AMD graphics (15 and 16 inch models)

License:GNU General Public License v2.0


Languages

Language:C 98.9%Language:Makefile 1.1%