MayorDimsdale

New Member
Joined
Dec 22, 2025
Messages
14
Reaction score
6
Credits
95
I am running Manjaro on a dual boot with windows 11. I just installed it today. The wifi was giving some problems. It connected for a few seconds and quickly disconnected, I could not get the connection back up again. I searched for solutions and stumbled upon this
sudo sed -i 's/3/2/' /etc/NetworkManager/conf.d/deault-wifi-powersave-on.conf

but when I typed it in I typed

sudo sed -i 's/3/2' /etc/NetworkManager/conf.d/deault-wifi-powersave-on.conf

a missing forward slash. When I rebooted the wifi button to connect to wifi networks wasnt even there, even when I booted to my windows 11 the wifi button wasn't there. Its like the wifi adapter is non existent. Please help
 

Attachments

  • 20251222_202643.jpg
    20251222_202643.jpg
    1.3 MB · Views: 95
  • 20251222_202616.jpg
    20251222_202616.jpg
    1.3 MB · Views: 75


I have found that often wifi disconects are cause by Network Manager power save function.
You can try disabling it this way.
In terminal copy and paste this command.

Code:
sudo sed -i 's/wifi.powersave = 3/wifi.powersave = 2/' /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
try it for awhile that way. see if the disconnects stop. If not you can reverse the process by changing the command to read
Code:
sudo sed -i 's/wifi.powersave = 2/wifi.powersave = 3/' /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
Good luck.
I accidentelly entered the command
Code:
sudo sed -i 's/3/2' /etc/NetworkManager/default-wifi-powersave-on.conf
now my system doesnt detect my wireless network adapter at all like I don't even see a wifi button
 
Last edited by a moderator:
I accidentelly entered the command
sudo sed -i 's/3/2' /etc/NetworkManager/default-wifi-powersave-on.confnow my system doesnt detect my wireless network adapter at all like I don't even see a wifi button
I corrected your CODE tags because it was unreadable with the CODE tags not being done correctly. What distribution are you using?

That basically tells it to replace the 3 with a 2 in that file. Can you share what that file looks like now?
Code:
cat /etc/NetworkManager/default-wifi-powersave-on.conf
 
It was gone after I rebooted, but I thought creating a new one would fix the problem so I put what anothor user got after they ran theirs into that file. Which was:
[connection]
wifi.powersave=2
 
[connection]
wifi.powersave=2
Try changing that "2" back to a "3" without quotes. Then reboot and see if your wireless interface is detected again. If you share the output of "ip a" or/and "nmcli dev" it should list all your network interfaces available.
 
Sorry to hear you're having wifi issue's.

Is this a usb wifi dongle <or> the nic that came with your mobo (motherboard)?

Run this command please and post the output.

Code:
lspci | grep -i network

@dos2unix and @CaffeineAddict are good with the wifi, I am not.
 
Try changing that "2" back to a "3" without quotes. Then reboot and see if your wireless interface is detected again. If you share the output of "ip a" or/and "nmcli dev" it should list all your network interfaces available.
No it did nothing. I dont know why but when I ran the sed command the default-wifi-powersave-on.conf file was not there after I rebooted and the wifi button with it. I tried creating a new file but it seems not to be working still
 
Give me a second. I'm going to merge the posts from that other topic into here. It's getting confusing.
 
Give me a second. I'm going to merge the posts from that other topic into here. It's getting confusing.
Okay I moved the replies from the other thread into your new one because it was getting confusing.
 
No it did nothing. I dont know why but when I ran the sed command the default-wifi-powersave-on.conf file was not there after I rebooted and the wifi button with it. I tried creating a new file but it seems not to be working still
What distribution are you using?
 
No it did nothing. I dont know why but when I ran the sed command the default-wifi-powersave-on.conf file was not there after I rebooted and the wifi button with it. I tried creating a new file but it seems not to be working still

Please restart these services one by one in order listed:
Bash:
sudo systemctl restart wpa_supplicant
sudo systemctl restart NetworkManager

Then see if button comes back, or run ip link to list NIC's
 
I have a laptop, but when I run the lspci | grep -i netwrok nothing shows up
Please restart these services one by one in order listed:
Bash:
sudo systemctl restart wpa_supplicant
sudo systemctl restart NetworkManager

Then see if button comes back, or run ip link to list NIC's
 

Attachments

  • 20251222_212124.jpg
    20251222_212124.jpg
    1 MB · Views: 80
  • 20251222_212245.jpg
    20251222_212245.jpg
    1.1 MB · Views: 63
All of this happened when I ran the sudo sed -i 's/3/2' /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf and after I rebooted not even the windows wifi button showed. Plus its an hp laptop there is no wifi button
I think there must be a small button somewhere on your laptop that turns on wifi, it could be you turned it off.


Please post output of both commands:

Bash:
lsusb
lspci
 


Follow Linux.org

Members online


Top