ubuntu freezing when waking from suspend mode

Asked by Oguzhan Dogan

We have around 250 Lenovo ThinkCentre M90n-1 devices on which we have set suspend mode on for the night, and WakeSystem=true for the morning, triggered by the system timer.
The issue is that we have around random 2 devices per week not waking up from the suspend mode. M90n-1
I would like to have your suggestions about how to solve this problem.

Lenovo ThinkCentre M90n-1 4GB RAM (Swap = 2GB)
uname -a output
Linux 5.15.0-69-generic #76~20.04.1-Ubuntu

Our wake up service is as follows.
-----------------------
cat auto-resume.timer
[Unit]
Description=Automatically resume on a schedule

[Timer]
OnCalendar=--* 07:00:00
WakeSystem=true
--------------------
The screen appears on the screen during pc wake-up, but after a short while it hangs-freeze and no action can be taken, but it is fixed by turning the pc off and on.
The relevant syslog record is as follows.
-----------
Apr  6 02:03:35 3000000123 nm-dispatcher[36654]: run-parts: failed to stat component /etc/network/if-post-down.d/avahi-daemon: No such file or directory
Apr  6 02:03:35 3000000123 systemd[1]: Reached target Sleep.
Apr  6 02:03:35 3000000123 systemd[1]: Starting Record successful boot for GRUB...
Apr  6 02:03:35 3000000123 systemd[1]: Starting Suspend...
Apr  6 02:03:35 3000000123 systemd-sleep[36659]: Suspending system...
Apr  6 02:03:35 3000000123 systemd[1]: grub-common.service: Succeeded.
Apr  6 02:03:35 3000000123 kernel: [115451.065577] PM: suspend entry (deep)
Apr  6 02:03:35 3000000123 systemd[1]: Finished Record successful boot for GRUB.
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^
@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
Apr  6 09:22:36 3000000123 systemd-modules-load[639]: Inserted module 'lp'
Apr  6 09:22:36 3000000123 systemd-modules-load[639]: Inserted module 'ppdev'
Apr  6 09:22:36 3000000123 systemd-modules-load[639]: Inserted module 'parport_pc'
Apr  6 09:22:36 3000000123 systemd-modules-load[639]: Inserted module 'msr'
Apr  6 09:22:36 3000000123 lvm[631]:   2 logical volume(s) in volume group "vgubuntu" monitored
---------

I would like to have your suggestions about how to solve this problem. Thank you

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Bernard Stafford (bernard010) said :
#1

Until the problem is solved with suspend.
I suggest using hibernate for now.
Use hibernate instead of suspend.
Hibernate Moves the contents of memory into swap, tells the bootloader to boot directly into the appropriate kernel, and shuts the machine down, in this state, the system does not require power.

Terminal: sudo pm-hibernate

Revision history for this message
Oguzhan Dogan (oguzhandogan) said :
#2

Hello,
Suspend mode is open on our PCs around 300 in the field. We do not have the opportunity to switch to hibernate in the short term.
So what else can we do as a solution?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Do you have the latest BIOS? It may help

Revision history for this message
Oguzhan Dogan (oguzhandogan) said :
#4

The Bios version we are using is as follows.

BIOS Information
        Vendor: LENOVO
        Version: M2AKT34A
        Release Date: 07/18/2022
        Address: 0xF0000
        Runtime Size: 64 kB
        ROM Size: 16 MB
When we update via ubuntu, it updates to this version as the latest version.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

There is an ISO to update the BIOS dated 27th Feb 2023

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#6
Revision history for this message
Oguzhan Dogan (oguzhandogan) said :
#7

Hi,
We updated the bios to M2AKT37A version. However, my problem still persists. Do you have any other solution suggestions?

Revision history for this message
Manfred Hampl (m-hampl) said :
#8

There are some reports on the web that in some cases such problems could be solved by unloading certain kernel modules (e.g. network device drivers) before going to suspend and re-loading them afterwards. Might be worth trying also for your systems.

Can you help with this problem?

Provide an answer of your own, or ask Oguzhan Dogan for more information if necessary.

To post a message you must log in.