# 0: 强制使用核显
sudo pmset -a GPUSwitch 0
# 1: 强制使用独显
sudo pmset -a GPUSwitch 1
# 2: 自动切换显卡
sudo pmset -a GPUSwitch 2
检查pmset -g
# 0: 强制使用核显
sudo pmset -a GPUSwitch 0
# 1: 强制使用独显
sudo pmset -a GPUSwitch 1
# 2: 自动切换显卡
sudo pmset -a GPUSwitch 2
检查pmset -g