LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   Linux Mint Freeze after suspending (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/linux-mint-freeze-after-suspending-4175629738/)

Tonio- 05-15-2018 03:40 AM

Linux Mint Freeze after suspending
 
1 Attachment(s)
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

m_yates 05-15-2018 08:36 AM

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.

Tonio- 05-15-2018 08:58 AM

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.

AwesomeMachine 05-15-2018 07:05 PM

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?

Tonio- 05-16-2018 03:22 AM

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 !

Tonio- 05-25-2018 11:57 AM

Anyone have an idea ?

AwesomeMachine 05-26-2018 01:26 AM

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.

Lysander666 06-02-2018 07:10 AM

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].

AwesomeMachine 06-02-2018 02:17 PM

It looks like a kernel regression from v4.5 to latest. You should report it.

Tonio- 06-11-2018 08:48 AM

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 !

Nilsvdb 07-03-2018 05:20 PM

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

Tonio- 07-04-2018 02:36 AM

Hi Nilsvdb,

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

Tonio

Nilsvdb 07-04-2018 03:02 AM

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

Lysander666 07-04-2018 03:29 AM

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.

jsbjsb001 07-04-2018 11:26 AM

Quote:

Originally Posted by AwesomeMachine (Post 5862619)
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


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