LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 08-14-2021, 06:51 AM   #1
kelltech
LQ Newbie
 
Registered: Aug 2021
Posts: 6

Rep: Reputation: Disabled
Question Random system shutdowns, asking for help understanding logs and troubleshooting


Hello,

I'm using Pop_OS and was not quite sure where to ask for help, I hope this is ok. If not, I'll gladly move this post to wherever may be best.

My laptop has been experiencing random shutdowns and I've been trying to learn how to troubleshoot and discover the root problem. I am not new to Linux, but I am new to this level of troubleshooting, so I know I'm going to get some of the terminology wrong, but I am here to learn!

What I've done so far is looked through the /var/log/journal and have executed
Code:
last -x shutdown | head -1 and last -x shutdown | head -3
just after a crash, but it showed last shutdown was 3 days prior.

Then I checked
Code:
last -x reboot | head -1
and it showed a reboot of a much closer time, so I started combing through /var/log/syslog for more clues but found nothing that I understood to be an issue, and/or didn't know what I was looking for.

I also installed
Quote:
auditd
but haven't had a crash since, so nothing to report there yet.

Then I executed
Code:
sudo grep -iv ': starting\|kernel: .*: Power Button\|watching system buttons\|Stopped Cleaning Up\|Started Crash recovery kernel' \
  /var/log/messages /var/log/syslog /var/log/apcupsd* \
  | grep -iw 'recover[a-z]*\|power[a-z]*\|shut[a-z ]*down\|rsyslogd\|ups'
That produced all kinds of bold red text, including this error which I saw a few times very near the time of a system crash:
Code:
/var/log/syslog:Aug 13 17:49:17 pop-os gsd-power[1388]: gsd-power: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
I can post the entire report if needed, or anything else that may be helpful. I would like to ask for help troubleshooting and understanding these logs, hopefully to determine if I have faulty hardware or something else.

This random shutdown issue did not happen with Manjaro but did with Fedora. After several shutdowns on Fedora, I m,oved to Pop_OS where it's begun happening again. I've been monitoring CPU and GPU temps, especially while gaming and they rarely exceed 70C (but were hitting 90C+ in Fedora). While it might be a bad sensor somewhere, my laptop isn't running exceptionally hot as far as I can tell.

I do appreciate any help learning, understanding, and hopefully finding the problem!

My laptop:
Sager NP6852 (Clevo N850HK1)
7th gen Intel i7-7700HQ
NVIDIA GeForce GTX1050Ti
 
Old 08-16-2021, 10:52 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,162

Rep: Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268
The typical reason for not seeing an error in the log or a reason in wtmp is, unfortunately, a disk error. If the disk has an error and gets remounted read-only then obviously no log or shutdown reason can be written. Back up your files and run a disk test.
 
Old 08-16-2021, 11:01 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,123

Rep: Reputation: 7373Reputation: 7373Reputation: 7373Reputation: 7373Reputation: 7373Reputation: 7373Reputation: 7373Reputation: 7373Reputation: 7373Reputation: 7373Reputation: 7373
I would rather [try to] check what's happened right before the boot message in the syslog.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Random system shutdown/crash: asking for help understanding logs and troubleshooting kelltech Ubuntu 4 08-15-2021 01:21 PM
install failing and random shutdowns esteeven Linux - General 5 03-05-2019 12:06 PM
[SOLVED] Random network and input device shutdowns on new 14.1 installation anket Slackware 17 02-25-2016 03:31 AM
[SOLVED] Mint8 and win7 random shutdowns Jesse W Linux - General 2 05-05-2010 12:20 AM
Random shutdowns go back to bios splash screen case1984 Linux - Hardware 1 09-28-2004 06:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 11:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration