4

My Laptop (running Ubuntu 20.04.3 with Gnome DE) is turning off by itself, like, I'm playing a game then the screen gets black and then there's text basically indicating its shutting down (I don't have silent nor splash in my grub settings), I have heard my hard drive clicking so I'm scared those two are correlated, I've ran SMART tests but they say everything is fine. So I want to find the logs of when the system decides it's good time to shut down but I don't know where and how to start.

Edit: The game I was playing was Minecraft Bedrock

xproot
  • 157

1 Answers1

4

After a "sudden shutdown", aka "system crash", and reboot, the terminal command sudo journalctl -b -1 -e will show you the end of the previous boot's log's. If there is no hint there, suspect power/ overheating.

Read man journalctl to see how to extract information from the logs.

You can find how I make use of journalctl easier at https://askubuntu.com/users/25618/waltinator.

@Will59 Overheating is most likely caused by dust. Power down your system. Unblock your fans and vents, clean out the dust. Ensure air circulation. Dust that coats heat exchangers and chips is a good insulator, and bad for cooling. Don't disassemble your computer until you have downloaded the manufacturer's manual, and researched how-to-clean. Make this information available for when your computer isn't (paper, other computer) Don't use water.

waltinator
  • 37,856