주요 콘텐츠로 건너뛰기

기기를 고치세요

수리할 권리

부품 & 도구

소개

This guide will show you how to determine why exactly your Mac shut down or restarted using macOS's built-in logging.

  1. Open Terminal.app
    • Open Terminal.app

  2. Manta(만타) 드라이버 키트

    112 bits for every fix.

    Upgrade Your Toolbox

    Manta(만타) 드라이버 키트

    Upgrade Your Toolbox
  3. Copy and paste the following command in your Terminal window:
    • Copy and paste the following command in your Terminal window:

    • log show --predicate 'eventMessage contains "Previous shutdown cause"' --last 24h

    • The "24h" portion of the command can be changed to any number of hours, depending on how far back you need to see.

  4. The previous shutdown causes in the timeframe you selected will appear as a list.
    • The previous shutdown causes in the timeframe you selected will appear as a list.

    • Common shutdown causes include 5 which indicates a normal shutdown, 3 which indicates a hard shutdown (i.e. holding the power button), and 0 which indicates the power was disconnected.

    • A full list of shutdown causes can be found here: Shutdown Causes.

결론

Done! You should be able to use these codes to further troubleshoot random shutdowns or other strange events.

Hit the button below if this guide helped solve your issue :)

다른 5명이 해당 안내서를 완성하였습니다.

첨부 문서

Jonah Aragon

회원 가입일: 2018년 08월 05일

3,147 평판

안내서 4개 작성하였습니다

Experimax Coon Rapids Experimax Coon Rapids 회원

Business

2 회원들

안내서 5개 작성하였습니다

For me it says

kernel: (AppleSMC) Previous shutdown cause: -20

The attached PDF (and the internet) doesn’t seem to have any information about this code. What’s the source of the codes for the PDF? Maybe they have updated listing for shutdown codes.

Saurabh Shrivastava - 답글

댓글 쓰기

조회 통계:

24 시간 전: 36

7일 전: 240

30일 전: 924

전체 시간: 7,246