I can't poweroff - a stop job is running for wpa_supplicant and NetworkManager

Title. When I try to reboot or poweroff, it sometimes gives this, after some 5 minutes it finally sends SIGKILL to wpa_supplicant and NetworkManager, reaches target System Reboot, but still doesn’t reboot. Seems independent of used DE. I will attach photo when it occurs again.

Can someone help me?

Thanks in advance.

I had a similar issue recently.
On my system the culprit was systemd-networkd that became enabled for some unknown reason (perhaps with the updates of systemd 258?) and interfered with NetworkManager so that NetworkManager could not properly shut down.
Solution was to disable and mask services of systemd-networkd.

I’ll try and let you know if it worked in let’s say 10 days

Also, will it affect my wired connections?

This is one of the primary annoyances of systemd. There is always something that hangs shutdown no matter what I do, so one day I ditched this init for something more sane (like OpenRC) due to this and other reasons

How do I switch from systemd to OpenRC?

On Arch and Debian I think you can swap the init system, and there is probably a guide on the Arch wiki. If it’s not possible or safe to swap the init system, you have Devuan, Artix, Void, Gentoo and Alpine as systems without systemd. Devuan and Artix being the Debian/Arch equivalents without systemd and so I recommend those the most

Update: turns out you can swap init on Arch without having to distrohop though it’s not officially supported: https://wiki.archlinux.org/title/OpenRC

(I’m assuming you are using Endeavour)

I specifically recommend OpenRC because it’s very intuitive and user-friendly while still being a minimal and properly functioning init system that doesn’t nag you or get in your way

Note: for OpenRC versions below 0.60, for pipewire to run on launch you have to set it up as a script that your DE launches, a script that runs pipewire, pipewire-pulse and wireplumber. As of version 0.60 you can add pipewire as a user daemon to openrc

I can try Artix on laptop, on a desktop I will attempt a switch only when something breaks again