LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-22-2018, 02:30 AM   #1
hobocore
LQ Newbie
 
Registered: Jul 2018
Location: Finland
Distribution: Debian Buster
Posts: 7

Rep: Reputation: Disabled
Random freezes on laptop running Debian testing and Cinnamon


Hello everybody, first post on this forum

I'm experiencing seemingly random freezes on my laptop running Debian testing and Cinnamon desktop. I've previously run Debian testing on this same laptop without problems and they only started after a disk recovery with Clonezilla and persisted through a reinstallation of Debian. Problem present with both stable and testing versions of distro. When freezing the desktop goes first and becomes unresponsive though sound keeps playing and mouse pointer keeps moving. After a few seconds screen goes black and sound stops OR mouse pointer just freezes and screen doesn't go black.

After reinstallation it seemed like using a browser (both Firefox and Chromium) would trigger a freeze, but later on starting the package manager would also trigger it. I tried to uninstall the xserver-xorg-video-intel package which seemed to work at first, but right now I'm experiencing a freeze every time i try to use Skype for linux. All in all, can't seem to pinpoint any one application that would trigger the freeze. Right now I'm typing this in a firefox window, and both firefox and chromium seem to work normally.

The laptop is quite new and successfully ran memtest86 a couple of months ago. Haven't tried it since the freezes started, though.

I've tried to skim the logs, but don't really know what I'm looking for. here's the inxi output FWIW:
Code:
inxi -F -r
System:
  Host: Opus4 Kernel: 4.16.0-2-amd64 x86_64 bits: 64 Desktop: Cinnamon 3.6.7 
  Distro: Debian GNU/Linux buster/sid 
Machine:
  Type: Laptop System: TUXEDO product: N13xWU v: N/A serial: <root required> 
  Mobo: TUXEDO model: N13xWU serial: <root required> UEFI: American Megatrends 
  v: 1.05.11 date: 02/09/2018 
Battery:
  ID-1: BAT0 charge: 9.2 Wh condition: 36.7/35.3 Wh (104%) 
CPU:
  Topology: Quad Core model: Intel Core i7-8550U bits: 64 type: MT MCP 
  L2 cache: 8192 KiB 
  Speed: 800 MHz min/max: 400/4000 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 
  4: 800 5: 801 6: 800 7: 800 8: 800 
Graphics:
  Card-1: Intel UHD Graphics 620 driver: i915 v: kernel 
  Display: x11 server: X.Org 1.19.6 driver: modesetting unloaded: fbdev,vesa 
  resolution: 3200x1800~60Hz 
  OpenGL: renderer: Mesa DRI Intel UHD Graphics 620 (Kabylake GT2) 
  v: 4.5 Mesa 18.1.4 
Audio:
  Card-1: Intel Sunrise Point-LP HD Audio driver: snd_hda_intel 
  Sound Server: ALSA v: k4.16.0-2-amd64 
Network:
  Card-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169 
  IF: enp58s0f1 state: down mac: 80:fa:5b:57:11:38 
  Card-2: Intel Wireless 8265 / 8275 driver: iwlwifi 
  IF: wlp59s0 state: up mac: f8:63:3f:cf:85:7d 
Drives:
  Local Storage: total: 232.89 GiB used: 34.62 GiB (14.9%) 
  ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 960 EVO 250GB size: 232.89 GiB 
Partition:
  ID-1: / size: 135.86 GiB used: 34.44 GiB (25.3%) fs: ext4 dev: /dev/dm-2 
  ID-2: /boot size: 236.3 MiB used: 75.2 MiB (31.8%) fs: ext2 dev: /dev/nvme0n1p2 
  ID-3: swap-1 size: 15.92 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/dm-1 
Sensors:
  System Temperatures: cpu: 50.0 C mobo: N/A 
  Fan Speeds (RPM): N/A 
Repos:
  Active apt repos in: /etc/apt/sources.list 
  1: deb http://ftp.fi.debian.org/debian/ testing main contrib non-free
  2: deb-src http://ftp.fi.debian.org/debian/ testing main contrib non-free
  3: deb http://security.debian.org testing/updates main
  4: deb-src http://security.debian.org testing/updates main
  5: deb http://repository.spotify.com stable non-free
  6: deb http://liveusb.info/multisystem/depot all main
  Active apt repos in: /etc/apt/sources.list.d/skype-stable.list 
  1: deb [arch=amd64] https://repo.skype.com/deb stable main
Info:
  Processes: 225 Uptime: 13m Memory: 15.55 GiB used: 1.56 GiB (10.0%) Shell: bash 
  inxi: 3.0.18
Glad to provide more information if asked.
 
Old 07-22-2018, 08:11 PM   #2
h2-1
Member
 
Registered: Mar 2018
Distribution: Debian Testing
Posts: 556

