LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 05-15-2018, 03:40 AM   #1
Tonio-
LQ Newbie
 
Registered: May 2017
Posts: 24

Rep: Reputation: Disabled
Linux Mint Freeze after suspending


Hello,

I'm having an issue with my laptop since January. I thought it was due to a misconfiguration of something, and after not finding I formatted my laptop yesterday, but the issue is still there.

When I suspend my laptop and I come back after, it freeze totally, and I need to reboot to be able to use it again.
I achieve to take a picture of the tty while it was crashing, you can check it here. It seems to be an issue with my disk. The disk is quite new (less than 6 months): it's a SSD.
Another strange thing: while I'm not suspending it, everything just works greatly ! (no matter how long I use it).

If you have any idea of what could happen / how to solve it ?

Thanks in advance,
Best,

Tonio
Attached Thumbnails
Click image for larger version

Name:	LinuxMintIssueSleeping.jpg
Views:	124
Size:	138.7 KB
ID:	27632  
 
Old 05-15-2018, 08:36 AM   #2
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,247

Rep: Reputation: 78
My guess is that it has something to do with writing to your swap file or swap partition. When you suspend the laptop, the system stores information in swap. From the picture you attached, it appears that you are using disk encryption, and it appears that there is some problem reading and writing to it, and perhaps decrypting it?

This may not be the best solution, but I would try creating a dedicated swap partition on the disk that isn't encrypted. The size of the swap partition should be equal to the size of the physical RAM installed. I guess that would harm your information security somewhat, so someone else might have a better solution that wouldn't involve repartitioning the disk with an unencrypted partition.
 
Old 05-15-2018, 08:58 AM   #3
Tonio-
LQ Newbie
 
Registered: May 2017
Posts: 24

Original Poster
Rep: Reputation: Disabled
Hi !

Thanks for your answer !
I'm pretty sure the problem is not about encryption: I had the same issue before while I was using standard ext and ntfs formatting.
 
Old 05-15-2018, 07:05 PM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004
Are you suspending or hibernating? Is your ssd self-encrypting? Try
Code:
$ hdparm -I /dev/sda | less
for the model number. Is your screenshot going to sleep or waking up? Are you using LVM or raid? Which distro are you using?
 
Old 05-16-2018, 03:22 AM   #5
Tonio-
LQ Newbie
 
Registered: May 2017
Posts: 24

Original Poster
Rep: Reputation: Disabled
Hi,

Thanks for the help !

I'm suspending, not hibernating.
I'm not sure to understand what do you mean by "ssd self-encrypting". The encryption is the one I defined while I installed mint.

Model Number: Samsung SSD 850 EVO 500GB

There is no problem while going to sleep. The freeze come when I wake it up.

I'm using LVM

I'm in Linux Mint 18.3 64bit

Thanks again !
 
Old 05-25-2018, 11:57 AM   #6
Tonio-
LQ Newbie
 
Registered: May 2017
Posts: 24

Original Poster
Rep: Reputation: Disabled
Anyone have an idea ?
 
Old 05-26-2018, 01:26 AM   #7
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004
There is a file called swsusp.conf that controls going to sleep and waking up. Look in your log files or journalctl around the time of the wake up to check what's happening. It sounds like maybe there is some glitch in security. Anyone could wake the laptop up. There's no way it can tell who wakes it up.

But you want the drive unencrypted and the screen locked when it wakes up. So, check the logs and see if you can find the problem.
 
Old 06-02-2018, 07:10 AM   #8
Lysander666
Senior Member
 
Registered: Apr 2017
Location: The Underearth
Distribution: Slackware
Posts: 1,874
Blog Entries: 5

Rep: Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987
Exactly how are you suspending? Are you manually suspending from the logout menu or are you closing the lid [which normally leaves the task to the power manager]?

From my experience certain power managers/distros are good with autosuspend and others are not. Xfce Power Manager is good with autosuspend in Debian but not in Slackware, for some reason. One workaround is to attempt manually suspending from the logout menu. I have a similar issue whereby I can't rely on autosuspend in Slackware, but manually suspending is a perfectly acceptable workaround [for me anyway].
 
Old 06-02-2018, 02:17 PM   #9
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004
It looks like a kernel regression from v4.5 to latest. You should report it.
 
Old 06-11-2018, 08:48 AM   #10
Tonio-
LQ Newbie
 
