Skip to content

Instantly share code, notes, and snippets.

View wtorsi's full-sized avatar

Andrew wtorsi

View GitHub Profile
@wtorsi
wtorsi / graphic_card_switch_control.sh
Created March 15, 2021 11:58 — forked from ccqpein/graphic_card_switch_control.sh
macOS 10.14 use pmset to control graphic card switch.
# I find this https://discussions.apple.com/thread/8160651
# but it not match my 2018 version MacBook with macos 10.14
#
# On my local, gpuswitch value is
# 0 -> does not use dedicated graphics
# 1 -> use dedicated graphics
# 2 -> switch automaticly (I guess), because 2 is default value when "automatic graphics switching" selected
# in energy in preference.
# check settings depended on charger/battery