Linux Mint 21.1 sometimes suspend-to-ram works, sometimes it freezes
Linux MintThis forum is for the discussion of Linux Mint.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.