Registered: May 2017
Posts: 24

Original Poster
Rep: Reputation: Disabled
Woh, I didn't see those answers, sorry for the delay.

@AwesomeMachine, I didn't find the swsusp.conf file. And for the logs, the picture I took is all I found in logs.

@Lysander666, I have the same issue with auto suspending and manual suspending. It's just always.

@AwesomeMachine, I'm not sure to understand what are you talking about, and what should I do to fix it ?

I remembered that I had this issue since I changed my SSD. Is that possible that the problem is from the hardware ? (as it's just working fine when I'm not suspending my laptop)

Thanks for your help !
 
Old 07-03-2018, 05:20 PM   #11
Nilsvdb
LQ Newbie
 
Registered: Jul 2018
Posts: 2

Rep: Reputation: Disabled
Hello

I just installed Linux Mint 18.3 Cinnamon 64-bit on my Lenovo Z50-70. I also have a Samsung SSD 850 EVO 500GB.

On my previous Linux Mint 17.3 Cinnamon I had no issue about resuming from Suspend, now I have the same issue as Tonio- as: "When I suspend my laptop and I come back after, it freeze totally, and I need to reboot to be able to use it again."

Tonio- could you fix the issue? Any other suggestion?

Thanx Nils
 
Old 07-04-2018, 02:36 AM   #12
Tonio-
LQ Newbie
 
Registered: May 2017
Posts: 24

Original Poster
Rep: Reputation: Disabled
Hi Nilsvdb,

I still have the issue, no solution to provide to you, sorry :/

Tonio
 
Old 07-04-2018, 03:02 AM   #13
Nilsvdb
LQ Newbie
 
Registered: Jul 2018
Posts: 2

Rep: Reputation: Disabled
Thanks Tonio.

Anybody else in the forum has some suggestion? Here below the tty output while trying to resume from Suspend

[360.735000] mce: [Hardware Error]: CPU 0: Machine Check: 0 Bank 5: ee0000000040110a
[360.735001] mce: [Hardware Error]: TSC 0 ADDR fef81dc0 MISC 38a0000086
[360.735008] mce: [Hardware Error]: PROCESSOR 0:40651 TIME 1530658677 SOCKET 0 APIC 0 microcode 1c
[360.735011] mce: [Hardware Error]: CPU 0: Machine Check: 0 Bank 6: ee0000000040110a
[360.735012] mce: [Hardware Error]: TSC 0 ADDR fef82180 MISC 78a0000086
[360.735018] mce: [Hardware Error]: PROCESSOR 0:40651 TIME 1530658677 SOCKET 0 APIC 0 microcode 1c
[360.935074] NVRM: X1d (PCI:0000:03:00): 79, GPU has fallen off the bus.

Thank you all!
Nils
 
Old 07-04-2018, 03:29 AM   #14
Lysander666
Senior Member
 
Registered: Apr 2017
Location: The Underearth
Distribution: Slackware
Posts: 1,874
Blog Entries: 5

Rep: Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987
I can't think of anything but maybe upgrading your version of Mint to 19.

e.g. since upgrading my Slackware kernel to 4.4.132 I no longer have to manually suspend. Autosuspend and resume work.

Mint 18.3 uses 4.10 whereas 19 uses 4.15.
 
Old 07-04-2018, 11:26 AM   #15
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth? I would say I hope so but I'm not so sure about that... I could just be a figment of your imagination too.
Distribution: Currently OpenMandriva. Previously openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,092

Rep: Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595
Quote:
Originally Posted by AwesomeMachine View Post
It looks like a kernel regression from v4.5 to latest. You should report it.
If the OP has a Dell XPS13, someone already has;

https://lkml.org/lkml/2017/1/4/559
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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] Deleted important linux mint system files, Attempts to re-install freeze VentureBro Linux - Distributions 2 07-12-2017 05:02 PM
Videos buffer a lot and make Linux Mint 18.1 freeze sassy_samurai Linux - Software 2 02-21-2017 02:28 PM
Asus am1i-a Linux Mint Possible Display Freeze Issue Help christof21 Linux - Hardware 5 01-11-2016 01:57 PM
[SOLVED] How to get a terminal from Linux Mint before total freeze ben44b Linux - Hardware 10 01-09-2016 09:40 PM
Suspending "freeze" a process in C Pratik H Pandya Programming 3 10-03-2005 12:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 09:36 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration