Solved networkmgr - no connection until reboot

So I have installed net-mgmt/networkmgr

There's a lack of documentation, though that could just be me. It seems to be a collection of python scripts and a sudo configuration file which get installed in /usr/local/etc/sudoers.d

I found the odd historic thread mentioning doas, but it now appears that sudo is used.

So far as I can tell, it's launched via xdg .desktop file, which invokes "sudo networkmgr"

It can associate with an access point, but then get "no carrier" until reboot - when it does bring up the interface and work as expected - presumably when the stanzas in /etc/rc.conf and /etc/wpa_supplicant.conf, which networkmgr creates, are processed:

Code:
wlans_ral0="wlan1"
ifconfig_wlan1="WPA DHCP"

Code:
network={
 ssid="some_ap"
 key_mgmt=WPA-PSK
 proto=RSN
 psk="somekey"
}

If I disconnect and reconnect, back to "no carrier", until reboot.

Anyone else had any success with this?

The wifi adapter in question (just in case it's relevant):
Code:
ral0: <Ralink Technology RT3090> mem 0xf0600000-0xf060ffff irq 16 at device 0.0 on pci2
 
If I disconnect and reconnect, back to "no carrier", until reboot.

% sudo service netif restart
works for me, even if I earlier ran "netif stop', or suspended and resumed, or the AP dropped out for a while; checked with:
% ifconfig wlan0

I've not used networkmgr though, so don't know how a 'netif restart' might affect it.
[edit] Check that you don't also need to reset default route.
 
wpa_supplicant or wifimgr for desktop.

(Off-topic: I got the invitation but, I really don't know what happens with quotes. I usually use the Edge browser, just in case it makes a difference.)
 
Thanks for the replies. I have got it kind of working by disabling wifi, enabling it again and selecting the AP again (without having to reboot or run service netif restart).
 
Back
Top