Rep: Reputation: 316Reputation: 316Reputation: 316Reputation: 316
bad bytes probably

It sounds to me like you restored or cloned bad bytes from a failing disk, which means, some of the programs actually have literally missing bits of themselves.

I'd reinstall all the programs, using apt-get install --reinstall [the entire package set]

There's no real way to know, if your disk that was failing was the source of the clone, you cloned the missing binary bits along with the good ones, if the clone disk itself has issues, it could have dropped bits, but it sounds to me like you have some corrupted binaries, that's my first guess.
 
Old 07-22-2018, 08:52 PM   #3
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Since you've installed several times, and the problem persists, I would run memtest again, although memtest sometimes fails to find the error. Memtester has always worked for me. You also might want to reseat the ram. See what happens with that. And you could try a live system, like knoppix, and see what happens.

Also, newer hardware can be flaky with Linux. It takes a little while to get the drivers right. But it sounds like a memory error.
 
1 members found this post helpful.
Old 07-22-2018, 09:42 PM   #4
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,808
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
The Gigabyte Kaby Lake motherboard with AMI BIOS and UHD Graphics 630 that I bought in December locked up out of the blue when it was 5 months old. I couldn't get it to boot far enough to run memtest86 until I removed a RAM stick from one of the slots. I'm still waiting on Gigabyte to return it from RMA "repair" to make all 4 slots functional again. Does your your laptop have 2 installed RAM sticks? If so, try using only one, and test both.
 
Old 07-22-2018, 11:12 PM   #5
hobocore
LQ Newbie
 
Registered: Jul 2018
Location: Finland
Distribution: Debian Buster
Posts: 7

Original Poster
Rep: Reputation: Disabled
I'll try reseating the ram and running memtest on both sticks. Forgot to mention in the opening post, though, I'm dual booting Win10 in which I haven't experienced the freezes (haven't really used Win10 for anything other than installing it and configuring it, so hard to say).

After posting Skype now runs normally again and I currently can't reproduce the freezes, but I'll get back after the memtest.

Thanks for the replies so far!
 
Old 07-23-2018, 09:12 AM   #6
hobocore
LQ Newbie
 
Registered: Jul 2018
Location: Finland
Distribution: Debian Buster
Posts: 7

Original Poster
Rep: Reputation: Disabled
memtest86 succesful

Reseated the RAM (just one stick), ran memtest86 for 4 passes without incident. Problem still persists, but doesn't seem to have anything to do with any specific program.
 
Old 07-23-2018, 02:51 PM   #7
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Then I'd blame kernel modules.
 
Old 07-23-2018, 03:58 PM   #8
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,808
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
I suspect that it happened after the clonezilla operation is mere coincidence. More likely the newness is related, a defect that took time for heat to expose.

Newness also may mean there's a recommended BIOS update available.

I wouldn't be satisfied with only 4 passes of Memtest86. 10-12 hours (overnight) is what I'd do.
 
1 members found this post helpful.
Old 07-30-2018, 09:52 AM   #9
hobocore
LQ Newbie
 
Registered: Jul 2018
Location: Finland
Distribution: Debian Buster
Posts: 7

Original Poster
Rep: Reputation: Disabled
Overnight run of memtest86 produced no errors, and there's no UEFI update available (at least yet). Now if kernel modules could be to blame, is there some way to zero in on the culprit? Unloading modules one by one and waiting for symptoms would probably not be practical as I can go for days (or weeks, even) without freezes and then one day I'll have five.
Thanks for all the replies so far, the help is greatly appreciated!
 
Old 08-01-2018, 09:16 AM   #10
joe_2000
Senior Member
 
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 1,016

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
Can you figure out what's freezing exactly? Is it just X or the whole system. E.g.: Can you CTRL-ALT-F? switch to a tty and restart the X Server?
Can you still ssh into the box from another computer?
If it is only Xorg that's crashing I'd check the Xorg logs for pointers.
If it is the whole system thats crashing, I'd look in the journal / dmesg...

Have you done a hard drive check with smartmontools?

On a separate note: When you run into these freezes, how are you recovering? I once had freezes for a period of time (these were fixed after using a newer kernel) and hard resetted the computer everytime which created a number of bad sectors on the disk. I wish I had known about https://en.wikipedia.org/wiki/Magic_SysRq_key back then...
 
1 members found this post helpful.
Old 08-02-2018, 02:00 PM   #11
hobocore
LQ Newbie
 
