Can’t suspend or hibernate

When I click hibernate, the screen turns off for a few seconds, the keyboard light is the same as usual, and then it goes back to the login screen and doesn’t hibernate properly.
this is the result of journalctl --system --boot=0 --priority=3

6月 10 20:00:39 FA5II06 kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.GPP4.WLAN], AE_NOT_FOUND (20210730/dswload2-162)
6月 10 20:00:39 FA5II06 kernel: ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20210730/psobject-220)
6月 10 20:00:39 FA5II06 kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_TZ.THRM._SCP.CTYP], AE_NOT_FOUND (20210730/psargs-330)
6月 10 20:00:39 FA5II06 kernel: ACPI Error: Aborting method \_TZ.THRM._SCP due to previous error (AE_NOT_FOUND) (20210730/psparse-529)
6月 10 20:00:41 FA5II06 sddm[679]: Failed to read display number from pipe
6月 10 20:00:43 FA5II06 kernel: Bluetooth: hci0: command 0xfc01 tx timeout
6月 10 20:00:45 FA5II06 systemd[825]: Failed to start Update XDG user dir configuration.
6月 10 20:00:48 FA5II06 pppd[866]: Cannot determine ethernet address for proxy ARP
6月 10 20:00:51 FA5II06 kernel: Bluetooth: hci0: FW download error recovery failed (-110)
6月 10 20:00:51 FA5II06 kernel: Bluetooth: hci0: sending frame failed (-19)
6月 10 20:00:53 FA5II06 kernel: Bluetooth: hci0: command 0xfc1e tx timeout
6月 10 20:00:53 FA5II06 kernel: Bluetooth: hci0: Failed to read MSFT supported features (-110)
6月 10 20:00:56 FA5II06 kernel: nouveau 0000:01:00.0: can't change power state from D3cold to D0 (config space inaccessible)
6月 10 20:00:56 FA5II06 kernel: nouveau 0000:01:00.0: can't change power state from D3cold to D0 (config space inaccessible)
6月 10 20:00:56 FA5II06 kernel: nouveau 0000:01:00.0: can't change power state from D3cold to D0 (config space inaccessible)
6月 10 20:00:56 FA5II06 kernel: nvkm: mm not clean!
6月 10 20:00:56 FA5II06 kernel: nvkm: node list:
6月 10 20:00:56 FA5II06 kernel: nvkm:         00000000 00002000 0
6月 10 20:00:56 FA5II06 kernel: nvkm:         00002000 00000018 1
6月 10 20:00:56 FA5II06 kernel: nvkm:         00002018 00000008 0
6月 10 20:00:56 FA5II06 kernel: nvkm:         00002020 00000018 1
6月 10 20:00:56 FA5II06 kernel: nvkm:         00002038 00000008 0
6月 10 20:00:56 FA5II06 kernel: nvkm:         00002040 00000018 1
6月 10 20:00:56 FA5II06 kernel: nvkm:         00002058 00000008 0
6月 10 20:00:56 FA5II06 kernel: nvkm:         00002060 00000018 1
6月 10 20:00:56 FA5II06 kernel: nvkm:         00002078 00000008 0
6月 10 20:00:56 FA5II06 kernel: nvkm:         00002080 00000018 1
6月 10 20:00:56 FA5II06 kernel: nvkm:         00002098 00000008 0
6月 10 20:00:56 FA5II06 kernel: nvkm:         000020a0 00000018 1
6月 10 20:00:56 FA5II06 kernel: nvkm:         000020b8 00000008 0
6月 10 20:00:56 FA5II06 kernel: nvkm:         000020c0 00000018 1
6月 10 20:00:56 FA5II06 kernel: nvkm:         000020d8 00000008 0
6月 10 20:00:56 FA5II06 kernel: nvkm:         000020e0 00000018 1
6月 10 20:00:56 FA5II06 kernel: nvkm:         000020f8 00000008 0
6月 10 20:00:56 FA5II06 kernel: nvkm:         00002100 00000018 1
6月 10 20:00:56 FA5II06 kernel: nvkm:         00002118 00000008 0
6月 10 20:00:56 FA5II06 kernel: nvkm:         00002120 00000018 1
6月 10 20:00:56 FA5II06 kernel: nvkm:         00002138 00000008 0
6月 10 20:00:56 FA5II06 kernel: nvkm:         00002140 00000018 1
6月 10 20:00:56 FA5II06 kernel: nvkm:         00002158 00000008 0
6月 10 20:00:56 FA5II06 kernel: nvkm:         00002160 00000018 1
6月 10 20:00:56 FA5II06 kernel: nvkm:         00002178 00000008 0
6月 10 20:00:56 FA5II06 kernel: nvkm:         00002180 00000018 1
6月 10 20:00:56 FA5II06 kernel: nvkm:         00002198 00000008 0
6月 10 20:00:56 FA5II06 kernel: nvkm:         000021a0 00000018 1
6月 10 20:00:56 FA5II06 kernel: nvkm:         000021b8 00000008 0
6月 10 20:00:56 FA5II06 kernel: nvkm:         000021c0 00000018 1
6月 10 20:00:56 FA5II06 kernel: nvkm:         000021d8 00000008 0
6月 10 20:00:56 FA5II06 kernel: nvkm:         000021e0 00000018 1
6月 10 20:00:56 FA5II06 kernel: nvkm:         000021f8 00000008 0
6月 10 20:00:56 FA5II06 kernel: nvkm:         00002200 00000018 1
6月 10 20:00:56 FA5II06 kernel: nvkm:         00002218 00000008 0
6月 10 20:00:56 FA5II06 kernel: nvkm:         00002220 00000018 1

