You are not logged in.

#1 2021-05-31 19:42:46

ethem
Member
Registered: 2021-05-31
Posts: 5

[Solved] Wifi connection drops very frequently

Hello! I installed Arch Linux a few days ago. My wireless connection drops very frequently. I tried to turn off power saving mode and looks like succeed. But the problem is still exist, nothing changed. I used manjaro, debian, ubuntu etc on the same laptop but I never had similar issue. What should I do next?

dmesg

wlan0: deauthenticating from <mac-address> by local choice (Reason: 3=DEAUTH_LEAVING)

iw dev wlan0 get power_save

Power save: off

systemctl status NetworkManager

May 31 23:01:25 arch NetworkManager[251]: <info>  [1622491285.9064] device (wlan0): supplicant interface state: interface_disabled -> inactive
May 31 23:01:25 arch NetworkManager[251]: <info>  [1622491285.9065] device (p2p-dev-wlan0): supplicant management interface state: interface_disabled -> inactive
May 31 23:01:25 arch NetworkManager[251]: <info>  [1622491285.9321] device (wlan0): supplicant interface state: inactive -> disconnected
May 31 23:01:25 arch NetworkManager[251]: <info>  [1622491285.9321] device (p2p-dev-wlan0): supplicant management interface state: inactive -> disconnected
May 31 23:01:25 arch NetworkManager[251]: <info>  [1622491285.9407] device (wlan0): supplicant interface state: disconnected -> associated
May 31 23:01:25 arch NetworkManager[251]: <info>  [1622491285.9408] device (p2p-dev-wlan0): supplicant management interface state: disconnected -> associated
May 31 23:01:25 arch NetworkManager[251]: <info>  [1622491285.9469] device (wlan0): supplicant interface state: associated -> disconnected
May 31 23:01:25 arch NetworkManager[251]: <info>  [1622491285.9471] device (p2p-dev-wlan0): supplicant management interface state: associated -> disconnected
May 31 23:01:26 arch NetworkManager[251]: <info>  [1622491286.0467] device (wlan0): supplicant interface state: disconnected -> scanning
May 31 23:01:26 arch NetworkManager[251]: <info>  [1622491286.0469] device (p2p-dev-wlan0): supplicant management interface state: disconnected -> scanning

I'm using NetworkManager, wifi card is Intel, driver is iwlwifi. I can add outputs if requested. Thanks in advance!

Last edited by ethem (2021-05-31 21:29:36)

Offline

#2 2021-05-31 20:15:49

seth
Member
Registered: 2012-09-03
Posts: 50,928

Re: [Solved] Wifi connection drops very frequently

Post the outputs of

find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f
sudo journalctl -b # don't copy out of the pager, use eg. the tip in the first link below

Online

#3 2021-05-31 20:50:54

ethem
Member
Registered: 2021-05-31
Posts: 5

Re: [Solved] Wifi connection drops very frequently

seth wrote:

Post the outputs of

find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f
sudo journalctl -b # don't copy out of the pager, use eg. the tip in the first link below

find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f

bluetooth.service                        | bluetooth.target.wants
dbus-org.bluez.service                   | system
dbus-org.freedesktop.nm-dispatcher.service | system
dbus-org.freedesktop.resolve1.service    | system
default.target                           | system
dhcpcd.service                           | multi-user.target.wants
dirmngr.socket                           | sockets.target.wants
display-manager.service                  | system
getty@tty1.service                       | getty.target.wants
gpg-agent-browser.socket                 | sockets.target.wants
gpg-agent-extra.socket                   | sockets.target.wants
gpg-agent.socket                         | sockets.target.wants
gpg-agent-ssh.socket                     | sockets.target.wants
iwd.service                              | multi-user.target.wants
NetworkManager.service                   | multi-user.target.wants
NetworkManager-wait-online.service       | network-online.target.wants
p11-kit-server.socket                    | sockets.target.wants
pulseaudio.socket                        | sockets.target.wants
remote-fs.target                         | multi-user.target.wants
systemd-resolved.service                 | multi-user.target.wants

