Skip to content

WiFi keeps disconnecting on home network

I am having issues where my home wifi disconnects like 0-3 seconds after connecting. I tried connecting via ethernet and I get the same problem. I need to open up a wifi sharing hotspot on my phone, and that has stable internet. I had no trouble at my university eduroam with either wifi or ethernet.

I have read this form: https://www.reddit.com/r/archlinux/comments/8o098m/laptop_keeps_disconnecting_on_certain_wifi/ and have tried switching from WPA supplicant to IWD (by installing iwd and then adding the conf file as described here). I can connect faster, but the problem still persists. Here is my dmesg output: https://pastebin.com/ZRJx6UvZ note the constant stream of deauths received. Here is the output of systemctl status: https://pastebin.com/raN20drU

The output from systemctl is shown at the bottom. For some reason, I ran systemctl disable wpa_supplicant but it keeps starting on startup. However, even if I stop it with systemctl stop, the internet disconnecting problem still persists.

  1. How would I fix the problem of my network constantly disconnecting me? It works fine with my Android smartphone and Windows dual boot. [SOLVED]
  2. If IWD is the way to go, how do I stop WPA_Supplicant from starting at startup?

Let me know if more data is required. Thanks!

  UNIT                                                  LOAD   ACTIVE SUB     DESCRIPTION                                    >
  accounts-daemon.service                               loaded active running Accounts Service                               >
  bluetooth.service                                     loaded active running Bluetooth service                              >
  dbus.service                                          loaded active running D-Bus System Message Bus                       >
  dhcpcd.service                                        loaded active running dhcpcd on all interfaces                       >
  geoclue.service                                       loaded active running Location Lookup Service                        >
  iwd.service                                           loaded active running Wireless service                               >
  kmod-static-nodes.service                             loaded active exited  Create list of static device nodes for the curr>
  lightdm.service                                       loaded active running Light Display Manager                          >
  lm_sensors.service                                    loaded active exited  Initialize hardware monitoring sensors         >
  lvm2-lvmetad.service                                  loaded active running LVM2 metadata daemon                           >
  lvm2-monitor.service                                  loaded active exited  Monitoring of LVM2 mirrors, snapshots etc. usin>
  NetworkManager-wait-online.service                    loaded active exited  Network Manager Wait Online                    >
  NetworkManager.service                                loaded active running Network Manager                                >
  ntpd.service                                          loaded active running Network Time Service                           >
  org.cups.cupsd.service                                loaded active running CUPS Scheduler                                 >
  polkit.service                                        loaded active running Authorization Manager                          >
  sshd.service                                          loaded active running OpenSSH Daemon                                 >
  systemd-backlight@backlight:nvidia_0.service          loaded active exited  Load/Save Screen Backlight Brightness of backli>
  systemd-binfmt.service                                loaded active exited  Set Up Additional Binary Formats               >
  systemd-fsck@dev-disk-by\x2duuid-26D7\x2d5F58.service loaded active exited  File System Check on /dev/disk/by-uuid/26D7-5F5>
  systemd-journal-flush.service                         loaded active exited  Flush Journal to Persistent Storage            >
  systemd-journald.service                              loaded active running Journal Service                                >
  systemd-logind.service                                loaded active running User Login Management                          >
  systemd-modules-load.service                          loaded active exited  Load Kernel Modules                            >
  systemd-random-seed.service                           loaded active exited  Load/Save Random Seed                          >
  systemd-remount-fs.service                            loaded active exited  Remount Root and Kernel File Systems           >
  systemd-sysctl.service                                loaded active exited  Apply Kernel Variables                         >
  systemd-timesyncd.service                             loaded active running Network Time Synchronization                   >
  systemd-tmpfiles-setup-dev.service                    loaded active exited  Create Static Device Nodes in /dev             >
  systemd-tmpfiles-setup.service                        loaded active exited  Create Volatile Files and Directories          >
  systemd-udev-trigger.service                          loaded active exited  Coldplug All udev Devices                      >
  systemd-udevd.service                                 loaded active running Rule-based Manager for Device Events and Files >
  systemd-update-utmp.service                           loaded active exited  Update UTMP about System Boot/Shutdown         >
  systemd-user-sessions.service                         loaded active exited  Permit User Sessions                           >
  teamviewerd.service                                   loaded active running TeamViewer remote control daemon               >
  udisks2.service                                       loaded active running Disk Manager                                   >
  upower.service                                        loaded active running Daemon for power management                    >
  user-runtime-dir@1000.service                         loaded active exited  User Runtime Directory /run/user/1000          >
  user@1000.service                                     loaded active running User Manager for UID 1000                      >
  vpnagentd.service                                     loaded active running Cisco AnyConnect Secure Mobility Client Agent  >
  wpa_supplicant.service                                loaded active running WPA supplicant 