Can someone help me?

run this command:
systemctl suspend
and copy the logs from it here

oh,sorry for that.
it seem that “systemctl suspend” work well.
only hibernate doesn’t work

does suspend work also werk when you click on the sleep button?
so run: systemctl hibernate and put the output here

does suspend work also werk when you click on the sleep button?

It look like well.
sorry for that again,I have change the question.

so run: systemctl hibernate and put the output here

no output.The screen will turn off for a few seconds, the keyboard light will be the same as usual, and then it will go back to the login screen

so copy the logs after this log: ‘suspending system’ or something like that

ok,but the log is too big,I upload it to gist.

https://gist.githubusercontent.com/Seele0oO/d4df446fa5239d4cec55829684528ef0/raw/85001ce9b63b5a20a5e786cd6cf3ba735ff527b9/the%20log

thats not readable… put your system into hibernate, then run this:
journalctl --boot -0 --no-pager
and search for: suspending system or something like that, and copy the logs after that line

sleep or suspend is working well.
only hibernate .

Jun 10 20:40:50 FA5II06 kernel: Bluetooth: hci0: Firmware already loaded
Jun 10 20:40:50 FA5II06 systemd[2107]: appimagelauncherd.service: Scheduled restart job, restart counter is at 45.
Jun 10 20:40:50 FA5II06 bluetoothd[735]: Endpoint unregistered: sender=:1.57 path=/MediaEndpoint/A2DPSource/ldac_hq
Jun 10 20:40:50 FA5II06 systemd[2107]: Stopped AppImageLauncher daemon.
Jun 10 20:40:50 FA5II06 bluetoothd[735]: Endpoint unregistered: sender=:1.57 path=/MediaEndpoint/A2DPSource/ldac_sq
Jun 10 20:40:50 FA5II06 systemd-sleep[11896]: Failed to put system to sleep. System resumed again: Invalid argument
Jun 10 20:40:50 FA5II06 bluetoothd[735]: Endpoint unregistered: sender=:1.57 path=/MediaEndpoint/A2DPSource/ldac_mq
Jun 10 20:40:50 FA5II06 systemd[2107]: Started AppImageLauncher daemon.
Jun 10 20:40:50 FA5II06 bluetoothd[735]: Endpoint unregistered: sender=:1.57 path=/MediaEndpoint/A2DPSink/aptx_hd
Jun 10 20:40:50 FA5II06 systemd[1]: Starting Load/Save RF Kill Switch Status...
Jun 10 20:40:50 FA5II06 kernel: audit: type=1130 audit(1654864850.896:603): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=systemd-hibernate comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Jun 10 20:40:50 FA5II06 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=systemd-hibernate comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Jun 10 20:40:50 FA5II06 bluetoothd[735]: Endpoint unregistered: sender=:1.57 path=/MediaEndpoint/A2DPSource/aptx_hd
Jun 10 20:40:50 FA5II06 systemd[1]: systemd-hibernate.service: Main process exited, code=exited, status=1/FAILURE
Jun 10 20:40:50 FA5II06 bluetoothd[735]: Endpoint unregistered: sender=:1.57 path=/MediaEndpoint/A2DPSink/aptx
Jun 10 20:40:50 FA5II06 systemd[1]: systemd-hibernate.service: Failed with result 'exit-code'.
Jun 10 20:40:50 FA5II06 bluetoothd[735]: Endpoint unregistered: sender=:1.57 path=/MediaEndpoint/A2DPSource/aptx
Jun 10 20:40:50 FA5II06 systemd[1]: Failed to start Hibernate.
Jun 10 20:40:50 FA5II06 bluetoothd[735]: Endpoint unregistered: sender=:1.57 path=/MediaEndpoint/A2DPSink/sbc
Jun 10 20:40:50 FA5II06 systemd[1]: Dependency failed for System Hibernation.
Jun 10 20:40:50 FA5II06 bluetoothd[735]: Endpoint unregistered: sender=:1.57 path=/MediaEndpoint/A2DPSource/sbc
Jun 10 20:40:50 FA5II06 systemd[1]: hibernate.target: Job hibernate.target/start failed with result 'dependency'.
Jun 10 20:40:50 FA5II06 bluetoothd[735]: Endpoint unregistered: sender=:1.57 path=/MediaEndpoint/A2DPSink/sbc_xq_453
Jun 10 20:40:50 FA5II06 systemd[1]: systemd-hibernate.service: Consumed 1.823s CPU time.
Jun 10 20:40:50 FA5II06 bluetoothd[735]: Endpoint unregistered: sender=:1.57 path=/MediaEndpoint/A2DPSource/sbc_xq_453
Jun 10 20:40:50 FA5II06 systemd[2107]: Reached target Bluetooth.
Jun 10 20:40:50 FA5II06 bluetoothd[735]: Endpoint unregistered: sender=:1.57 path=/MediaEndpoint/A2DPSink/sbc_xq_512
Jun 10 20:40:50 FA5II06 bluetoothd[735]: Endpoint unregistered: sender=:1.57 path=/MediaEndpoint/A2DPSource/sbc_xq_512
Jun 10 20:40:50 FA5II06 bluetoothd[735]: Endpoint unregistered: sender=:1.57 path=/MediaEndpoint/A2DPSink/sbc_xq_552
Jun 10 20:40:50 FA5II06 bluetoothd[735]: Endpoint unregistered: sender=:1.57 path=/MediaEndpoint/A2DPSource/sbc_xq_552
Jun 10 20:40:50 FA5II06 systemd[1]: Stopped target Bluetooth Support.
Jun 10 20:40:50 FA5II06 systemd[1]: Stopped target Sleep.
Jun 10 20:40:50 FA5II06 systemd[1]: Started Load/Save RF Kill Switch Status.
Jun 10 20:40:50 FA5II06 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jun 10 20:40:50 FA5II06 kernel: audit: type=1130 audit(1654864850.906:604): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jun 10 20:40:50 FA5II06 systemd-logind[572]: Operation 'sleep' finished.
Jun 10 20:40:50 FA5II06 ModemManager[664]: <info>  [sleep-monitor] system is resuming

