You are not logged in.

#1 2020-08-07 00:16:25

orhun
Package Maintainer (PM)
Registered: 2020-03-31
Posts: 6

Network connection drop issue

Hi,
I'm having issues with my wifi connection on my Arch Linux setup. Sometimes it disconnects and blocks itself and I can't get it to work again without a reboot.
I'm using netctl, dhcpcd.

kernel:

Linux arch 5.8.0 #2 SMP PREEMPT Mon Aug 3 22:49:36 +03 2020 x86_64 GNU/Linux

lspci:

02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL810xE PCI Express Fast Ethernet controller (rev 08)
	Subsystem: Lenovo Device 383c
	Flags: bus master, fast devsel, latency 0, IRQ 18
	I/O ports at 5000 [size=256]
	Memory at c4204000 (64-bit, non-prefetchable) [size=4K]
	Memory at c4200000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: [40] Power Management version 3
	Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
	Capabilities: [70] Express Endpoint, MSI 01
	Capabilities: [b0] MSI-X: Enable+ Count=4 Masked-
	Capabilities: [d0] Vital Product Data
	Capabilities: [100] Advanced Error Reporting
	Capabilities: [140] Virtual Channel
	Capabilities: [160] Device Serial Number 01-00-00-00-36-4c-e0-00
	Capabilities: [170] Latency Tolerance Reporting
	Capabilities: [178] L1 PM Substates
	Kernel driver in use: r8169
	Kernel modules: r8169

03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8188EE Wireless Network Adapter (rev 01)
	Subsystem: AzureWave Device 1f38
	Flags: bus master, fast devsel, latency 0, IRQ 51
	I/O ports at 4000 [size=256]
	Memory at c4100000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: [40] Power Management version 3
	Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
	Capabilities: [70] Express Endpoint, MSI 00
	Capabilities: [100] Advanced Error Reporting
	Capabilities: [140] Device Serial Number 00-e0-4c-ff-fe-81-91-01
	Capabilities: [150] Latency Tolerance Reporting
	Kernel driver in use: rtl8188ee
	Kernel modules: rtl8188ee

journalctl after incident happens:

Aug 07 02:49:05 arch dhcpcd[487]: wlp3s0: carrier lost
Aug 07 02:49:05 arch kernel: rtlwifi: AP off, try to reconnect now
Aug 07 02:49:05 arch kernel: wlp3s0: Connection to AP 4c:9e:ff:02:b0:40 lost
Aug 07 02:49:05 arch dhcpcd[487]: wlp3s0: deleting route to 192.168.1.0/24
Aug 07 02:49:05 arch dhcpcd[487]: wlp3s0: deleting default route via 192.168.1.1

netctl status:

(root λ orhun) netctl status wlp3s0-RHN1
● netctl@wlp3s0\x2dRHN1.service - Automatically generated profile by wifi-menu
     Loaded: loaded (/usr/lib/systemd/system/netctl@.service; enabled; vendor preset: disabled)
    Drop-In: /etc/systemd/system/netctl@wlp3s0\x2dRHN1.service.d
             └─profile.conf
     Active: failed (Result: exit-code) since Fri 2020-08-07 02:23:57 +03; 3min 9s ago
       Docs: man:netctl.profile(5)
    Process: 71755 ExecStart=/usr/lib/netctl/network start wlp3s0-RHN1 (code=exited, status=1/FAILURE)
   Main PID: 71755 (code=exited, status=1/FAILURE)

Aug 07 02:23:40 arch systemd[1]: Starting Automatically generated profile by wifi-menu...
Aug 07 02:23:40 arch network[71755]: Starting network profile 'wlp3s0-RHN1'...
Aug 07 02:23:57 arch network[71755]: WPA association/authentication failed for interface 'wlp3s0'
Aug 07 02:23:57 arch network[71755]: Failed to bring the network up for profile 'wlp3s0-RHN1'
Aug 07 02:23:57 arch systemd[1]: netctl@wlp3s0\x2dRHN1.service: Main process exited, code=exited, status=1/FAILURE
Aug 07 02:23:57 arch systemd[1]: netctl@wlp3s0\x2dRHN1.service: Failed with result 'exit-code'.
Aug 07 02:23:57 arch systemd[1]: Failed to start Automatically generated profile by wifi-menu.

