How to check the cause of several PC restarts in Mint?

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
ovisergiu
Level 3
Level 3
Posts: 176
Joined: Tue Nov 07, 2017 10:28 am
Location: Europe
Contact:

How to check the cause of several PC restarts in Mint?

Post by ovisergiu »

My PC keeps restarting several times a day, sometimes 4-5 times in a row (right after the desktop loads and very seldom when the Mint logo is being displayed before the Desktop will appear.
Is there a way to find out if Linux Mint 18.3 is to blame or the power source is dying?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
(MAIN) PC: LM 21 Cinnamon, x64, Intel Core i5-3570 CPU @3.40 GHz, 32 GB RAM, 250 GB SSD
(Occasionally): Emachines e725 laptop: 3 GB RAM, Dual core Pentium T4500 (-MCP-) cache:1024 KB, Graphic Intel Mobile 4 Series Integrated Graphics Controller
gm10

Re: How to check the cause of several PC restarts in Mint?

Post by gm10 »

If that machine was stable before then it sounds like a hardware issue indeed. I'd always look at the PSU first, too, but the mainboard can be the cause, too, or even faulty memory or in some cases the CPU.

That said, if you updated your kernel recently then you may want to go back to the previous version first to make sure it's not related to that - reboot, hold shift after the BIOS screen until the GRUB menu comes up, then select Advanced and choose a previous kernel version. If the kernel is segfaulting you may find info about that in the kernel logs, too (/var/log/kern.log and /var/log/kern.log.1).

You can also boot the system from a live USB to see if it's stable there, although the only conclusive evidence from that will be if it is also unstable, because then it's clearly the hardware (as long as the system worked fine with your LM18.3 before).
User avatar
karlchen
Level 23
Level 23
Posts: 18228
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: How to check the cause of several PC restarts in Mint?

Post by karlchen »

ovisergiu wrote: Mon Sep 24, 2018 7:13 amIs there a way to find out if Linux Mint 18.3 is to blame or the power source is dying?
The logfiles under /var/log might hold hints what is wrong, specifically the file /var/log/syslog and the previous syslog version, named /var/log/syslog.1.
On Mint 18.3, you can inspect the same information, or rather even more detailled, by executing journalctl -b -1, journalctl -b -2, etc, whereby the negative number specifies how many sessions back you want to go.
Image
The people of Alderaan have been bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine for 792 days now.
Lifeline
User avatar
ovisergiu
Level 3
Level 3
Posts: 176
Joined: Tue Nov 07, 2017 10:28 am
Location: Europe
Contact:

Re: How to check the cause of several PC restarts in Mint?

Post by ovisergiu »

I found the log files both of you told me but there are hundreds of lines I do not understand... total Chinese for a non-Chinese speaker.
(MAIN) PC: LM 21 Cinnamon, x64, Intel Core i5-3570 CPU @3.40 GHz, 32 GB RAM, 250 GB SSD
(Occasionally): Emachines e725 laptop: 3 GB RAM, Dual core Pentium T4500 (-MCP-) cache:1024 KB, Graphic Intel Mobile 4 Series Integrated Graphics Controller
gm10

Re: How to check the cause of several PC restarts in Mint?

Post by gm10 »

ovisergiu wrote: Mon Sep 24, 2018 1:56 pm I found the log files both of you told me but there are hundreds of lines I do not understand... total Chinese for a non-Chinese speaker.
Try if this command turns up anything:

Code: Select all

grep -e "segfault" -e "panic" /var/log/syslog*
User avatar
ovisergiu
Level 3
Level 3
Posts: 176
Joined: Tue Nov 07, 2017 10:28 am
Location: Europe
Contact:

Re: How to check the cause of several PC restarts in Mint?

Post by ovisergiu »

Just a blinking cursor that shows nothing...
(MAIN) PC: LM 21 Cinnamon, x64, Intel Core i5-3570 CPU @3.40 GHz, 32 GB RAM, 250 GB SSD
(Occasionally): Emachines e725 laptop: 3 GB RAM, Dual core Pentium T4500 (-MCP-) cache:1024 KB, Graphic Intel Mobile 4 Series Integrated Graphics Controller
gm10

Re: How to check the cause of several PC restarts in Mint?

Post by gm10 »

ovisergiu wrote: Mon Sep 24, 2018 2:04 pm Just a blinking cursor that shows nothing...
That means there's nothing in the logs concerning kernel panics and segmentation faults. They may still have happened but the system reset before the log could get written, so this doesn't really help you.
User avatar
trytip
Level 14
Level 14
Posts: 5367
Joined: Tue Jul 05, 2016 1:20 pm

Re: How to check the cause of several PC restarts in Mint?

Post by trytip »

what do you have in Terminal for sensors might be temperatures too high also open .xsession-errors in your home folder, you'll find hundreds of lines but maybe something might hit you in the face
Image
User avatar
ovisergiu
Level 3
Level 3
Posts: 176
Joined: Tue Nov 07, 2017 10:28 am
Location: Europe
Contact:

Re: How to check the cause of several PC restarts in Mint?

Post by ovisergiu »

trytip wrote: Mon Sep 24, 2018 2:18 pm what do you have in Terminal for sensors might be temperatures too high also open .xsession-errors in your home folder, you'll find hundreds of lines but maybe something might hit you in the face

Code: Select all

oks@oks ~ $ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:        +27.8°C  (crit = +106.0°C)
temp2:        +29.8°C  (crit = +106.0°C)

radeon-pci-0100
Adapter: PCI adapter
temp1:        +40.0°C  (crit = +120.0°C, hyst = +90.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Physical id 0:  +39.0°C  (high = +85.0°C, crit = +105.0°C)
Core 0:         +39.0°C  (high = +85.0°C, crit = +105.0°C)
Core 1:         +35.0°C  (high = +85.0°C, crit = +105.0°C)
Core 2:         +39.0°C  (high = +85.0°C, crit = +105.0°C)
Core 3:         +39.0°C  (high = +85.0°C, crit = +105.0°C)
.xsession-errors says:

Code: Select all

** Message: couldn't access control socket: /run/user/1000/keyring/control: No such file or directory
[cinnamon-settings-daemon-smartcard] Failed to start: no suitable smartcard driver could be found
[cinnamon-settings-daemon-smartcard] Failed to start: no suitable smartcard driver could be found
dropbox: locating interpreter
Cjs-Message: JS LOG: About to start Cinnamon
dropbox: logging to /tmp/dropbox-antifreeze-D1Y1Aq
dropbox: initializing
dropbox: initializing python 3.5.4
dropbox: setting program path '/home/oks/.dropbox-dist/dropbox-lnx.x86_64-58.3.88/dropbox'
St-Message: cogl npot texture sizes SUPPORTED
dropbox: setting home path '/home/oks/.dropbox-dist/dropbox-lnx.x86_64-58.3.88'
dropbox: setting python path '/home/oks/.dropbox-dist/dropbox-lnx.x86_64-58.3.88:/home/oks/.dropbox-dist/dropbox-lnx.x86_64-58.3.88/python-packages-35.zip'
Cjs-Message: JS LOG: Cinnamon started at Tue Sep 25 2018 06:29:08 GMT+0300 (EEST)
Cjs-Message: JS LOG: network applet: Cannot find connection for active (or connection cannot be read)
dropbox: python initialized
dropbox: running dropbox
dropbox: setting args
dropbox: applying overrides

(cinnamon:1970): St-WARNING **: Ignoring length property that isn't a number at line 1526, col 13
openGL version 4.5 detected (GL3 Cogl Driver)
MetaSyncRing disabled: couldn't find required GL extensions, or the minimum safe openGL version was not met
** Message: nemo-desktop: session is cinnamon, establishing proxy
failed to create drawable
Cjs-Message: JS LOG: Invalid network device type, is 14
Cjs-Message: JS LOG: network applet: Found connection for active
dropbox: running main script
dropbox: load fq extension '/home/oks/.dropbox-dist/dropbox-lnx.x86_64-58.3.88/cryptography.hazmat.bindings._constant_time.cpython-35m-x86_64-linux-gnu.so'
Nemo-Share-Message: Called "net usershare info" but it failed: 'net usershare' returned error 255: mkdir failed on directory /var/run/samba/msg.lock: Permission denied
net usershare: cannot open usershare directory /var/lib/samba/usershares. Error No such file or directory
Please ask your system administrator to enable user sharing.

dropbox: load fq extension '/home/oks/.dropbox-dist/dropbox-lnx.x86_64-58.3.88/cryptography.hazmat.bindings._openssl.cpython-35m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/oks/.dropbox-dist/dropbox-lnx.x86_64-58.3.88/cryptography.hazmat.bindings._padding.cpython-35m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/oks/.dropbox-dist/dropbox-lnx.x86_64-58.3.88/psutil._psutil_linux.cpython-35m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/oks/.dropbox-dist/dropbox-lnx.x86_64-58.3.88/psutil._psutil_posix.cpython-35m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/oks/.dropbox-dist/dropbox-lnx.x86_64-58.3.88/linuxffi.pthread._linuxffi_pthread.cpython-35m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/oks/.dropbox-dist/dropbox-lnx.x86_64-58.3.88/cpuid.compiled._cpuid.cpython-35m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/oks/.dropbox-dist/dropbox-lnx.x86_64-58.3.88/linuxffi.fcntl._linuxffi_fcntl.cpython-35m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/oks/.dropbox-dist/dropbox-lnx.x86_64-58.3.88/linuxffi.sys.compiled._linuxffi_sys.cpython-35m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/oks/.dropbox-dist/dropbox-lnx.x86_64-58.3.88/linuxffi.resolv.compiled._linuxffi_resolv.cpython-35m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/oks/.dropbox-dist/dropbox-lnx.x86_64-58.3.88/tornado.speedups.cpython-35m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/oks/.dropbox-dist/dropbox-lnx.x86_64-58.3.88/linuxffi.gnu.compiled._linuxffi_gnu.cpython-35m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/oks/.dropbox-dist/dropbox-lnx.x86_64-58.3.88/posixffi.libc._posixffi_libc.cpython-35m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/oks/.dropbox-dist/dropbox-lnx.x86_64-58.3.88/librsyncffi.compiled._librsyncffi.cpython-35m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/oks/.dropbox-dist/dropbox-lnx.x86_64-58.3.88/PyQt5.QtWebKit.cpython-35m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/oks/.dropbox-dist/dropbox-lnx.x86_64-58.3.88/PyQt5.QtCore.cpython-35m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/oks/.dropbox-dist/dropbox-lnx.x86_64-58.3.88/PyQt5.QtNetwork.cpython-35m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/oks/.dropbox-dist/dropbox-lnx.x86_64-58.3.88/PyQt5.QtGui.cpython-35m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/oks/.dropbox-dist/dropbox-lnx.x86_64-58.3.88/PyQt5.QtWebKitWidgets.cpython-35m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/oks/.dropbox-dist/dropbox-lnx.x86_64-58.3.88/PyQt5.QtWidgets.cpython-35m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/oks/.dropbox-dist/dropbox-lnx.x86_64-58.3.88/PyQt5.QtPrintSupport.cpython-35m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/oks/.dropbox-dist/dropbox-lnx.x86_64-58.3.88/PyQt5.QtDBus.cpython-35m-x86_64-linux-gnu.so'

(cinnamon:1970): St-WARNING **: Ignoring length property that isn't a number at line 1526, col 13

(cinnamon:1970): St-WARNING **: Ignoring length property that isn't a number at line 1526, col 13
Cinnamon warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x5e00085 (.xsession-)
There is also an .xsession-errors.old but can not be opened.
(MAIN) PC: LM 21 Cinnamon, x64, Intel Core i5-3570 CPU @3.40 GHz, 32 GB RAM, 250 GB SSD
(Occasionally): Emachines e725 laptop: 3 GB RAM, Dual core Pentium T4500 (-MCP-) cache:1024 KB, Graphic Intel Mobile 4 Series Integrated Graphics Controller
User avatar
trytip
Level 14
Level 14
Posts: 5367
Joined: Tue Jul 05, 2016 1:20 pm

Re: How to check the cause of several PC restarts in Mint?

Post by trytip »

your temperatures are OK, the thing i notice is that lot of dropbox logging. you'll need to open .xsession-errors.old with TEXT editor but only after the machine restarts on it's own. the .old errors will tell you what happened right before the shutdown, it should be towards the bottom of the file
Image
Locked

Return to “Beginner Questions”