- How to Force Your MacBook Pro to Use Its Discrete Graphics Card When It’s Plugged In
- https://forums.macrumors.com/threads/good-gpu-switching-application-for-mpb-16.2220002/post-28149852
Copied from the above post in case the post is gone
sudo pmset -a gpuswitch 0
-b when on battery
-c when on AC power
-a always
0 iGPU only
1 dGPU only
2 automatic graphics switching
To reset everything back to default:
sudo pmset -a gpuswitch 2