Registered: Jul 2018
Location: Finland
Distribution: Debian Buster
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by joe_2000 View Post
Can you figure out what's freezing exactly? Is it just X or the whole system. E.g.: Can you CTRL-ALT-F? switch to a tty and restart the X Server?
Can you still ssh into the box from another computer?
If it is only Xorg that's crashing I'd check the Xorg logs for pointers.
If it is the whole system thats crashing, I'd look in the journal / dmesg...
I can't believe I didn't think of this earlier (newb ). CTRL+ALT+DEL is ineffective, though, as is ACPI shutdown by pressing the power button. Sometimes the freeze is preceded by a couple of graphical glitches but not always. I have to get back on this when I encounter the next freeze.
Quote:
Originally Posted by joe_2000 View Post
Have you done a hard drive check with smartmontools?
Disk seems to be fine.
Quote:
Originally Posted by joe_2000 View Post
On a separate note: When you run into these freezes, how are you recovering? I once had freezes for a period of time (these were fixed after using a newer kernel) and hard resetted the computer everytime which created a number of bad sectors on the disk. I wish I had known about https://en.wikipedia.org/wiki/Magic_SysRq_key back then...
Thank's for the tip, I've been doing hard resets so far and luckily I apparently haven't damaged the disk yet.
 
Old 08-03-2018, 04:06 AM   #12
joe_2000
Senior Member
 
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 1,016

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
Quote:
Originally Posted by hobocore View Post
Sometimes the freeze is preceded by a couple of graphical glitches but not always.
This all sounds a bit like it might be related to your graphics card. Some ideas:
Search system logs for output related to your graphics card.
Run lspci to get the exact identifier and search the web for similar issues with this graphics card.
Check if you have the right graphics drivers installed.
Also might be worth to search for kernel parameters that might be helpful to tweak the behavior...
 
Old 08-03-2018, 04:16 AM   #13
joe_2000
Senior Member
 
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 1,016

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
Quote:
Originally Posted by hobocore View Post
I've previously run Debian testing on this same laptop without problems and they only started after a disk recovery
Are you absolutely positive that the problem did not exist before the disk recovery? I.e. have you run Debian long enough to be confident that it did not have this problem?
What I am getting at: You might want to try a different distro altogether or at least a newer kernel. If you are not comfortable installing a custom kernel consider running Debian unstable or Arch for a while just to see what happens...
 
Old 08-03-2018, 03:21 PM   #14
hobocore
LQ Newbie
 
Registered: Jul 2018
Location: Finland
Distribution: Debian Buster
Posts: 7

Original Poster
Rep: Reputation: Disabled
Couple of freezes again today, and during the freeze I can NOT switch to a tty by Ctrl+Alt+F(n), but I CAN still ssh into the laptop. su into root shell and tried to restart lightdm but that did nothing. Searching for similar issues with the Intel UHD 620 Kaby Lake and i915-driver I did find a blog post describing eerily similar behaviour, but the poster in question could NOT ping the the box after a freeze. There are some bug reports about this graphics card and new kernels, so might be that. Couldn't find a definitive fix, though.
dmesg did show messages
Quote:
[ 18.109653] i915 0000:00:02.0: firmware: failed to load i915/kbl_dmc_ver1_04.bin (-2)
[ 18.109661] firmware_class: See https://wiki.debian.org/Firmware for information about missing firmware
[ 18.109666] i915 0000:00:02.0: Direct firmware load for i915/kbl_dmc_ver1_04.bin failed with error -2
[ 18.109671] i915 0000:00:02.0: Failed to load DMC firmware i915/kbl_dmc_ver1_04.bin. Disabling runtime power management.
at boot, but installing the firmware-misc-nonfree -package fixed that but freezes still persist.

