Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.
Sign up to join this community
Anybody can ask a question
The best answers are voted up and rise to the top
Is there any way to check how long a 2020 M1 MacBook Pro has been connected to an AC adapter? (I have a charger that I think is periodically disconnecting and reconnecting.)
I'd like something like Terminal "uptime" but for this purpose it'd print something, for example, "On AC Adapter for H hours M minutes).
93k2727 gold badges183183 silver badges393393 bronze badges
Use the built-in macOS command line tool
pmset to see a log of power events. The log should include switches to and from AC power:
pmset -g log
answered Mar 3 at 9:19
Graham MilnGraham Miln
42.3k88 gold badges9090 silver badges121121 bronze badges
You must log in to answer this question.