Subj : Re: A bit more on Bookworm and WiFi problens To : The Natural Philosopher From : Chris Elvidge Date : Sun Oct 27 2024 18:21:04 On 27/10/2024 at 15:37, The Natural Philosopher wrote: > A power cut this a.m had my Pi zero W reconnecting to the wrong wifi. > > Which forced me to delve into the depths of network manager as evinced > by nmcli. Network manager is the new way to manage networks, and like > systemd, its all changed for the sake of it > > You probably can edit the files directly - mine were in > /etc/NetworkManager/system-connections, but it's safer to use nmcli tools > > > You can set a priority if you have more than one wifi SSID. > > sudo nmcli c modify connection.autoconnect-priority 1 > > You can also force it to use 5Ghz or 2.4Ghz or let it decide > > sudo nmcli c modify 802-11-wireless.band "bg" > > or > > sudo nmcli c modify 802-11-wireless.band "a" > > > "bg" is 2.4GHz, "a" is 5GHz. > > It may well be that bookworm has changed the implicit defaults in > network manager. > > It is well worth dumping the connections with > > sudo nmcli connection show > > To work out what the connection names are, use > > sudo nmcli c show > > I think - but am not sure - that you can set more stuff through the > command line than through the GUI interface to network manager > > Have you tried nmtui? -- Chris Elvidge, England I WILL NOT INSTIGATE REVOLUTION --- SoupGate-Win32 v1.05 * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3) .