I didn't get what you mean with the comment in the second line, sorry. Hope this output is correct:

-- Journal begins at Thu 2021-05-27 03:35:43 +03, ends at Mon 2021-05-31 23:21:37 +03. --
May 31 12:54:11 arch kernel: microcode: microcode updated early to revision 0xe2, date = 2020-07-14
May 31 12:54:11 arch kernel: Linux version 5.12.7-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils) 2.36.1) #1 SMP PREEMPT Wed, 26 May 2021 22:03:57 +0000
May 31 12:54:11 arch kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=976e474f-7998-42e4-9889-34a13561f8c3 rw loglevel=3 quiet
May 31 12:54:11 arch kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
May 31 12:54:11 arch kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
May 31 12:54:11 arch kernel: x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
May 31 12:54:11 arch kernel: x86/fpu: Supporting XSAVE feature 0x008: 'MPX bounds registers'
May 31 12:54:11 arch kernel: x86/fpu: Supporting XSAVE feature 0x010: 'MPX CSR'
May 31 12:54:11 arch kernel: x86/fpu: xstate_offset[2]:  576, xstate_sizes[2]:  256
May 31 12:54:11 arch kernel: x86/fpu: xstate_offset[3]:  832, xstate_sizes[3]:   64
May 31 12:54:11 arch kernel: x86/fpu: xstate_offset[4]:  896, xstate_sizes[4]:   64
May 31 12:54:11 arch kernel: x86/fpu: Enabled xstate features 0x1f, context size is 960 bytes, using 'compacted' format.
May 31 12:54:11 arch kernel: BIOS-provided physical RAM map:
May 31 12:54:11 arch kernel: BIOS-e820: [mem 0x0000000000000000-0x0000000000057fff] usable
May 31 12:54:11 arch kernel: BIOS-e820: [mem 0x0000000000058000-0x0000000000058fff] reserved
May 31 12:54:11 arch kernel: BIOS-e820: [mem 0x0000000000059000-0x000000000009efff] usable
May 31 12:54:11 arch kernel: BIOS-e820: [mem 0x000000000009f000-0x000000000009ffff] reserved
May 31 12:54:11 arch kernel: BIOS-e820: [mem 0x0000000000100000-0x00000000821d3fff] usable
May 31 12:54:11 arch kernel: BIOS-e820: [mem 0x00000000821d4000-0x00000000821d4fff] ACPI NVS
May 31 12:54:11 arch kernel: BIOS-e820: [mem 0x00000000821d5000-0x00000000821fefff] reserved
May 31 12:54:11 arch kernel: BIOS-e820: [mem 0x00000000821ff000-0x0000000085160fff] usable
May 31 12:54:11 arch kernel: BIOS-e820: [mem 0x0000000085161000-0x0000000085e6afff] reserved
May 31 12:54:11 arch kernel: BIOS-e820: [mem 0x0000000085e6b000-0x0000000086221fff] usable
May 31 12:54:11 arch kernel: BIOS-e820: [mem 0x0000000086222000-0x000000008708dfff] ACPI NVS
May 31 12:54:11 arch kernel: BIOS-e820: [mem 0x000000008708e000-0x0000000087f01fff] reserved
May 31 12:54:11 arch kernel: BIOS-e820: [mem 0x0000000087f02000-0x0000000087f7efff] type 20
May 31 12:54:11 arch kernel: BIOS-e820: [mem 0x0000000087f7f000-0x0000000087ffefff] usable
May 31 12:54:11 arch kernel: BIOS-e820: [mem 0x0000000088000000-0x00000000880fffff] reserved
May 31 12:54:11 arch kernel: BIOS-e820: [mem 0x00000000e0000000-0x00000000efffffff] reserved
May 31 12:54:11 arch kernel: BIOS-e820: [mem 0x00000000fe000000-0x00000000fe010fff] reserved
May 31 12:54:11 arch kernel: BIOS-e820: [mem 0x00000000fec00000-0x00000000fec00fff] reserved
May 31 12:54:11 arch kernel: BIOS-e820: [mem 0x00000000fee00000-0x00000000fee00fff] reserved
May 31 12:54:11 arch kernel: BIOS-e820: [mem 0x00000000ff000000-0x00000000ffffffff] reserved
May 31 12:54:11 arch kernel: BIOS-e820: [mem 0x0000000100000000-0x0000000273ffffff] usable
May 31 12:54:11 arch kernel: NX (Execute Disable) protection: active
May 31 12:54:11 arch kernel: efi: EFI v2.40 by ASUSTeK COMPUTER INC.
May 31 12:54:11 arch kernel: efi: ESRT=0x87e41e18 ACPI=0x86828000 ACPI 2.0=0x86828000 SMBIOS=0xf05e0 SMBIOS 3.0=0xf0600
May 31 12:54:11 arch kernel: SMBIOS 3.0.0 present.
May 31 12:54:11 arch kernel: DMI: ASUSTeK COMPUTER INC. BU403UA/BU403UA, BIOS BU403UA.303 06/27/2016
May 31 12:54:11 arch kernel: tsc: Detected 2600.000 MHz processor
May 31 12:54:11 arch kernel: tsc: Detected 2599.992 MHz TSC
May 31 12:54:11 arch kernel: e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
May 31 12:54:11 arch kernel: e820: remove [mem 0x000a0000-0x000fffff] usable
May 31 12:54:11 arch kernel: last_pfn = 0x274000 max_arch_pfn = 0x400000000