dmesg:

(orhun λ ~) dmesg | grep rtlwifi
[   19.263235] rtl8188ee: Using firmware rtlwifi/rtl8188efw.bin
[   19.266864] rtlwifi: rtlwifi: wireless switch is on
[   55.403771] rtlwifi: AP off, try to reconnect now
[ 4170.414555] rtlwifi: rtlwifi: wireless switch is on
[ 4203.160154] rtlwifi: rtlwifi: wireless switch is on
[ 5439.338195] rtlwifi: AP off, try to reconnect now
[ 5450.004046] rtlwifi: AP off, try to reconnect now
[ 6360.196098] rtlwifi: rtlwifi: wireless switch is on

if I try to start dhcpcd after disconnection:

(root λ orhun) dhcpcd
dhcpcd-9.1.4 starting
dev: loaded udev
DUID 00:04:93:0c:90:93:78:8e:11:e5:ba:4c:50:7b:9d:55:f6:b6
no interfaces have a carrier

iplink after disconnection:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp2s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 50:7b:9d:55:f6:b6 brd ff:ff:ff:ff:ff:ff
3: wlp3s0: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
    link/ether 28:c2:dd:d3:58:43 brd ff:ff:ff:ff:ff:ff

It's been going on for like one week. It was there before the 5.8 kernel update.

Last edited by orhun (2020-08-07 00:33:00)

Offline

#2 2020-08-07 00:46:10

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Network connection drop issue

systemctl list-unit-files --state=enabled

No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2020-08-07 08:12:32

orhun
Package Maintainer (PM)
Registered: 2020-03-31
Posts: 6

Re: Network connection drop issue

Slithery wrote:
systemctl list-unit-files --state=enabled
(orhun λ ~) systemctl list-unit-files --state=enabled
UNIT FILE                               STATE   VENDOR PRESET
var-lib-snapd-snap-core-8689.mount      enabled disabled     
var-lib-snapd-snap-core-8935.mount      enabled disabled     
var-lib-snapd-snap-core18-1668.mount    enabled disabled     
var-lib-snapd-snap-core18-1705.mount    enabled disabled     
var-lib-snapd-snap-multipass-1784.mount enabled disabled     
var-lib-snapd-snap-snapcraft-4234.mount enabled disabled     
getty@.service                          enabled enabled      
systemd-timesyncd.service               enabled enabled      
wpa_supplicant.service                  enabled disabled     
remote-fs.target                        enabled enabled      

10 unit files listed.

Offline

#4 2021-11-20 15:59:31

nootmuskaat
Member
Registered: 2021-11-20
Posts: 1

Re: Network connection drop issue

@orhun, were you ever able to resolve this issue?

Offline

#5 2021-11-20 21:14:05

orhun
Package Maintainer (PM)
Registered: 2020-03-31
Posts: 6

Re: Network connection drop issue

@nootmuskaat not really, I switched to the ethernet connection when I realized the wifi driver became even more unstable hmm

Offline

#6 2021-11-20 21:31:40

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

Re: Network connection drop issue

1. why is there a wpa_supplicant.service when you're using netctl?
2. don't try to run dhcpcd on top of netctl (and you'd need to add a wpa_supplicant hook anyway)
3. please post a complete system journal covering wifi connection losses
4. Try to pass "pcie_aspm=off" to the kernel commandline (but since there're colliding services, let's clean up that first)

Offline

#7 2021-11-20 22:03:36

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: Network connection drop issue

A quick search suggests the ant_sel=2 parameter for the rtl8188ee module.

Offline

Board footer

Powered by FluxBB