NetworkManager.service failed, wifi icon gone too

like my similar issue in the past, i was trying again to fix my internet speed issue and on one post in this forum someone suggested to run

sudo modprobe -rv iwlwifi
sudo modprobe -rv iwlwifi 11n_disable=1

i did that but now the wifi icon from the tray is gone and the NetworkManager isnt working

i tried reloading the drivier with

sudo modprobe iwlwifi

but it didnt help much either, so now i am here without internet typing this from my phone so forgive me if there are any typos in the code

and idk what commamd should i run to to give further related information so just ask me

no idea about your “similar issue in the past”.

If I’d want to reload the driver, I’d first stop NetworkManager
unload the driver
load it again
and then restart NetworkManager

sudo modprobe -rv iwlwifi

systemctl stop NetworkManager.service

sudo modprobe iwlwifi 11n_disable=1
(I suppose the intention here is to load the module with 11n disabled … I’m 100% unsure whether that command is correct
I’d just use it without the option.)

systemctl start NetworkManager.service

Job for NetworkManager.service failed because the control process exited with error code.

see "systemctl status NetworkManager.service" and " journalctl -xeu NetworlManager.service" for deatils

it shows this same error even after following your given steps

then do this and see what it tells you? :man_shrugging:



if I list the module dependencies, I get this:

lsmod | grep iwl
iwldvm                352256  0
mac80211             1724416  1 iwldvm
iwlwifi               598016  1 iwldvm
cfg80211             1323008  3 iwldvm,iwlwifi,mac80211

I’d make sure that all of them are unloaded after:
sudo modprobe -rv iwlwifi

But I’d not go down that path yet - look at the messages from above recommendation first.

systemctl status NetworkManager.service

NetworkManager.service - Network Manager
      Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled; preset: disabled)
       Active: failed (Result: exit-code) since Sat 2024-08-17 19:27:59 IST; 25s ago
Invocation: 8c1e8f6dc8654eeea8ab633712e8ee56
          Docs: man: NetworkManager(8)
     Process: 2300 ExecStart=/usr/bin/NetworkManager --no-daemon (code=exited, status=1/FAILURE)
   Main PID: 2300 (code=exited, status=1/FAILURE)


Aug 17 19:27:59 manjaro systemd[1]: NetworkManager service: Scheduled restart job, restart counter is at 5.
Aug 17 19:27:59 manjaro systemd[1]: NetworkManager.service: Start request repeated too quickly.
Aug 17 19:27:59 manjaro systemd[1]: NetworkManager.service: Failed with result 'exit-code'.
Aug 17 19:27:59 manjaro systemd[1]: Failed to start Network Manager.

Perhaps the log has got something? - it’s also in the recommendation.

You unloaded some modules - are you sure all the needed modules are loaded again?
How?

The process' exit code is 'exited' and its exit status is 1.
Aug 17 19:37:25 manjaro systemd[1]: NetworkManager.service: Failed with result 'exit-code'.
Subject: Unit failed Defined-By: systemd
Support: https://forum.manjaro.org/c/support

The unit NetworkManager service has entered the 'failed' state with result 'exit-code'.

Aug 17 19:37:25 manjaro systemd[1]: Failed to start Network Manager. 
Subject: A start job for unit NetworkManager.service has failed
Defined-By: systemd 
Support: https://forum.manjaro.org/c/support

A start job for unit NetworkManager.service has finished with a failure.

The job identifier is 6095 and the job result is failed.

Aug 17 19:37:25 manjaro systemd[1]: NetworkManager service: Scheduled restart job, restart counter is 
Subject: Automatic restarting of a unit has been scheduled
Defined-By: systemd
Support: https://forum.manjaro.org/c/support
at 5.

Automatic restarting of the unit NetworkManager.service has been scheduled, as the result for the configured Restart= setting for the unit

Aug 17 19:37:25 manjaro systemd[1]: NetworkManager.service: Stert request repeated too quickly. 
Aug 17 19:37:25 manjaro systemd[1]: NetworkManager.service: Failed with result 'exit-code'. 
Subject: Unit failed
Defined-By: systemd
Support: https://forum.manjaro.org/c/support

The unit NetworkManager service has entered the 'failed' state with result 'exit-code'. 

Aug 17 19:37:25 manjaro systemd[1]: Failed to start Network Manager.
Subject: A start job for unit NetworkManager service has failed 
Defined-By: systemd
Support: https://forum.manjaro.org/c/support

A start job for unit NetworkManager.service has finished with a failure.

The job identifier is 6202 and the job result is failed.

and this the other one

because this issue happened only after running those 3 commands, so ig they are the only reason ?

ok so i have got the icon back when i removed the “wifi.powersave=2” from the conf file of NetworkManager but the internet is still not working

so you are not sure

you recursively removed iwlwifi
but I’m not convinced that it is correctly loaded again

I’d reboot, then check
lsmod | grep iwl
so that you know what is “normal”
and can compare to the situation after you unload and reload the module

I’d also
systemctl stop NetworkManager.service
and then check the log:
journalctl -xeu NetworkManager
it should say stopped - but not failed

then start it again
systemctl start NetworkManager.service
and check again:
journalctl -xeu NetworkManager

I see no reason why it would fail.

We still don’t know what your “similar issue in the past” was, btw.

so even after loading and unloading the module, the result of

lsmod | grep iwl

is same

and yes when i stopped the NetworkManager.service it showed stopped in the journal

my similar issue was my last post where i had the same error from the NetworkManager but it solved when i deleted the file which caused the error but here even there is no more error of NetworkManager the internet is still not working

Why don’t you link your last post here?
What did end up being in that file that you said you created?
The thread was closed in May.

so i tried using chatgpt and mostly solved the problems, first i remove anything that i had added in the conf file of networkmanager then tried putting up the connection and then requested a new IP, and tried again and it worked, i just know that i should not run any command i find on the internet.

now the speed of the internet still persists, the speed on windows is fabulous, and here on linux everything works fine too except a few sites, like for anime or series which just works fine on windows however there is no problem with the yt or searching the internet and other websites just a few ones, what shall i do ?

XY problem - you are asking about your attempted solution - instead of solving the underlying issue.

Your changes to the configuraton file.

Revert all changes and reboot.

Apparently not a system problem but some configuration you have fiddled

Check your browser addons - uBlock - some adBlocker - a javascript blocker - it could be anything.

If it’s only some sites, it is not an issue with wifi speed in general, but with the connection to those sites.
That, to me, is the most logical conclusion from your description.
From that description, I’d never even think of the wifi driver as the issue.

use at your own risk
I’d say: don’t do that unless you can judge the accuracy of the answer.
It’ll lie to your with the proverbial straight face - and even insist to be right when challenged.
It’s a LLM (language model) - not an intelligence.