Offline

#4 2021-05-31 20:52:30

seth
Member
Registered: 2012-09-03
Posts: 50,928

Re: [Solved] Wifi connection drops very frequently

Start by stop/disabling dhcpcd and iwd if you want to use networkmanager.
Then report back w/ an updated journal if the issue remains.

Online

#5 2021-05-31 21:10:57

ethem
Member
Registered: 2021-05-31
Posts: 5

Re: [Solved] Wifi connection drops very frequently

seth wrote:

Start by stop/disabling dhcpcd and iwd if you want to use networkmanager.
Then report back w/ an updated journal if the issue remains.

I restarted both, and unfortunately issue remains
full output of journal (did a reboot): https://gist.github.com/ethmtrgt/c82300 … cbec70b1a6

Offline

#6 2021-05-31 21:13:19

seth
Member
Registered: 2012-09-03
Posts: 50,928

Re: [Solved] Wifi connection drops very frequently

Who said anything about restarting? They compete w/ networkmanager and each other and you end up with the tree stooges syndrome

Online

#7 2021-05-31 21:20:41

ethem
Member
Registered: 2021-05-31
Posts: 5

Re: [Solved] Wifi connection drops very frequently

seth wrote:

Who said anything about restarting? They compete w/ networkmanager and each other and you end up with the tree stooges syndrome

Ah sorry for misunderstanding. Wlan0 disappears if i stop iwd.

Offline

#8 2021-05-31 21:22:21

seth
Member
Registered: 2012-09-03
Posts: 50,928

Re: [Solved] Wifi connection drops very frequently

sudo systemctl disable iwd
sudo systemctl disable dhcpcd
sudo reboot

Online

#9 2021-05-31 21:27:33

ethem
Member
Registered: 2021-05-31
Posts: 5

Re: [Solved] Wifi connection drops very frequently

seth wrote:
sudo systemctl disable iwd
sudo systemctl disable dhcpcd
sudo reboot

didn't happen in last 5 mins, thank you a lot smile

Offline

#10 2022-11-29 17:42:05

PerfMonk
Member
Registered: 2016-04-21
Posts: 22

Re: [Solved] Wifi connection drops very frequently

seth wrote:

Start by stop/disabling dhcpcd and iwd if you want to use networkmanager.
Then report back w/ an updated journal if the issue remains.


Thanks a lot seth,  I had lots of disconnection events too and it seems it was caused by the iwd service. 
You solved my problem too cool

Note for other with similar problem that iwd is a dependency of NetworkManager and that you shouldn't uninstall it if you use NetworkManager but disabling the service is okay.

Thanks,

          BT

Last edited by PerfMonk (2022-11-29 17:42:50)

Offline

Board footer

Powered by FluxBB