Edited 5 Sep 2020. We only hold this version.

1 points6 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
1 · 67% up
Kind
Text
ID
imrmsg

Author

12
posts
17
comments
0
media
View profile

7 comments

Ahhh I fixed the 1st problem by disabling and removing dhcpcd.service.

​

But I still have wpa_supplicant which is required by networkmanager, but my internet works just fine when I disable it. How can I stop it from autostarting?

1 points

You mean disabling the service on startup? sudo systemctl disable dhcpcd

If you have multiple network services running at once, they will conflict with each other and can have weird results.

1 points

I mean disabling wpa_supplicant.service

​

I ran sudo systemctl disable wpa_supplicant but it is still running on startup

1 points
1 points

THANK YOU @onlymys3lf !!!!

I have been going nuckin' futz for two days straight trying to resolve the issue with wpa_supplicant dropping my WiFi connection literally 100x per minute, getting nowhere fast until I came across this post and your suggestion to try changing the default WiFi backend to iwd. After following the simple steps in the link you shared above, I have had ZERO WiFi connection bounces since! :-)

For me, the ultimate solution wound up being the combination of disabling wifi.powersave and confinguring wifi.backend=iwd within their own individual /etc/NetworkManager/conf.d/wifi_*.conf files.

Sharing those below, in the event they are helpful for others facing this issue.

# Disable WiFi Device <-> NetWorkManager Power Management checking, and switch the NetworkManager WiFi Backend from wpa_supplicant to iwd by creating the following two NetworkManager custom configuration files

➜  conf.d pwd
/etc/NetworkManager/conf.d
➜  conf.d
➜  conf.d ls -latr wifi*.conf
-rw-r--r-- 1 root root 32 Sep  5 04:54 wifi-powersave-off.conf
-rw-r--r-- 1 root root 26 Sep  5 05:19 wifi_backend.conf
➜  conf.d
➜  conf.d cat wifi-powersave-off.conf
[connection]
wifi.powersave = 2
➜  conf.d
➜  conf.d cat wifi_backend.conf
[device]
wifi.backend=iwd
➜  conf.
# Now restart the NetworkManager service, and all should be good!

➜  conf.d sudo systemctl restart NetworkManager

➜  conf.d sudo systemctl status NetworkManager

● NetworkManager.service - Network Manager
Loaded: loaded (/lib/systemd/system/NetworkManager.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2022-09-05 05:55:50 EDT; 7s ago
Docs: man:NetworkManager(8)
Main PID: 16661 (NetworkManager)
Tasks: 4 (limit: 8986)
CPU: 333ms
CGroup: /system.slice/NetworkManager.service
└─16661 /usr/sbin/NetworkManager --no-daemon

Sep 05 05:55:50 raspberrypi NetworkManager[16661]: <info>  [1662371750.4479] manager: (wlan0): new 802.11 Wi-Fi device (/org/freedesktop/NetworkManager/Devices/3)
Sep 05 05:55:50 raspberrypi NetworkManager[16661]: <info>  [1662371750.4621] device (wlan0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Sep 05 05:55:50 raspberrypi NetworkManager[16661]: <info>  [1662371750.5858] device (wlan0): new IWD device state is disconnected
Sep 05 05:55:50 raspberrypi NetworkManager[16661]: <info>  [1662371750.5874] agent-manager: agent[0ec38852e63d65b7,:1.150/org.kde.plasma.networkmanagement/1000]: agent registered
Sep 05 05:55:50 raspberrypi NetworkManager[16661]: <info>  [1662371750.5892] modem-manager: ModemManager available
Sep 05 05:55:50 raspberrypi NetworkManager[16661]: <info>  [1662371750.6198] device (wlan0): state change: unavailable -> disconnected (reason 'supplicant-available', sys-iface-state: 'managed')
Sep 05 05:55:50 raspberrypi NetworkManager[16661]: <info>  [1662371750.6252] manager: (FC:D4:36:4D:16:4F): new Bluetooth device (/org/freedesktop/NetworkManager/Devices/4)
Sep 05 05:55:50 raspberrypi NetworkManager[16661]: <info>  [1662371750.6351] device (FC:D4:36:4D:16:4F): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Sep 05 05:55:50 raspberrypi NetworkManager[16661]: <info>  [1662371750.6427] device (FC:D4:36:4D:16:4F): state change: unavailable -> disconnected (reason 'none', sys-iface-state: 'managed')
Sep 05 05:55:56 raspberrypi NetworkManager[16661]: <info>  [1662371756.4442] manager: s
1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.