It look like that is the log about error?

hibernation fails, because of some dependency… do you have swap? are you using btrfs?

yes

$free                                                                                                                                                                                                                         ✔ 
               total        used        free      shared  buff/cache   available
Mem:           15479        3975        8856         240        2647       10911
Swap:          31999           0       31999

I don’t use btrfs.

Hi @seele,

Please provide the output of:

swapon -s
Filename                                Type            Size            Used            Priority
/dev/nvme0n1p5                          partition       32767996        0               -2

did you edited your grub config with the resume uuid?

GRUB_CMDLINE_LINUX_DEFAULT=“fsck.mode=skip quiet apparmor=1 security=apparmor resume=/dev/nvme0n1p5 udev.log_priority=3”

I think use /dev is same

post output from:
sudo blkid

/dev/nvme0n1p5: LABEL="32G-SWAP" UUID="daee94db-bdb8-476b-8ad4-4fccb576592e" TYPE="swap" PARTUUID="cca7e2e2-6428-ea4f-9e6d-bf12a8b4f02b"
/dev/nvme0n1p3: PARTLABEL="Microsoft reserved partition" PARTUUID="6e8824e4-17cf-4639-b44b-1d628b2ebb6d"
/dev/nvme0n1p1: LABEL_FATBOOT="BOOTEFI" LABEL="BOOTEFI" UUID="2C16-7E70" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="1e2ac65f-1601-2e47-884a-6837076f5898"
/dev/nvme0n1p4: BLOCK_SIZE="512" UUID="26F20E3BF20E0FAB" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="214473d0-6509-43bd-81c4-53c9c985fcc1"
/dev/nvme0n1p2: UUID="bf845bc1-1423-40c6-97f4-af9d0b7ec984" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="root" PARTUUID="ecd352d7-8bf8-c340-b368-20648904d036"
/dev/sda2: LABEL="WIN-D" BLOCK_SIZE="512" UUID="29539FCF180EF627" TYPE="ntfs" PARTUUID="8fde74a8-02"
/dev/sda1: LABEL="LinuxHome" UUID="092a550e-29c6-453a-a6f1-bd66c316479d" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="8fde74a8-01"

