Skip to content

Instantly share code, notes, and snippets.

View mayankk2308's full-sized avatar
👨‍💻
Generally busy.

Mayank Kumar mayankk2308

👨‍💻
Generally busy.
View GitHub Profile
@mayankk2308
mayankk2308 / boost-low-pri-macOS.sh
Created July 17, 2018 17:35
Boost Low-Priority Tasks on macOS
# Useful for improving Time Machine backup prep. times, Mac App Store install speeds, etc.
sudo sysctl debug.lowpri_throttle_enabled=0
# To restore defaults
sudo sysctl debug.lowpri_throttle_enabled=1
@mayankk2308
mayankk2308 / disable-amd-gpu.sh
Last active April 12, 2023 02:45
Disable AMD GPU acceleration on macOS
# This can be useful to force the system to use only the integrated GPU at all times.
# This only applies to modern AMD GPUs (using the AMDRadeon4000 series kernel extension or later).
# Set mux to integrated Intel GPU
sudo nvram fa4ce28d-b62f-4c99-9cc3-6815686e30f9:gpu-power-prefs=%01%00%00%00
# Option #1: Completely disable automatic graphics switching and any other GPUs
sudo nvram boot-args="agc=-1"
# Option #2: Disable just the AMD GPU framebuffer