Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍💻
Generally busy.

Mayank Kumar mayankk2308

👨‍💻
Generally busy.
View GitHub Profile
@mayankk2308
mayankk2308 / boost-low-pri-macOS.sh
Created Jul 17, 2018
Boost Low-Priority Tasks on macOS
View boost-low-pri-macOS.sh
# 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 Dec 6, 2021
Disable AMD GPU acceleration on macOS
View disable-amd-gpu.sh
# 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