On Wednesday, 15 October 2025 02:45:32 British Summer Time D. Ben Knoble wrote: > I've tried to describe the symptoms on my blog as best I can [1]. > Here's a repaste of the relevant bits for posterity. > > [1]: > https://benknoble.github.io/blog/2025/10/13/framework-gentoo-network-hang/ > > ---8<--- > I've recently installed Gentoo on my new Framework Desktop, and for a while > the network would hang, causing any program that touched the hardware to > also crap out. **Update same day:** I've just had the problem recur! Agh! > > Here are some symptoms: > - Thinks chug along just fine, until > - The network goes down and commands start freezing. We're talking no C-c, > no C-\\, no `pkill -9`: just dead in the water. (I hadn't solved switching > consoles with Alt-Function keys yet, so fortunately I had tmux running.) - > Notably, commands like `emerge` hang when they get to network steps. > Various `ip` & `ifconfig` style commands hang immediately. > - Commands like `nmcli` and `ping` don't hang, but don't work. > - I'm pretty sure `/etc/resolv.conf` isn't being touched. > - The `NetworkManager` daemon is running, but: > - `top` shows "D" (d-sleep) and `ps` shows "Dsl" > - `rc-status` reports NetworkManager as active, but `nmcli g` says its > down - `rc-service NetworkManager restart` fails with > > ``` > * Caching service dependencies ... [ ok ] > * Unmounting network filesystems ... [ ok ] > * Stoppping NetworkManager ... > * start-stop-daemon: 1 rocesses refused to stop [ !! ] > * ERROR: NetworkManager failed to stop > * Mounting network filesystems ... [ ok ] > ```
Do you have some duplicated AP connection and nm will not stop? Your log shows successive de/re-authentication with different APs, e.g. first with 70:58:a4:d2:14:21 and then within seconds: disconnect from AP 70:58:a4:d2:14:21 for new auth to 70:58:a4:d2:14:29 > - similarly with `s/restart/stop`, and `pkill -9 NetworkManager` has no > effect! Run ps axf to see how many instances of networkmanager are present and 'nmcli con show', but first see below. > - I didn't understand how `zap` worked at the time, but it turns out > not to help > - shutting down complains about not stopping the NetworkManager, too > - Turns out, `wpa_supplicant` is also in "D" status! And owned by init. > Hm. - `grep -R wpa /var/logs` reminded me I needed to create > `/etc/wpa_supplicant/wpa_supplicant.conf`. (I've done so since.) Take a look at this page and consider all suggestions. In particular, *wpa_supplicant is no longer recommended* and iwd should be used instead: https://wiki.gentoo.org/wiki/NetworkManager https://wiki.gentoo.org/wiki/Iwd > I checked my hardware with `lspci`, which I'd fortunately installed during > the main system installation process, and with `lspci -k` I found out my > network card is > > ``` > c0:00.0 Mediatek MT7925 (RZ717) Wi-Fi 7 160MHz [14c3:0717] > ``` > > with kernel module (in use) `mt7925e`. > > First, I tried turning off WiFi power saving [as recommended by Garuda > folks](https://forum.garudalinux.org/t/mediatek-mt7925e-wifi-speed-very-slow > -on-close-to-fresh-install-and-some-updates/41845/11): [snip ...] > Here's a [capture between a reboot and when I saw the problem > again](https://paste.gentoo.zip/gIeCuVQ4); I can also see `chronyd` fail > (probably because the network is down) and some things about DHCP lease > expiry or failures. At the end of that log dump, I `doas reboot`, and then > have to hold the power button (see below) to truly power off and reboot. It is much safer to try pressing keys R E I S U B ("busier" backwards) while holding down Alt + SysRq (or Print Screen button if SysRq is not available): https://en.wikipedia.org/wiki/Magic_SysRq_key > Relevant information: > - [`/etc/conf.d/netmount`](https://bpa.st/5QMN6): I only found out about > this file from `view /etc/conf.d/net*` while reading [the Handbook's > troubleshooting You shouldn't mix 'n match uncaringly different methods for managing your wireless network connectivity. You can end up with one system fighting for control against the other. I you prefer networkmanager, then the above links I shared ought to help you configure it correctly. Otherwise please post back.
signature.asc
Description: This is a digitally signed message part.

