macos 切换集成显卡与独立显卡
gfxcardstatus 在Catalina 10.15.5不能切换
参考网页: Battery Life on MacBook Pro 16
切换显卡命令
sudo pmset -c gpuswitch 2
sudo pmset -b gpuswitch 0 目前我只使用集成显卡
The -c switch tells the computer to autoswitch iGpu/dGpu when plugged in
The -b switch tells the computer to ALWAYS use integrated when on battery power (prevents the switch to dedicated)
如果不生效,先试下:
sudo pmset restoredefaults
参考:PMSet - out of control; launches, relaunches; Monterey Current - can’t figure out how to diagnose
Here are the flag options for pmset
- -a - global (same behavior for charging and battery states)
- -c - charging
- -b - battery
Here are the possible options for gpuswitch
- 0 - integrated GPU only
- 1 - discrete GPU only
- 2 - autoswitch GPU
If you want to revert to default, run:
sudo pmset -a gpuswitch 2
which sets the global flag to autoswitch no matter which power source you’re running on, replacing any individual power options set earlier.