Find root cause of complete freezes

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
thecursedfly
Level 1
Level 1
Posts: 13
Joined: Sat Aug 20, 2011 7:05 pm

Find root cause of complete freezes

Post by thecursedfly » Thu Mar 29, 2018 5:37 am

Hi,

Since I installed Linux Mint 18.3 Cinnamon 64-bit on my laptop (a GPD Pocket requiring a kernel with some tweaks for its hardware) I get complete freezes at random times, for which I have no other chance than to hard shutdown with the power button.
So, with your help, I would like to analyze the root cause and take appropriate measures if possible.

Additional info:
  • it happens about once per day, but sometimes more times in short distance (for example yesterday while watching the same online video)
  • usually I cannot reproduce it realiably by watching the same video or performing the same actions
  • yesterday I could reproduce it after using the following command to get a system log until the last moment (hoped that would help me investigate): dmesg -T --follow > mydmesg.log
    the file is here: http://dcdrops.com/files/mydmesg.log
    I cannot immediately see something troublesome but I'm not an expert. The log is quite short because I had just restarted the laptop after the previous crash.
  • inxi details: http://dcdrops.com/files/inxi.txt
  • what happens is that I am using the laptop normally (no heavy tasks, usually just internet browsing, sometimes a youtube video playing, perhaps some music in VLC) and suddenly any video or UI freezes, the mouse doesn't move anymore, cannot use the Ctrl+Alt+Fx combinations to get to console, if there is audio playing it continues in a loop of 0.5-1 seconds
  • when it doesn't freeze, it all works wonderfully
  • don't know if it's related, but when it happens I have it always connected (it's the way I use this laptop when not traveling) to an external fullHD screen via microHDMI, USB-C hub with power in and external keyboard and mouse, 3.5mm speakers jack - I could try to use the laptop for some time without all these attached to see if it still happens, but i cannot reliably reproduce the problem
Are there any additional logs I can check in search for errors?
The Xorg log is quite unreadable with its time stamps, but from what I gather it contains only details from after the crash. /var/log/kern.log contains the same details at the end as mydmesg.log I linked above.

Any suggestions?

Thanks

Mattyboy
Level 6
Level 6
Posts: 1196
Joined: Thu Mar 26, 2015 2:17 pm

Re: Find root cause of complete freezes

Post by Mattyboy » Thu Mar 29, 2018 6:50 am

It may be because Cinnamon is to heavy for your machine. Not knowing your computers basic specifications its difficult to comment further. Providing the results of this terminal command will certainly help here.

Code: Select all

inxi -Fxz
EDIT: My bad I missed your txt file.

As explained below its probably the Kernel. Ubuntu 18.04 beta ships with the 4.15 kernel if you need a newer one for hardware support. Failing that you may have to wait a little longer until stable release versions with 4.16 are out.
Last edited by Mattyboy on Thu Mar 29, 2018 7:53 am, edited 1 time in total.

User avatar
kc1di
Level 13
Level 13
Posts: 4736
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: Find root cause of complete freezes

Post by kc1di » Thu Mar 29, 2018 7:02 am

the first place I would look is at the Kernel:

Code: Select all

4.16.0-rc3-stockmind-gpdpocket x86_64 (64 bit gcc: 7.2.0)
.

4.16.0 is not an Ubuntu/mint kernel revert to kernel 4.13 or even 4.4 for now and see if the crashes are resolved.
you should not go outside the kernels of Ubuntu - Ubuntu adds it's own tweaks to the kernel and Mint uses the Ubuntu kernel system , kernel 4.15 will be in Mint 19 sometime this summer. Unless there is an overwhelming need for the newer kernel - Hardware support- then you should always stick to the current kernel in mint.
here is a rundown on Ubuntu kernel numbering system:
https://wiki.ubuntu.com/Kernel/Support

Good Luck.
Easy tips : https://sites.google.com/site/easylinuxtipsproject/
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608

thecursedfly
Level 1
Level 1
Posts: 13
Joined: Sat Aug 20, 2011 7:05 pm

Re: Find root cause of complete freezes

Post by thecursedfly » Thu Mar 29, 2018 9:01 am

Without that kernel this laptop has several issues (drivers, screen rotation, audio, usb-c, etc...), so changing kernel isn't really an option.

In the meantime I have reproduced the problem without any attachments (screen, keyb, mouse...), so it's either the laptop itself or software.

It's not a problem of the laptop having too low specs as the usage is very low when it occurs, and playing a video usually works without problems. But lately it seems to happen mainly while watching videos so I'm suspecting some issue with overheating (although it's not so hot at touch?) or something to do with the intel graphics card.

User avatar
kc1di
Level 13
Level 13
Posts: 4736
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: Find root cause of complete freezes

Post by kc1di » Thu Mar 29, 2018 9:16 am

you should be able to see the temp of the Processor with

Code: Select all

inxi -s
if it's a temp problem it will show up there if there are sensors in the machine.
you may also want to install a program like psensor that will monitor heat readings and display them for you.
good luck.
P.S. I don't usually tell people this on mint but if you absolutely need the latest kernels you may be better off with a more cutting edge distro such as manjaro which makes 4.16 rc7 available at present. They also offer a community spin with Cinnamon DE if that's what you like.
Easy tips : https://sites.google.com/site/easylinuxtipsproject/
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608

thecursedfly
Level 1
Level 1
Posts: 13
Joined: Sat Aug 20, 2011 7:05 pm

Re: Find root cause of complete freezes

Post by thecursedfly » Thu Mar 29, 2018 9:54 am

Seems like I have found a youtube video where I can reproduce the issue quite easily...
Happened again while playing the video [ https://www.youtube.com/watch?v=AVXRMu3kThw ] in the background, with psensor open in foreground, so that I coud take a screenshot of the temperatures:
www.dcdrops.com/files/IMG_20180329_153650s.jpg

Any idea whether these are very high?

thecursedfly
Level 1
Level 1
Posts: 13
Joined: Sat Aug 20, 2011 7:05 pm

Re: Find root cause of complete freezes

Post by thecursedfly » Thu Mar 29, 2018 11:44 am

The problem could be due to the BIOS version and DPTF. I am currently using the unlocked BIOS for the laptop where all kinds of settings can be tweaked; this BIOS version seems to be a bit unstable compared to the latest locked versions.
However the real cause seems to be DPTF; for now I have disabled DPTF and am unable to reproduce the freeze even while running two fullHD youtube videos at the same time. Psensor temperatures rise to 75 degees C, but don't rise more. Will see during the next coupe days if it really fixed the problem.

User avatar
kc1di
Level 13
Level 13
Posts: 4736
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: Find root cause of complete freezes

Post by kc1di » Thu Mar 29, 2018 2:14 pm

75 C is quite hot. Good luck.
Easy tips : https://sites.google.com/site/easylinuxtipsproject/
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608

ShellCode33
Level 1
Level 1
Posts: 4
Joined: Fri Aug 11, 2017 6:39 pm

Re: Find root cause of complete freezes

Post by ShellCode33 » Sun May 20, 2018 10:41 am

I have the exact same problem. My laptop runs Linux Mint 18.3 with kernel 4.13.0-41 under KDE Plasma.
I don't have any GPU, just an Intel CPU. I also have an SSD (I don't know if it's relevant but I have seen many people having freezing issues and having an SSD).
I have been able to reproduce the bug, on my computer it seams that the freezing occurs when watching a video AFTER RESUMING FROM SUSPEND.
I thought the problem was the hardware acceleration (even though I don't have any GPU) but I tried to disable it from my brower and it kept freezing...
Moreover, when powering off the computer after a freeze, sometimes when I turn it back on, the screen stays black and I have to manually turn it off again...

Good luck trying to find out what's wrong ^^

Post Reply

Return to “Software & Applications”