Following messages are also shown at boot:
Quote:
[ 0.925310] pstore: using deflate compression
[ 18.020030] pstore: crypto_comp_decompress failed, ret = -22!
[ 18.020064] pstore: decompression failed: -22
[ 18.020325] pstore: crypto_comp_decompress failed, ret = -22!
[ 18.020354] pstore: decompression failed: -22
[ 18.020631] pstore: crypto_comp_decompress failed, ret = -22!
[ 18.020661] pstore: decompression failed: -22
[ 18.020935] pstore: crypto_comp_decompress failed, ret = -22!
[ 18.020959] pstore: decompression failed: -22
[ 18.021215] pstore: crypto_comp_decompress failed, ret = -22!
[ 18.021239] pstore: decompression failed: -22
[ 18.021503] pstore: crypto_comp_decompress failed, ret = -22!
[ 18.021528] pstore: decompression failed: -22
[ 18.021782] pstore: crypto_comp_decompress failed, ret = -22!
[ 18.021809] pstore: decompression failed: -22
[ 18.022086] pstore: crypto_comp_decompress failed, ret = -22!
[ 18.022109] pstore: decompression failed: -22
[ 18.022495] pstore: crypto_comp_decompress failed, ret = -22!
[ 18.022520] pstore: decompression failed: -22
[ 18.022768] pstore: crypto_comp_decompress failed, ret = -22!
[ 18.022791] pstore: decompression failed: -22
[ 18.023143] pstore: crypto_comp_decompress failed, ret = -22!
[ 18.023167] pstore: decompression failed: -22
[ 18.023416] pstore: crypto_comp_decompress failed, ret = -22!
[ 18.023440] pstore: decompression failed: -22
[ 18.023690] pstore: crypto_comp_decompress failed, ret = -22!
[ 18.023713] pstore: decompression failed: -22
[ 18.023976] pstore: crypto_comp_decompress failed, ret = -22!
[ 18.024024] pstore: decompression failed: -22
[ 18.028339] pstore: crypto_comp_decompress failed, ret = -22!
[ 18.028368] pstore: decompression failed: -22
[ 18.028618] pstore: crypto_comp_decompress failed, ret = -22!
[ 18.028644] pstore: decompression failed: -22
[ 18.028976] pstore: crypto_comp_decompress failed, ret = -22!
[ 18.029013] pstore: decompression failed: -22
[ 18.029280] pstore: crypto_comp_decompress failed, ret = -22!
[ 18.029307] pstore: decompression failed: -22
[ 18.029593] pstore: crypto_comp_decompress failed, ret = -22!
[ 18.029621] pstore: decompression failed: -22
[ 18.029875] pstore: crypto_comp_decompress failed, ret = -22!
[ 18.029914] pstore: decompression failed: -22
[ 18.030163] pstore: crypto_comp_decompress failed, ret = -22!
[ 18.030188] pstore: decompression failed: -22
[ 18.030447] pstore: crypto_comp_decompress failed, ret = -22!
[ 18.030474] pstore: decompression failed: -22
[ 18.030742] pstore: crypto_comp_decompress failed, ret = -22!
[ 18.030765] pstore: decompression failed: -22
[ 18.031028] pstore: crypto_comp_decompress failed, ret = -22!
[ 18.031053] pstore: decompression failed: -22
[ 18.031308] pstore: crypto_comp_decompress failed, ret = -22!
[ 18.031331] pstore: decompression failed: -22
[ 18.031578] pstore: crypto_comp_decompress failed, ret = -22!
[ 18.031604] pstore: decompression failed: -22
[ 18.031868] pstore: crypto_comp_decompress failed, ret = -22!
[ 18.031892] pstore: decompression failed: -22
[ 18.032170] pstore: crypto_comp_decompress failed, ret = -22!
[ 18.032191] pstore: decompression failed: -22
[ 18.036249] pstore: crypto_comp_decompress failed, ret = -22!
[ 18.036290] pstore: decompression failed: -22
[ 18.036545] pstore: crypto_comp_decompress failed, ret = -22!
[ 18.036573] pstore: decompression failed: -22
[ 18.036833] pstore: crypto_comp_decompress failed, ret = -22!
[ 18.036874] pstore: decompression failed: -22
[ 18.037127] pstore: crypto_comp_decompress failed, ret = -22!
[ 18.037156] pstore: decompression failed: -22
Google-search for those messages yielded very little, is this relevant?
 
Old 08-03-2018, 04:14 PM   #15
joe_2000
Senior Member
 
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 1,016

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
Quote:
Originally Posted by hobocore View Post
Couple of freezes again today, and during the freeze I can NOT switch to a tty by Ctrl+Alt+F(n), but I CAN still ssh into the laptop.
That's an interesting fact!

Quote:
Originally Posted by hobocore View Post
su into root shell and tried to restart lightdm but that did nothing.
Hmm, it must have done something? If you cannot gracefully restart lightdm have you tried kill -9 on the lightdm process and then starting it?
Have you done a top to see if there are any processes going crazy on memory / cpu usage?

Quote:
Originally Posted by hobocore View Post
Following messages are also shown at boot:
Google-search for those messages yielded very little, is this relevant?
I did not find much either except for this here on pstore:
https://www.kernel.org/doc/Documenta...testing/pstore

This seems to be something that is there to store information about crashes. Might be worth diving into for further diagnosis...

Quote:
Originally Posted by hobocore View Post
There are some bug reports about this graphics card and new kernels, so might be that. Couldn't find a definitive fix, though.
So it might be worth trying to install an older kernel? Can you find out what kernel version exactly you were running when you did not have these problems?
 
  


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
[SOLVED] installing windows 7 on a laptop running cinnamon melj Linux - Newbie 3 09-21-2014 02:53 PM
Touchpad freezes laptop in Mint 17 Cinnamon ghis Linux - Hardware 5 07-08-2014 11:52 AM
[SOLVED] debian testing freezes on login qrange Debian 6 05-07-2011 03:30 PM
Random X Freezes, Debian Testing/KDE nicklaszlo Linux - Software 8 02-14-2010 11:16 PM
Random IO freezes when VMware is running under load 1N4148 Linux - Software 3 06-20-2008 02:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05: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