LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 01-21-2023, 07:29 AM   #1
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,294
Blog Entries: 3

Rep: Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719
Linux Mint 21.1 sometimes suspend-to-ram works, sometimes it freezes


I've been having intermittent trouble with suspend-to-RAM on Linux Mint 21.1 on x86_64 with the 5.15.0-58-generic kernel. Most of the time it suspends and wakes just fine. Other times it freezes, either when trying to suspend or when trying to wake. I'm not finding any information in the logs. How or where should I be looking for a solution so that it suspends successfully and resumes successfully each time?

Below are some log excerpts from the time frame of the latest freeze.

From /var/log/kern.log:

Code:
...
Jan 21 10:39:53 pulse15 kernel: [217152.013649] wlp3s0: deauthenticating from 22
:b0:01:cd:29:6b by local choice (Reason: 3=DEAUTH_LEAVING)
Jan 21 10:39:53 pulse15 kernel: [217152.047096] r8169 0000:01:00.0 enp1s0: Link 
is Down
Jan 21 10:39:53 pulse15 kernel: [217152.249545] PM: suspend entry (s2idle)
Jan 21 10:39:53 pulse15 kernel: [217152.265313] Filesystems sync: 0.015 seconds
Jan 21 13:13:23 pulse15 kernel: [    0.000000] Linux version 5.15.0-58-generic (
buildd@lcy02-amd64-101) (gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0, GNU ld (GNU 
Binutils for Ubuntu) 2.38) #64-Ubuntu SMP Thu Jan 5 11:43:13 UTC 2023 (Ubuntu 5.
15.0-58.64-generic 5.15.74)
Jan 21 13:13:23 pulse15 kernel: [    0.000000] Command line: BOOT_IMAGE=/boot/vm
linuz-5.15.0-58-generic root=UUID=6dfb771a-39ab-4a7f-9593-306566f43043 ro quiet 
splash
Jan 21 13:13:23 pulse15 kernel: [    0.000000] KERNEL supported cpus:
...
From /var/log/syslog:

