OPINIONATED OMARCHY
TROUBLESHOOTING CORPUS
790
RECORDS
790
AUDITED
0
UNCHECKED
2388
SOURCES
LIVE
network high common DISPUTE

Recover Intel Wi-Fi that dies after suspend (Failed to run INIT ucode: -110)

archomarchyendeavouroscachyosintellaptopsystemd-boot
CORRECTED An auditor found the fix wrong or incomplete and rewrote it.
AUDIT NOTE

The problem and approach are real, and /usr/lib/systemd/system-sleep/ is the directory systemd-suspend.service(8) actually documents. Two defects: (a) tee /etc/modprobe.d/iwlwifi.conf truncates a file users commonly already own (e.g. the power-save options from the powersave record), so it must not claim that filename. (b) The sleep hook does no cleanup or logging and reloads the module without asking NetworkManager to re-adopt the device, and modprobe -r can fail while the link is up. Use a dedicated conf filename and bring the radio down first.

The cause above was not rewritten and may still contain the error described. The fix below is the corrected version.
RISK

A system-sleep hook runs as root on every suspend. A syntax error in it can delay or abort suspend. Test it with sudo /usr/lib/systemd/system-sleep/iwlwifi.sh pre before relying on it.

Symptom

After waking a laptop from suspend, Wi-Fi is gone. journalctl -k -b fills with:


iwlwifi 0000:00:14.3: Failed to run INIT ucode: -110

repeated dozens of times. Worse: closing the lid again while the driver is stuck in that retry loop makes the second suspend never complete. The machine is completely unresponsive and needs a hard power-off.

Cause

The iwlwifi firmware fails to reinitialise on the resume path on some Intel AX-series parts. The driver retries the INIT ucode load indefinitely (-110 is ETIMEDOUT), and a suspend requested while it is mid-retry deadlocks the PM transition.

Fix


sudo tee /usr/lib/systemd/system-sleep/iwlwifi.sh >/dev/null <<'EOF'
#!/bin/bash
case "$1" in
  pre)
    nmcli radio wifi off 2>/dev/null || true
    modprobe -r iwlmvm 2>/dev/null || true
    modprobe -r iwlmld 2>/dev/null || true
    modprobe -r iwlwifi 2>/dev/null || true
    ;;
  post)
    modprobe iwlwifi 2>/dev/null || true
    nmcli radio wifi on 2>/dev/null || true
    ;;
esac
exit 0
EOF
sudo chmod +x /usr/lib/systemd/system-sleep/iwlwifi.sh

Disable the INI/debug firmware images in a file of their own so an existing /etc/modprobe.d/iwlwifi.conf is not clobbered:


echo 'options iwlwifi enable_ini=N' | sudo tee /etc/modprobe.d/iwlwifi-enable-ini.conf
sudo reboot

Verify after reboot: cat /sys/module/iwlwifi/parameters/enable_ini should print N.

Verify

Suspend and resume twice in a row. journalctl -k -b | grep -c 'INIT ucode' returns 0 and nmcli device status shows the Wi-Fi device reconnected.

Sources

iwlwifi-init-ucode-timeout-after-resume