DEV Community

gie3d
gie3d

Posted on

4 2

MacBook Pro, how to select discrete graphics card or integrated graphics card

Apple only provides an option to let them choose the best graphics models while you're running on battery.

Image description

But sometimes, many times... actually, I really need to be up with battery longer than 3-4 hours. Discrete graphic is one of the most battery consuming in my MBP. So, occasionally, I need to find a way to shut it off. (It may sound silly that you paid for a high performance graphic card, and you want to shut it off 🤧)

Did some quick research and found a command (from https://nathansnelgrove.com/how-to-force-your-macbook-pro-to-use-its-discrete-graphics-card-when-its-plugged-in/):

# Always use the integrated graphics card while running on battery power
sudo pmset -b gpuswitch 0
Enter fullscreen mode Exit fullscreen mode

gpuswitch has 3 options

0 - use integrated graphics card
1 - use discrete graphics card
2 - automatically switch between discrete and integrated graphics card (default option)

and
-b - battery
-c - plugged
-a - both battery and plugged

Hope I could be up with battery a bit longer...😥

Image of Datadog

How to Diagram Your Cloud Architecture

Cloud architecture diagrams provide critical visibility into the resources in your environment and how they’re connected. In our latest eBook, AWS Solution Architects Jason Mimick and James Wenzel walk through best practices on how to build effective and professional diagrams.

Download the Free eBook

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs