メインコンテンツにスキップ

修理を始めるには

修理する権利

パーツ&ツール

はじめに

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. Nintendo Switch 修理キット

    ゲームを再開するための、早くて簡単な修理キット

    Switch 修理キットページへ

    Nintendo Switch 修理キット

    ゲームを再開するための、早くて簡単な修理キット

    Switch 修理キットページへ
  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,187 ポイント

4のガイドは作成済み

チーム

Experimax Coon Rapids Experimax Coon Rapids人のメンバー

Business

2 メンバー

6のガイドは作成済み

3 件のコメント

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 - 返信

we also have -20 as a cause and have no idea what it means. did you ever find it out?

octomobiki -

I also have -20 code of shut down after macOS 10.15.5 update with MBP 16inches model.

but no information at all….

赤月小黄泉 -

コメントを追加

統計データを表示:

過去 24時間: 41

過去 7 日: 219

過去 30 日: 1,009

今までの合計 8,501