omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Quattro upgrade removes iwd but leaves wifi.backend=iwd in NetworkManager conf.d, leaving Wi-Fi unavailable (incomplete fix for #6612)

Open skoom21 opened this issue 3 months ago • 3 comments

System details

Dell Latitude E5470 · Intel Core i5-6440HQ (Skylake-S) · Intel HD 530 + AMD Radeon Topaz XT · Wi-Fi: Intel Dual Band Wireless-AC 8260 (8086:24f3, iwlwifi) · Omarchy 4.0.0-1 · Kernel 7.1.8-arch1-3 · Hyprland 0.56.2 · SDDM

What's wrong?

Upgrading to Quattro removed the iwd package but left a NetworkManager drop-in that still selects iwd as the Wi-Fi backend. NetworkManager is then configured to use a backend whose daemon does not exist, so every Wi-Fi device sits at unavailable forever. There is no Wi-Fi after the upgrade and nothing in the UI explains why.

This is the same failure as #6612, which was closed as completed — but the underlying condition is still reachable on stable 4.0.0, because nothing in the shipped tree ever inspects the backend setting.

Root cause

The upgrade removed iwd:

[2026-08-18T02:55:06+0500] [PACMAN] Running 'pacman -Rns --noconfirm --ask 4 ... iwd ...'
[2026-08-18T02:55:07+0500] [ALPM] removed iwd (3.12-1)

But this file survived untouched:

$ cat /etc/NetworkManager/conf.d/wifi_backend.conf
[device]
wifi.backend=iwd

Result:

$ nmcli device status
DEVICE       TYPE      STATE          CONNECTION
wlp2s0       wifi      unavailable    --

$ systemctl status iwd
Unit iwd.service could not be found.

The driver is healthy the entire time — this is purely NetworkManager having no usable backend:

iwlwifi 0000:02:00.0: Detected Intel(R) Dual Band Wireless-AC 8260
iwlwifi 0000:02:00.0: loaded firmware version 36.c8e8e144.0 8000C-36.ucode op_mode iwlmvm
iwlwifi 0000:02:00.0: base HW address: <redacted>, OTP minor version: 0x4
ieee80211 phy0: Selected rate control algorithm 'iwl-mvm-rs'

No rfkill block, WIFI-HW enabled, WIFI enabled, firmware loaded, MAC detected, zero driver errors.

Why the existing migration does not catch it

migrations/1786567036.sh is the only migration that addresses iwd-era Wi-Fi breakage, and it bails out immediately unless wpa_supplicant.service is masked:

state=$(systemctl is-enabled wpa_supplicant.service 2>/dev/null || true)
[[ $state == masked* ]] || exit 0

On this machine wpa_supplicant.service was disabled, not masked, so the migration exited at line 8 and never ran. It recorded itself as applied regardless.

Nothing else in the tree looks at the setting at all:

$ grep -rn 'wifi\.backend\|wifi_backend\|iwd-backend' /usr/share/omarchy/
# (no matches)

install/hardware/network.sh disables iwd.service, and migrations/1782002156.sh retires networkd/iwd units — but neither inspects /etc/NetworkManager/conf.d/ for a backend selection.

Worth noting the filename differs from #6612: that report proposed removing 10-iwd-backend.conf specifically. Mine was wifi_backend.conf. Any fix keyed to one filename will keep missing installs like this one, since the name depends on which era/tool wrote the drop-in.

Steps to reproduce

  1. Install an Omarchy release that configures iwd as the NetworkManager Wi-Fi backend via a drop-in under /etc/NetworkManager/conf.d/ (filename varies).
  2. Ensure wpa_supplicant.service is disabled rather than masked.
  3. Upgrade to Quattro (4.0.0), which removes the iwd package.
  4. Reboot.
  5. nmcli device status → Wi-Fi device is unavailable; it never recovers.

Workaround

sudo mv /etc/NetworkManager/conf.d/wifi_backend.conf{,.bak}   # any drop-in setting wifi.backend=iwd
sudo systemctl restart NetworkManager

The device moves unavailable → disconnected and wpa_supplicant is D-Bus activated on demand. Note that saved profiles may additionally be pinned to the old wlan0 interface name and need connection.interface-name cleared, since the device is now wlp2s0.

Suggested fix

Detect the condition rather than a filename — scan the drop-in directory for an iwd backend selection and neutralize it when iwd is absent. Something along these lines, as a migration:

if ! command -v iwd >/dev/null && ! systemctl list-unit-files iwd.service >/dev/null 2>&1; then
  while IFS= read -r f; do
    [[ -n $f ]] || continue
    mv "$f" "$f.omarchy-iwd-retired.bak"
    restart_nm=1
  done < <(grep -rlE '^[[:space:]]*wifi\.backend[[:space:]]*=[[:space:]]*iwd' \
             /etc/NetworkManager/conf.d/ 2>/dev/null)
  [[ -n ${restart_nm:-} ]] && systemctl restart NetworkManager.service
fi

It would also help to drop the masked-only early exit in 1786567036.sh, or run the backend check ahead of it, so the two failure modes are handled independently.

skoom21 avatar Aug 17 '26 23:08 skoom21

Thanks for the detailed report. The mechanism you describe is right: a wifi.backend=iwd drop-in that outlives the iwd package leaves NetworkManager without a usable backend, so every Wi-Fi device stays unavailable. Moving the drop-in aside fixes it, as you found.

What I checked was where that drop-in comes from. I read the source and its history, and ran nothing:

  • No Omarchy release, install script, migration or upgrade step has ever written a wifi.backend setting, under any filename. I searched every v3 and v4 tag, dev and quattro. At v3.8.4 NetworkManager was not installed at all: Wi-Fi ran on standalone iwd (install/omarchy-base.packages, install/config/hardware/network.sh). The switch to NetworkManager (b19dc7eae) installs and enables it without writing any backend drop-in.
  • The Omarchy ISO has always told archinstall to use its iso network mode (network_config: { "type": "iso" } in the configurator), not NetworkManager with an iwd backend.
  • On quattro, the upgrade removes iwd (bin/omarchy-upgrade-to-quattro:886) and enables NetworkManager (:1449). It writes nothing to /etc/NetworkManager/conf.d/ about the backend, and it does not remove a backend override it did not create.
  • migrations/1786567036.sh covers a different failure (#6783): a masked wpa_supplicant.service stops NetworkManager from D-Bus-activating the supplicant. A disabled one is fine, since NetworkManager activates it on demand, as your workaround showed. Dropping the masked check would not touch a wifi.backend setting.

So your wifi_backend.conf came from outside Omarchy. On #6612, the maintainer declined to have the upgrade remove a drop-in of this kind for the same reason. Whether the upgrade should now clean up backend overrides it never wrote is the maintainer's decision, so I have not opened a fix and this issue is waiting on them.

Codex Medium also reviewed this. It found no Omarchy code that writes the setting, and it agreed that the masked-only check in 1786567036.sh is correct for #6783 and unrelated to this. It ran with access to my reasoning, so its agreement is not guaranteed to be independent.

omarchybot avatar Oct 08 '26 08:10 omarchybot

Update (2026-10-10, about six hours later): the disconnect loop recurred with wifi.backend=wpa_supplicant still active and iwd stopped. The backend switch is therefore not a confirmed lasting fix. The same Intel missed-beacon warnings returned, with CTRL-EVENT-DISCONNECTED ... reason=4 locally_generated=1 from wpa_supplicant. Other devices on the network are unaffected, and the laptop lid is open. A subsequent test reloaded iwlmvm with power_scheme=1 (driver-level always-awake mode, distinct from iw dev ... power_save off). The link recovered at Wi-Fi 6 / 160 MHz with no new beacon-loss or disconnect messages for nearly two minutes; 55/55 router probes and 6/6 internet probes succeeded. This setting is now persisted for further observation. A driver reload is again a confounding factor, so this is not yet a confirmed long-term fix. The initial results below are retained as a short observation only.


Related diagnostic result on Omarchy 4.0.4-1: the same /etc/NetworkManager/conf.d/wifi_backend.conf override was present, but iwd was still installed and running. Wi-Fi could connect, then repeatedly disconnected/reconnected every few seconds. Switching the override to wpa_supplicant stopped the reconnect loop during the observation window.

This differs from the original report's missing-daemon / unavailable failure. I do not know which tool originally created the override, and am not claiming that Omarchy shipped it or that this establishes a root cause in Omarchy itself.

System

  • Lenovo ThinkPad T16 Gen 3, Intel Core Ultra 5 135U, Intel integrated graphics
  • Intel AX211 Wi-Fi 6E (8086:7e40, subsystem 8086:0090), iwlwifi
  • Kernel 7.2.3-arch1-3
  • Firmware 89.f7dcb3ee.0 ma-b0-gf-a0-89.ucode; package linux-firmware-intel 20260810-2
  • NetworkManager 1.58.1-1, iwd 3.12-1, wpa_supplicant 2:2.12-1
  • WPA2 network, 5 GHz channel 48 (5240 MHz), 160 MHz, strong signal around -35 to -40 dBm

Evidence before the change

NetworkManager configuration:

[device]
wifi.backend=iwd

Representative log messages (SSID/BSSID omitted):

iwd: Received Deauthentication event, reason: 4, from_ap: false
iwd: event: disconnect-info, reason: 4
NetworkManager: state change: activated -> failed (reason 'supplicant-disconnect', managed-type: 'full')
iwlwifi: missed beacons exceeds threshold, but receiving data. Stay connected, Expect bugs.

Wi-Fi power saving was already off (iw dev wlan0 get power_save), and iwlwifi's power_save parameter was N.

Attempts and working change

  1. Reloaded the Intel driver with disable_11ax=1: reconnects continued; a 45-packet router ping test lost 24.4% of packets.

  2. Tried disable_11ax=1 disable_11ac=1, which negotiated 40 MHz 802.11n: beacon loss and reconnects continued.

  3. Removed those test module options, restoring Wi-Fi 6 support. Changed the backend override to:

    [device]
    wifi.backend=wpa_supplicant
    

    Stopped NetworkManager and iwd, reloaded the Intel driver, started NetworkManager, and reconnected the saved profile. NetworkManager activated wpa_supplicant automatically. No reboot was required.

Result and limits

At full Wi-Fi 6 / 160 MHz again, two router ping tests received 105/105 packets, and an internet ping test received 20/20 packets, all with 0% loss. No further reconnects or beacon-loss warnings appeared in the initial nearly two-minute verification window.

This is a short before/after observation, not a long-term guarantee or a controlled proof that iwd alone caused the problem: changing the backend also restarted the networking stack. The earlier driver reloads by themselves did not resolve it. Sharing the evidence here because checking for an existing wifi.backend=iwd override may also help diagnose repeated reconnects when iwd remains installed, in addition to the missing-backend case in this issue.

helpnoob avatar Oct 10 '26 16:10 helpnoob

Following up now that a second machine has turned up with the same file. Both reports have /etc/NetworkManager/conf.d/wifi_backend.conf with exactly [device] / wifi.backend=iwd, so I looked for where that exact file comes from.

  • archinstall writes it. When you pick archinstall's "NetworkManager with iwd backend" network option (NicType.NM_IWD), it writes that file with that content (_configure_nm_iwd in archinstall/lib/network/network_handler.py). The option arrived in archinstall 3.0.15 (archlinux/archinstall#4025, December 2025).
  • The Omarchy ISO never picks that option. Its archinstall configuration has always used "network_config": { "type": "iso" }, and no Omarchy release, migration or upgrade step writes a wifi.backend setting. Omarchy's own instructions for manual installation say to choose "Copy ISO network config" too.
  • A hand-written recipe produces the same file. A widely shared comment on #1414 (September 2025) for moving from systemd-networkd to NetworkManager while keeping iwd tells people to run printf "[device]\nwifi.backend=iwd\n" | sudo tee /etc/NetworkManager/conf.d/wifi_backend.conf.

So the file comes from outside Omarchy. Either the machine was installed with plain archinstall using the NM+iwd option rather than from the Omarchy ISO, or someone added it by hand after installing. Omarchy only supports installs from its ISO and upgrades from a supported release. Either way, the upgrade removing iwd breaks a backend setting Omarchy never wrote. The workaround in the report fixes it: move the drop-in aside and restart NetworkManager.

@helpnoob, your case has a different symptom. iwd was still installed, and the reconnect loop came back with wifi.backend=wpa_supplicant, along with the iwlwifi missed-beacon warnings. That points at the AX211 driver or its power handling rather than this drop-in, and it would be better as an issue of its own.

Two models disagree on how to classify this, so I have taken the bug label off. I read it as not actionable in Omarchy, for the reasons above. Codex Medium classified it as bug from the issue alone. Codex Medium also reviewed this diagnosis, and it confirmed that archinstall writes the file and that the ISO never picks that option. It was the one that found the #1414 recipe. It also pointed out, correctly, that where the file came from does not prove how these particular machines were installed, so I have not claimed that. Nothing was run; this comes from reading Omarchy's source, the ISO configuration and archinstall's source.

The maintainer has to decide whether to close this as custom configuration or have the upgrade clean up iwd backend overrides it did not write, so this is waiting on them.

omarchybot avatar Oct 10 '26 22:10 omarchybot