Connection failed activation of network connection failed (fedora)

Im stuck with this problem since last night and i have been continuously browsing through the forum to see the fixes of my problem. Yesterday I changed my battery to a newer one and ever since that I’m not able to use any wifi network in my home. I have tried turning off the wifi, resetting the Network Manager and so on. Has anyone ever been in my situation? And if yes, please lend me your help Immediately.

Also, I have tried connecting a specific network through the terminal. Every time I try to connect to a Wifi Network, it freezes or does not respond for some weird reason and after about 30 seconds, it displays a pop up “connection failed activation of network connection failed” and this cycle repeats every 30 seconds no matter how I try to connect to any network. But the interesting catch is that I’m able to connect to my mobile hotspot and use the internet. But I’m not unable to use the three Wifi Networks in my home. Please help me.

This seems it may be the result of the way NetworkManager stores the connection details. By default each connection to a specific AP uses a random MAC address for the interface and if that presented MAC address does not match what the AP expects it may not allow connection.

You can reset the by manually telling it to connect, but first telling the system to forget the already stored information for that AP then create a new connection.

You also can manually clear out the remembered connection details by first running the command sudo ls /etc/NetworkManager/system-connections where you should see a file named <your AP name>.nmconnection. You then can remove that file with sudo rm /etc/NetworkManager/system-connections/your AP name>.nmconnection.
After doing this the next time you attempt to connect it would be forced to create a new config file for that particular AP and it should work.

Having 3 wifi hotspots may be an issue unless they are merely repeaters with a single controlling AP.

Is it possible that you have configured the AP with a reserved IP for your system? If so then that stores a MAC address for your system on the AP and if your system presents a different MAC it may impact the connections as well.

Hi, this did not work. I removed the file too and its the same as usual. I do not remember altering any network settings. It was working fine. But day before yesterday, I changed my laptop battery to a newer one. Now I’m really not able to connect to any of those networks. All the networks that I’ve mentioned are not in the same building so they have their own separate spaces and each of the networks have different ISP. But my main concern is, how is my hotspot working fine whereas not my Wifi Connections. I tried to connect to one of my Wifi Network and after following your help, it still returns the same. It looks like it’s trying to connect but it fails and returns that pop up that I’ve mentioned in the main thread. I’m stuck with this. Could this be a firmware issue? Or a driver issue?

Run this near one of the home routers and compare the SIGNAL column for that network with your hotspot:

nmcli dev wifi list

If the home networks show a low signal even next to the router, open the laptop and check that both antenna leads are still seated on the Wi-Fi card.

If the signal is normal, get the failure reason from the log right after a failed attempt:

journalctl -b -u NetworkManager -u wpa_supplicant --since "-5min" | grep -iE "reason|fail|timeout"

Drafted with AI, reviewed by me.

Should I send you that journal?

Yes, post it here as text between two lines of three backticks (```).

Also post the nmcli dev wifi list line for one of your home networks and the one for your hotspot.

Drafted with AI, reviewed by me.

@psujzn You can blur BSSID, public databases map BSSIDs to approximate or exact cordinates.

Run this version instead, which leaves the BSSID column out of the output:

nmcli -f SSID,SIGNAL,SECURITY dev wifi list

Drafted with AI, reviewed by me.

I appreciate this note. I’ll be sure to consider least output in my recommendations moving forward.

suzz@fedora:~$ nmcli -f SSID,SIGNAL,SECURITY dev wifi list
SSID SIGNAL SECURITY
XXwif 62 WPA2
suz 60 WPA2 WPA3

it is just showing the nearby networks… suz is my mobile hotspot and XXwif is my home network.

suzz@fedora:~$ journalctl -b -u NetworkManager -u wpa_supplicant --since “-5min” | grep -iE “reason|fail|timeout”
Oct 08 13:03:56 fedora wpa_supplicant[1175]: wlp1s0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid=“XXwif” auth_failures=2 duration=20 reason=CONN_FAILED
Oct 08 13:04:06 fedora NetworkManager[1137]: [1791443946.4660] device (wlp1s0): state change: config → deactivating (reason ‘new-activation’, managed-type: ‘full’)
Oct 08 13:04:06 fedora NetworkManager[1137]: [1791443946.5086] device (wlp1s0): Deactivation failed: GDBus.Error:fi.w1.wpa_supplicant1.NotConnected: This interface is not connected
Oct 08 13:04:06 fedora NetworkManager[1137]: [1791443946.5087] device (wlp1s0): state change: deactivating → disconnected (reason ‘new-activation’, managed-type: ‘full’)
Oct 08 13:04:06 fedora NetworkManager[1137]: [1791443946.5556] device (wlp1s0): state change: disconnected → prepare (reason ‘none’, managed-type: ‘full’)
Oct 08 13:04:06 fedora NetworkManager[1137]: [1791443946.6021] device (wlp1s0): state change: prepare → config (reason ‘none’, managed-type: ‘full’)
Oct 08 13:04:06 fedora NetworkManager[1137]: [1791443946.6026] device (wlp1s0): state change: config → need-auth (reason ‘none’, managed-type: ‘full’)
Oct 08 13:04:06 fedora NetworkManager[1137]: [1791443946.6038] device (wlp1s0): state change: need-auth → prepare (reason ‘none’, managed-type: ‘full’)
Oct 08 13:04:06 fedora NetworkManager[1137]: [1791443946.6041] device (wlp1s0): state change: prepare → config (reason ‘none’, managed-type: ‘full’)
Oct 08 13:04:08 fedora NetworkManager[1137]: [1791443948.5637] device (wlp1s0): state change: config → ip-config (reason ‘none’, managed-type: ‘full’)
Oct 08 13:04:08 fedora NetworkManager[1137]: [1791443948.5649] dhcp4 (wlp1s0): activation: beginning transaction (timeout in 45 seconds)
Oct 08 13:04:08 fedora NetworkManager[1137]: [1791443948.7896] device (wlp1s0): state change: ip-config → ip-check (reason ‘none’, managed-type: ‘full’)
Oct 08 13:04:08 fedora NetworkManager[1137]: [1791443948.7920] device (wlp1s0): state change: ip-check → secondaries (reason ‘none’, managed-type: ‘full’)
Oct 08 13:04:08 fedora NetworkManager[1137]: [1791443948.7922] device (wlp1s0): state change: secondaries → activated (reason ‘none’, managed-type: ‘full’)

this is the journal

You should review WiFi settings in UEFI/BIOS. Replacing a battery may reset some configuration details to defaults. Many systems can enable WiFi at boot with simplified drivers that can conflict with linux so should be disabled. Other systems need WiFi enabled in UEFI/BIOS.

Can you mention which setting should I enable or disable. I use ASUS Vivobook 16x.

I turned it off but the Wi-Fi is not even Showing up.

I turned it back on and it’s still the same.

I even installed windows and it still returns the same

You tried it on Windows yet its still the same?

Did you turn of the WIFI at boot from BIOS?
It should be kept enabled

I tried in both cases. When it is enabled, the wifi networks show up but not connected. When it is disabled, wifi networks are not visible. Yes I tried in windows also. But mobile hotspot works fine. If it was a hardware issue it shouldn’t be working with Mobile Hotspot network too. IDK, I’m so tired now.

Right, until someone further comes to help you, keep the WIFI at boot from BIOS enabled as it lets your OS use WIFI adapter.

Do you have any other laptop with your or other device atleast? Are you able to connect to the home wifi with the other device, i suspect that it could be a problem with your home wiif itself.