Hackernoon logoPower Management for macOS by@sharonlin

Power Management for macOS

Sharon Lin Hacker Noon profile picture

@sharonlinSharon Lin

Research Assistant

Lately, my boyfriend has been incredibly excited about using PowerTOP to decrease power usage for his Dell XPS running Arch. It’s a fantastic utility that displays a minimalist monitor for background activity in the terminal, but unfortunately it only exists for Linux systems.

I’ve regularly used Activity Monitor for monitoring my CPU and memory usage, but I was beginning to wonder if it might be possible to have a non-GUI assistant for Mac systems.

A thread on Stack Exchange recommended powermetrics, a command-line utility designed specifically for Mac usage. It offers several uses, including sampling groups (interrupt sources, CPU power, device power states, battery and backlight info, thermal pressure notifications, and more).

You can also save samples to buffers, order processes, and display wakeup costs and power use averages over specified sample periods. Feel free to visit the OS X official documentation for more on how to customize commands.

Another utility I found was top, which has its own set of man pages for OS X. The utility contains stats on power and processes, with a more streamlined output depending on your format of the command.

Under usr/bin, there’s a nice bash script called power_report.sh that essentially uses powermetrics to write a power report on timer analysis, CPU profile, IO report, and Exec report on power usage.

random($foo) has also written a bit on OS X power usage specifically for Mavericks, although I would imagine the tips are still applicable for later versions of macOS.

I have yet to find an easy power management tool, although it likely wouldn’t be difficult to give admin privileges to stop background processes that are drawing too much power. Anyway, I hope this was an informative primer to some of the many command-line utilities for power management for OS X!

If you liked this post and want to hear more about my thoughts on school, tech, or even life as a university student, feel free to find me elsewhere online!

Twitter @sharontlin

Facebook @sharonlinnyc

GitHub @sharon-lin


Join Hacker Noon

Create your free account to unlock your custom reading experience.