so edit the resume to look like this:
resume=daee94db-bdb8-476b-8ad4-4fccb576592e
then run this command:
sudo update-grub
then open this file:
sudo nano /etc/mkinitcpio.conf
and search for: HOOKS and add this one:
resume
press ctrl+x to save the file, and run this:
sudo mkinitcpio -P
reboot and test

after change

/etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="fsck.mode=skip quiet apparmor=1 security=apparmor resume=resume=daee94db-bdb8-476b-8ad4-4fccb576592e udev.log_priority=3"

/etc/mkinitcpio.conf

HOOKS="base udev resume  autodetect modconf block keyboard keymap consolefont filesystems fsck"

The output of sudo mkinitcpio -P

==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: 'default'
  -> -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64.img
==> Starting build: 5.15.41-1-MANJARO
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [resume]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.15-x86_64.img
bsdtar: Failed to set default locale
bsdtar: Failed to set default locale
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: 'fallback'
  -> -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64-fallback.img -S autodetect
==> Starting build: 5.15.41-1-MANJARO
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [resume]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: qed
==> WARNING: Possibly missing firmware for module: qla1280
==> WARNING: Possibly missing firmware for module: qla2xxx
==> WARNING: Possibly missing firmware for module: bfa
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.15-x86_64-fallback.img
bsdtar: Failed to set default locale
bsdtar: Failed to set default locale
==> Image generation successful

now I wil reboot

You’ve got one to many resume= in there. Change it to:

resume=daee94db-bdb8-476b-8ad4-4fccb576592e