Laptop immediately wakes up after suspend

After a couple of latest updates system refuses to go to sleep and immediately wakes up. Turning on airplane mode fixes issue, but it worked fine before without it. Tried clean install and suspend worked as expected, but after upgrade to latest image and kernel problem returned. How to fix this? Maybe it’s a kernel problem or network-manager?
I looked at the logs and found this message:

NetworkManager[1040]: [1679234061.3831] manager: sleep: wake requested (sleeping: yes enabled: yes)

It happens on both: latest f37 and f38.
I’m using silverblue.

I wonder if the solution here may be related to your issue, which seems triggered by NetworkManager

I tried this now, it didn’t help. Only stopping NetworkManager.service helps or turning on aiplane mode.

I found the ostree commit that caused the issue:

d0035ee2b86a33c58f07c5e424a96a998aeed98bb1444da5f1769f6ac7f1c14e

From 2023-03-15
Changes between commits:

Upgraded:
amd-gpu-firmware 20230210-147.fc37 → 20230310-148.fc37
intel-gpu-firmware 20230210-147.fc37 → 20230310-148.fc37
iwl100-firmware 39.31.5.1-147.fc37 → 39.31.5.1-148.fc37
iwl1000-firmware 1:39.31.5.1-147.fc37 → 1:39.31.5.1-148.fc37
iwl105-firmware 18.168.6.1-147.fc37 → 18.168.6.1-148.fc37
iwl135-firmware 18.168.6.1-147.fc37 → 18.168.6.1-148.fc37
iwl2000-firmware 18.168.6.1-147.fc37 → 18.168.6.1-148.fc37
iwl2030-firmware 18.168.6.1-147.fc37 → 18.168.6.1-148.fc37
iwl3160-firmware 1:25.30.13.0-147.fc37 → 1:25.30.13.0-148.fc37
iwl3945-firmware 15.32.2.9-147.fc37 → 15.32.2.9-148.fc37
iwl4965-firmware 228.61.2.24-147.fc37 → 228.61.2.24-148.fc37
iwl5000-firmware 8.83.5.1_1-147.fc37 → 8.83.5.1_1-148.fc37
iwl5150-firmware 8.24.2.2-147.fc37 → 8.24.2.2-148.fc37
iwl6000-firmware 9.221.4.1-147.fc37 → 9.221.4.1-148.fc37
iwl6000g2a-firmware 18.168.6.1-147.fc37 → 18.168.6.1-148.fc37
iwl6000g2b-firmware 18.168.6.1-147.fc37 → 18.168.6.1-148.fc37
iwl6050-firmware 41.28.5.1-147.fc37 → 41.28.5.1-148.fc37
iwl7260-firmware 1:25.30.13.0-147.fc37 → 1:25.30.13.0-148.fc37
iwlax2xx-firmware 20230210-147.fc37 → 20230310-148.fc37
libertas-usb8388-firmware 2:20230210-147.fc37 → 2:20230310-148.fc37
linux-firmware 20230210-147.fc37 → 20230310-148.fc37
linux-firmware-whence 20230210-147.fc37 → 20230310-148.fc37
nvidia-gpu-firmware 20230210-147.fc37 → 20230310-148.fc37
webp-pixbuf-loader 0.2.1-1.fc37 → 0.2.2-1.fc37

Similar problem here. Suspend only works in Airplane mode. F38.

It’s a bug with wifi driver. I’ve reported it upstream. Must be fixed in next linux-firmware update.

1 Like

Exactly same issue here,suspend only works properly when airplane mode is on

The simplest workaround until bug is fixed is to create systemd service that disabling module on suspend and enabling it on wakeup.

  1. Create file /etc/systemd/system/root-suspend-fix.service:

[Unit]
Description=Suspend fix for ath11k_pci
Before=sleep.target
StopWhenUnneeded=yes

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=-modprobe -r ath11k_pci
ExecStop=-modprobe ath11k_pci

[Install]
WantedBy=sleep.target

  1. Enable service:
    sudo systemctl enable --now root-suspend-fix.service