You are not logged in.

#1 2022-06-23 03:02:52

ImDevinC
Member
Registered: 2016-10-15
Posts: 4

Cannot hibernate twice

I'm having an issue trying to hibernate my laptop more than one time using systemd-hibernate. The first time works great, but anytime after that the computer won't hibernate and I see the following message in the systemctl status:

Jun 22 19:48:19 rowboat systemd-sleep[2781847]: Failed to put system to sleep. System resumed again: No such device

I've attached a journalctl that includes a successful hibernate followed by a failed hibernate dmesg output

× systemd-hibernate.service - Hibernate
     Loaded: loaded (/usr/lib/systemd/system/systemd-hibernate.service; static)
     Active: failed (Result: exit-code) since Wed 2022-06-22 19:48:19 PDT; 2min 10s ago
       Docs: man:systemd-hibernate.service(8)
    Process: 2781847 ExecStart=/usr/lib/systemd/systemd-sleep hibernate (code=exited, status=1/FAILURE)
   Main PID: 2781847 (code=exited, status=1/FAILURE)
        CPU: 749ms

Jun 22 19:48:16 rowboat systemd[1]: Starting Hibernate...
Jun 22 19:48:16 rowboat systemd-sleep[2781847]: Entering sleep state 'hibernate'...
Jun 22 19:48:19 rowboat systemd-sleep[2781847]: Failed to put system to sleep. System resumed again: No such device
Jun 22 19:48:19 rowboat systemd[1]: systemd-hibernate.service: Main process exited, code=exited, status=1/FAILURE
Jun 22 19:48:19 rowboat systemd[1]: systemd-hibernate.service: Failed with result 'exit-code'.
Jun 22 19:48:19 rowboat systemd[1]: Failed to start Hibernate.

I'm also using systemd-boot, which I realize could have some impact. So I'm attaching the output for my boot entry (I only have one) located at /boot/loader/entries/arch.conf

title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options root=PARTUUID=9916992c-d5f9-4a08-9303-1841d3bf0c3a rw
options resume=UUID=531f7970-fda5-4c71-8c3f-d7111ece5ef3
options resume_offset=12353536

Filefrag for the swapfile (it's not a separate partitoin, just a file on my main partition)

filefrag -v /swapfile
Filesystem type is: ef53
File size of /swapfile is 18253611008 (4456448 blocks of 4096 bytes)
 ext:     logical_offset:        physical_offset: length:   expected: flags:
   0:        0..   32767:   12353536..  12386303:  32768:
   1:    32768..   63487:   16713728..  16744447:  30720:   12386304:
   2:    63488..   92159:   16650240..  16678911:  28672:   16744448:
...

And /etc/fstab

cat /etc/fstab                                                                                                                         [19:57:03]
# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
# /dev/nvme0n1p2
UUID=531f7970-fda5-4c71-8c3f-d7111ece5ef3	/         	ext4      	rw,relatime	0 1

# /dev/nvme0n1p1
UUID=788D-4247	/boot     	vfat      	rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro	0 2

# swapfile
/swapfile	none	swap	defaults 0 0

Thanks in advance for any advice.

Offline

#2 2022-07-04 19:34:36

Miki_1414
Member
Registered: 2021-02-28
Posts: 2

Re: Cannot hibernate twice

I am having exactly the same issue. Laptop will suspend only in TTY and only once, after that, the same error

systemd-sleep[1471]: Failed to put system to sleep. System resumed again: No such device

pops up. I am not using systemd-boot, so I don't think that is a variable in this. Also, suspending on my system worked fine couple of days/weeks ago, so I suspect it might be a bug introduced in recent update. No idea how to fix it however.

Offline

#3 2022-07-04 22:52:00

_dodger_
Member
Registered: 2019-11-12
Posts: 11

Re: Cannot hibernate twice

Same here. This started mid-june for me. I hadn't updated for a while and received a new pipewire & kernel 5.18 in an upgrade after which things started to fail.

Also no idea how to debug this.

Offline

#4 2022-07-05 13:47:17

JoeyCorleone
Member
Registered: 2022-01-22
Posts: 88

Re: Cannot hibernate twice

As far as I can see, the reason for your issue is a bug in the sof driver which has already been fixed in the kernel. The corresponding patch might not be available in the current linux package yet.

So, here are your options:
- keep your system up to date and wait for the kernel fix to arrive.
- temporarily disable IMR booting.

Offline

#5 2022-07-05 14:59:39

_dodger_
Member
Registered: 2019-11-12
Posts: 11

Re: Cannot hibernate twice

Thank you very much. I assumed that might be the culprit because sof always appears in the logs for me.
Fabulous! I'll wait for a new SOF release then.

Offline

#6 2022-07-07 05:25:10

seungjin
Member
Registered: 2022-06-27
Posts: 2

Re: Cannot hibernate twice

I am running Debian testing - I know this is Arch :-) However, -
I encountered the same issue (hibernation failed after waking up from its first successful hibernation) ...
Decided to wait new update..

Offline

#7 2022-07-07 05:30:30

seungjin
Member
Registered: 2022-06-27
Posts: 2

Re: Cannot hibernate twice

JoeyCorleone wrote:

As far as I can see, the reason for your issue is a bug in the sof driver which has already been fixed in the kernel. The corresponding patch might not be available in the current linux package yet.

So, here are your options:
- keep your system up to date and wait for the kernel fix to arrive.
- temporarily disable IMR booting.

Is this `https://github.com/thesofproject/sof-bin` 's issue?
Currently I am running firmware-sof-signed (Debian testing) version 2.1.1-1 ...

Offline

#8 2022-07-07 08:46:34

JoeyCorleone
Member
Registered: 2022-01-22
Posts: 88

Re: Cannot hibernate twice

seungjin wrote:
JoeyCorleone wrote:

As far as I can see, the reason for your issue is a bug in the sof driver which has already been fixed in the kernel. The corresponding patch might not be available in the current linux package yet.

So, here are your options:
- keep your system up to date and wait for the kernel fix to arrive.
- temporarily disable IMR booting.

Is this `https://github.com/thesofproject/sof-bin` 's issue?
Currently I am running firmware-sof-signed (Debian testing) version 2.1.1-1 ...

Just follow the link in my previous post for detailed explanations.

The corresponding patches have now been merged and will be included in Linux kernel 5.19-rc6.

Offline

Board footer

Powered by FluxBB