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

Re-enable Wi-Fi that is soft-blocked by rfkill

omarchyarchendeavouroscachyosmanjarolaptophyprlandwayland
CORRECTED An auditor found the fix wrong or incomplete and rewrote it.
AUDIT NOTE

The diagnosis and the main sequence are exactly right, verified byte-for-byte against bin/omarchy-restart-wifi, which is rfkill unblock wifi; nmcli networking on; nmcli radio wifi on; nmcli device wifi rescan; rfkill list wifi. The last block is wrong and backwards: systemd-rfkill *saves and restores* rfkill state across reboots (that is its whole job: Omarchy's own bin/omarchy-bluetooth-power relies on exactly that to persist a block under /var/lib/systemd/rfkill). Enabling it does not 'unblock every radio at boot'. It makes a soft block sticky across reboots. It is also socket/udev-activated, not something you enable as a .service.

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

Symptom

Wi-Fi vanishes for no reason. The panel shows no networks, nmcli device status shows the wireless device as unavailable, and nmcli radio wifi prints disabled. It usually starts after an airplane-mode key press, a lid close, or a suspend/resume cycle.

Cause

A software rfkill block is set on the wireless (or all) radio types. Kernel drivers, laptop hotkey handlers (thinkpad_acpi, dell-laptop, asus-wmi) and NetworkManager itself can set it. Nothing clears it automatically.

Fix


rfkill list
sudo rfkill unblock wifi
nmcli networking on
nmcli radio wifi on
nmcli device wifi rescan

Or on Omarchy: omarchy-restart-wifi

If Hard blocked: yes, software cannot clear it. Use the physical switch or the Fn airplane-mode key.

Note that systemd-rfkill **persists** blocks rather than clearing them: if the radio was soft-blocked at shutdown it is restored blocked at the next boot. If a block keeps coming back across reboots, that is systemd-rfkill restoring saved state. Clear it once and shut down cleanly, or drop the saved state:


sudo rm -f /var/lib/systemd/rfkill/*

To force every radio unblocked at each boot regardless of saved state, use a unit of your own:


sudo tee /etc/systemd/system/rfkill-unblock-all.service >/dev/null <<'EOF'
[Unit]
Description=Unblock all rfkill switches at boot
After=systemd-rfkill.service

[Service]
Type=oneshot
ExecStart=/usr/bin/rfkill unblock all

[Install]
WantedBy=multi-user.target
EOF
sudo systemctl enable --now rfkill-unblock-all.service

Verify

rfkill list shows Soft blocked: no for the wireless entry, and nmcli device wifi list returns access points.

Sources

wifi-soft-blocked-rfkill