Code:
...
Jan 21 10:39:54 pulse15 systemd[1]: Starting User Runtime Directory /run/user/11
3...
Jan 21 10:39:54 pulse15 systemd[1]: Finished User Runtime Directory /run/user/11
3.
Jan 21 10:39:54 pulse15 systemd[1]: Starting User Manager for UID 113...
Jan 21 10:39:54 pulse15 systemd[2573950]: Queued start job for default target Ma
in User Target.
Jan 21 10:39:54 pulse15 systemd[2573950]: Created slice User Application Slice.
Jan 21 10:39:54 pulse15 systemd[2573950]: Created slice User Core Session Slice.
Jan 21 10:39:54 pulse15 systemd[25739Jan 21 13:13:23 pulse15 systemd-modules-load[553]: Inserted module 'lp'
Jan 21 13:13:23 pulse15 kernel: [    0.000000] Linux version 5.15.0-58-generic (buildd@lcy02-amd64-101) (gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #64-Ubuntu SMP Thu Jan 5 11:43:13 UTC 2023 (Ubuntu 5.15.0-58.64-generic 5.15.74)
Jan 21 13:13:23 pulse15 kernel: [    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-5.15.0-58-generic root=UUID=6dfb771a-39ab-4a7f-9593-306566f43043 ro quiet splash
Jan 21 13:13:23 pulse15 systemd-modules-load[553]: Inserted module 'ppdev'
Jan 21 13:13:23 pulse15 kernel: [    0.000000] KERNEL supported cpus:
...
From journalctl:

Code:
Jan 21 10:39:53 pulse15 systemd[1]: Reached target Sleep.
Jan 21 10:39:53 pulse15 systemd[1]: Starting Record successful boot for GRUB...
Jan 21 10:39:53 pulse15 systemd[1]: Starting System Suspend...
Jan 21 10:39:53 pulse15 systemd-sleep[2573806]: Entering sleep state 'suspend'.>
Jan 21 10:39:53 pulse15 systemd[1]: grub-common.service: Deactivated successful>
Jan 21 10:39:53 pulse15 systemd[1]: Finished Record successful boot for GRUB.
Jan 21 10:39:53 pulse15 kernel: PM: suspend entry (s2idle)
Jan 21 10:39:53 pulse15 systemd[1]: Starting GRUB failed boot detection...
Jan 21 10:39:53 pulse15 systemd[1]: grub-initrd-fallback.service: Deactivated s>
Jan 21 10:39:53 pulse15 systemd[1]: Finished GRUB failed boot detection.
Jan 21 10:39:53 pulse15 kernel: Filesystems sync: 0.015 seconds
-- Boot 9cf70ac7fdd44f5aae464458e13859d5 --
Jan 21 13:13:21 pulse15 kernel: Linux version 5.15.0-58-generic (buildd@lcy02-a>
Jan 21 13:13:21 pulse15 kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-5.15.0-5>
Jan 21 13:13:21 pulse15 kernel: KERNEL supported cpus:
Some system information:

Code:
$ mount | grep -E '^/|zfs'
/dev/nvme0n1p2 on / type ext4 (rw,relatime,errors=remount-ro,stripe=32)
/dev/nvme0n1p1 on /boot/efi type vfat (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/nvme1n1p2 on /var type ext4 (rw,relatime,stripe=32)
home on /home type zfs (rw,xattr,noacl)

$ swapon
NAME           TYPE       SIZE USED PRIO
/dev/nvme1n1p3 partition 17,6G 768M   -2

$ free -g
               total        used        free      shared  buff/cache   available
Mem:              15          13           1           0           0           1
Swap:             17           0          16

Last edited by Turbocapitalist; 01-22-2023 at 12:34 PM. Reason: suspend-to-ram
 
Old 01-22-2023, 12:16 PM   #2
Leo-MathGuy
LQ Newbie
 
Registered: Jan 2023
Location: Kerbin
Distribution: Debian
Posts: 7

Rep: Reputation: 0
Can you do "free -mh"

It will show memory and swap space.
 
Old 01-22-2023, 12:19 PM   #3
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,294

Original Poster
Blog Entries: 3

Rep: Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719
Thanks. At the moment it shows the following:

Code:
$ free -mh
               total        used        free      shared  buff/cache   available
Mem:            15Gi        10Gi       4.2Gi       106Mi       751Mi       4.5Gi
Swap:           17Gi       3.1Gi        14Gi
 
1 members found this post helpful.
Old 01-22-2023, 12:23 PM   #4
Leo-MathGuy
LQ Newbie
 
Registered: Jan 2023
Location: Kerbin
Distribution: Debian
Posts: 7

Rep: Reputation: 0
You don't have enough swap for hibernation. It's more like on the edge (You need some extra swap for programs that use it). Try making your swap 24GB and see if the problem persists.

I just found out you are doing suspend-to-ram, can you edit the title so it says suspend-to-ram?

You possibly configured it wrong, and it is using normal hibernation-to-swap

Last edited by Leo-MathGuy; 01-22-2023 at 12:25 PM.
 
Old 01-22-2023, 12:43 PM   #5
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,294

Original Poster
Blog Entries: 3

Rep: Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719
Quote:
Originally Posted by Leo-MathGuy View Post
You don't have enough swap for hibernation. It's more like on the edge (You need some extra swap for programs that use it). Try making your swap 24GB and see if the problem persists.
Thanks. I had suspected that. It looks like I'll have to set aside time to redo the partitioning on that system. Unfortunately that probably means a clean installation of a fairly complex setup. The Linux Mint installer uses only MB if I recall correctly, so it may take a few tries or is the 24GB not a precise requirement and only an approximation?

Quote:
Originally Posted by Leo-MathGuy View Post
I just found out you are doing suspend-to-ram, can you edit the title so it says suspend-to-ram?

You possibly configured it wrong, and it is using normal hibernation-to-swap
It's the default setup but it does seem like it's doing hibernation rather than sleep.
 
Old 01-22-2023, 01:24 PM   #6
Leo-MathGuy
LQ Newbie
 
Registered: Jan 2023
Location: Kerbin
Distribution: Debian
Posts: 7

Rep: Reputation: 0
You don't need to reinstall or repartition your system, you can just make a swap file.
 
  


Reply

Tags
suspend



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
Gnome lock screen sometimes doesn't turn off the monitor, and sometimes completely freezes. TheJooomes Linux - Desktop 13 06-07-2021 01:43 PM
[SOLVED] Suspend problem - suspend sometimes does a logout taylorkh Linux - Hardware 4 06-24-2010 04:12 PM
Quake3: Sometimes works, sometimes doesn't migo Linux - Software 2 02-03-2003 02:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

All times are GMT -5. The time now is 05:46 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
Open Source Consulting | Domain Registration