Ethernet connection with r8152 drops randomly

Hello to everyone,
I’m using Manjaro for about 6 months and I can say that it’s one of my favorite distro. Now I have a problem and I would like to know which is the cause.
Until now, my internet connection was through WiFi using a Wireless adapter. Some days ago I decided to buy a Ethernet/USB dongle (with chipset Realtek RTL8153) to improve the connection performance. The connection with the WiFi works well while the wired connection does not work: the connection deactivates itself or the speed becomes zero after a random period of time (may be after 1 minute, may be 10 minutes).

What I did:

  • I tested the connection with other distros (Pop OS, Ubuntu). The wired connection works properly without any issue.
  • I installed and selected the same Kernel (5.4) used with other distros, checking the driver version (it is r8152 v1.10.11). Nope.
  • I downgraded the NetworkManager selecting the same version running on Pop OS (v1.22.10, while the latest is the v1.26.2-1). Nope.
  • I tried to debug the log of the NetworkManager with journalctl but I did not find any error or problems.
  • I installed dhclient and configured the NetworkManager to use it. Nope.

In addition when the connection drops or deactivates the NetworkManager can not be restarted. The laptop hangs on the shutdown waiting for the NetworkManager service and I had to poweroff the computer with the power button.

➜  ~ inxi -N
Network:   Device-1: Broadcom and subsidiaries BCM4352 802.11ac Wireless Network Adapter driver: wl 
           Device-2: Realtek RTL8153 Gigabit Ethernet Adapter type: USB driver: r8152 


➜  ~ journalctl -u NetworkManager.service -f
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6258] device (enp0s20u2u4): Activation: starting connection 'Wired connection 1' (ccdf6e0f-9eb6-3375-8822-6eee7c72bb33)
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6259] audit: op="connection-activate" uuid="ccdf6e0f-9eb6-3375-8822-6eee7c72bb33" name="Wired connection 1" pid=1125 uid=1000 result="success"
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6261] device (enp0s20u2u4): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6265] manager: NetworkManager state is now CONNECTING
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6269] device (enp0s20u2u4): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6283] device (enp0s20u2u4): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed')
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6287] dhcp4 (enp0s20u2u4): activation: beginning transaction (timeout in 45 seconds)
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6299] dhcp4 (enp0s20u2u4): dhclient started with pid 6834
set 25 14:48:59 mylap13 dhclient[6834]: DHCPREQUEST for 192.168.1.199 on enp0s20u2u4 to 255.255.255.255 port 67
set 25 14:48:59 mylap13 dhclient[6834]: DHCPACK of 192.168.1.199 from 192.168.1.1
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6662] dhcp4 (enp0s20u2u4):   address 192.168.1.199
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6663] dhcp4 (enp0s20u2u4):   plen 24 (255.255.255.0)
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6663] dhcp4 (enp0s20u2u4):   gateway 192.168.1.1
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6663] dhcp4 (enp0s20u2u4):   lease time 4294967295
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6664] dhcp4 (enp0s20u2u4):   nameserver '8.8.8.8'
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6664] dhcp4 (enp0s20u2u4):   nameserver '8.8.4.4'
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6664] dhcp4 (enp0s20u2u4): option broadcast_address    => '192.168.1.255'
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6664] dhcp4 (enp0s20u2u4): option dad_wait_time        => '0'
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6664] dhcp4 (enp0s20u2u4): option dhcp_lease_time      => '4294967295'
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6665] dhcp4 (enp0s20u2u4): option dhcp_message_type    => '5'
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6665] dhcp4 (enp0s20u2u4): option dhcp_server_identifier => '192.168.1.1'
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6665] dhcp4 (enp0s20u2u4): option domain_name_servers  => '8.8.8.8 8.8.4.4'
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6665] dhcp4 (enp0s20u2u4): option expiry               => '5896005434'
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6665] dhcp4 (enp0s20u2u4): option ip_address           => '192.168.1.199'
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6665] dhcp4 (enp0s20u2u4): option network_number       => '192.168.1.0'
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6665] dhcp4 (enp0s20u2u4): option next_server          => '0.0.0.0'
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6666] dhcp4 (enp0s20u2u4): option requested_broadcast_address => '1'
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6666] dhcp4 (enp0s20u2u4): option requested_domain_name => '1'
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6666] dhcp4 (enp0s20u2u4): option requested_domain_name_servers => '1'
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6666] dhcp4 (enp0s20u2u4): option requested_host_name  => '1'
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6666] dhcp4 (enp0s20u2u4): option requested_ms_classless_static_routes => '1'
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6667] dhcp4 (enp0s20u2u4): option requested_ntp_servers => '1'
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6667] dhcp4 (enp0s20u2u4): option requested_rfc3442_classless_static_routes => '1'
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6667] dhcp4 (enp0s20u2u4): option requested_root_path  => '1'
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6667] dhcp4 (enp0s20u2u4): option requested_routers    => '1'
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6667] dhcp4 (enp0s20u2u4): option requested_static_routes => '1'
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6667] dhcp4 (enp0s20u2u4): option requested_subnet_mask => '1'
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6667] dhcp4 (enp0s20u2u4): option requested_time_offset => '1'
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6668] dhcp4 (enp0s20u2u4): option requested_wpad       => '1'
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6668] dhcp4 (enp0s20u2u4): option routers              => '192.168.1.1'
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6668] dhcp4 (enp0s20u2u4): option subnet_mask          => '255.255.255.0'
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6668] dhcp4 (enp0s20u2u4): state changed unknown -> extended
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6702] device (enp0s20u2u4): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'managed')
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6736] device (enp0s20u2u4): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed')
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6740] device (enp0s20u2u4): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6752] manager: NetworkManager state is now CONNECTED_LOCAL
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6763] manager: NetworkManager state is now CONNECTED_SITE
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6764] policy: set 'Wired connection 1' (enp0s20u2u4) as default for IPv4 routing and DNS
set 25 14:48:59 mylap13 dhclient[6834]: Timeout too large reducing to: 2147483646 (TIME_MAX - 1)
set 25 14:48:59 mylap13 dhclient[6834]: bound to 192.168.1.199 -- renewal in 2147483648 seconds.
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.6812] device (enp0s20u2u4): Activation: successful, device activated.
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.7115] audit: op="statistics" arg="refresh-rate-ms" pid=1125 uid=1000 result="success"
set 25 14:48:59 mylap13 NetworkManager[457]: <info>  [1601038139.7977] manager: NetworkManager state is now CONNECTED_GLOBAL
set 25 14:49:02 mylap13 NetworkManager[457]: <info>  [1601038142.4527] dhcp6 (enp0s20u2u4): activation: beginning transaction (timeout in 45 seconds)
set 25 14:49:02 mylap13 NetworkManager[457]: <info>  [1601038142.4546] dhcp6 (enp0s20u2u4): dhclient started with pid 6862
set 25 14:49:03 mylap13 dhclient[6862]: XMT: Info-Request on enp0s20u2u4, interval 1020ms.
set 25 14:49:04 mylap13 dhclient[6862]: XMT: Info-Request on enp0s20u2u4, interval 2010ms.
set 25 14:49:06 mylap13 dhclient[6862]: XMT: Info-Request on enp0s20u2u4, interval 4170ms.
set 25 14:49:10 mylap13 dhclient[6862]: XMT: Info-Request on enp0s20u2u4, interval 8380ms.
set 25 14:49:18 mylap13 NetworkManager[457]: <info>  [1601038158.1160] audit: op="statistics" arg="refresh-rate-ms" pid=1125 uid=1000 result="success"
set 25 14:49:19 mylap13 dhclient[6862]: XMT: Info-Request on enp0s20u2u4, interval 17230ms.
set 25 14:49:36 mylap13 dhclient[6862]: XMT: Info-Request on enp0s20u2u4, interval 36160ms.
set 25 14:49:47 mylap13 NetworkManager[457]: <warn>  [1601038187.9852] dhcp6 (enp0s20u2u4): request timed out
set 25 14:49:47 mylap13 NetworkManager[457]: <info>  [1601038187.9852] dhcp6 (enp0s20u2u4): state changed unknown -> timeout
set 25 14:49:47 mylap13 NetworkManager[457]: <info>  [1601038187.9861] dhcp6 (enp0s20u2u4): canceled DHCP transaction, DHCP client pid 6862
set 25 14:49:47 mylap13 NetworkManager[457]: <info>  [1601038187.9861] dhcp6 (enp0s20u2u4): state changed timeout -> done


➜  ~ ifconfig -a
enp0s20u2u4: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.199  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::505e:a85d:a2fb:10ae  prefixlen 64  scopeid 0x20<link>
        ether 00:e0:4c:68:75:72  txqueuelen 1000  (Ethernet)
        RX packets 17258  bytes 17284140 (16.4 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 12522  bytes 1463864 (1.3 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 18  bytes 2244 (2.1 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 18  bytes 2244 (2.1 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlp2s0: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 06:a5:20:02:5c:03  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 19  

Thank you for your support!

It seems to be difficult to get this device to work, see here a similar case:

You could try the dkms version from AUR by first disconnecting the device and then

sudo pacman -Syyu bc dkms git base-devel pamac-cli --needed
sudo pacman -S $(ls /boot | awk -F "-" '/^linux/ { print $1"-headers" }')
pamac build r8152-dkms

Blacklist the kernel module by

echo "blacklist r8152" | sudo tee /etc/modprobe.d/r8152-blacklist.conf

and run

sudo depmod -a

sudo mkinitcpio -P

and finally reboot.

Thank you Wollie. I followed the procedure for the dkms driver installation but now there are no available wired connections. The driver is now usb-network:

➜  ~ inxi -N                                                                                                                      
Network:   Device-1: Broadcom and subsidiaries BCM4352 802.11ac Wireless Network Adapter driver: wl 
           Device-2: Realtek RTL8153 Gigabit Ethernet Adapter type: USB driver: usb-network

and the module should be installed, but it is not more listed as an interface:

➜  ~ dkms status
r8152, 2.13.20200712, 5.4.64-1-MANJARO, x86_64: installed (original_module exists)
r8152, 2.13.20200712, 5.8.6-1-MANJARO, x86_64: installed (original_module exists)

➜  ~ ifconfig -a
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 18  bytes 2244 (2.1 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 18  bytes 2244 (2.1 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlp2s0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 96:12:1b:89:87:e0  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 467
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 19  

Thank you

OK, let’s have a deeper look into your system. Please post output of:

uname -r
lsmod | sort
sudo rfkill list
lspci -knnvvv | grep -i net
hwinfo --netcard | grep -Ei "(speed|hotplug|model|status|cmd|file|detected|driver:)"
journalctl --no-pager -S "$(date +'%Y-%m-%d')" -u NetworkManager  | grep -i 'discon\|error\|seg\|fail\|broke\|warn\|change\|8152' 

Also, please check the other side of your network adapter (router etc.).

Here you go (note that now I’m using an external WiFi adapter (Ralink MT7601U Wireless Adapter) because the internal WiFi ( wlp2s0) does not work every time as well (the connection is not always successful but it is out of the scope of this thread):

➜  ~ lsmod | sort
ac                     16384  0
acpi_thermal_rel       16384  1 int3400_thermal
aesni_intel           372736  3
af_alg                 32768  6 algif_hash,algif_skcipher
agpgart                53248  2 intel_gtt,drm
algif_hash             16384  1
algif_skcipher         16384  1
atkbd                  36864  0
battery                20480  0
bluetooth             720896  43 btrtl,btintel,btbcm,bnep,btusb,rfcomm
bnep                   28672  2
btbcm                  20480  1 btusb
btintel                32768  1 btusb
btrtl                  24576  1 btusb
btusb                  65536  0
cdc_ether              24576  0
cec                    73728  2 drm_kms_helper,i915
cfg80211              913408  3 wl,mt7601u,mac80211
cmac                   16384  2
cmdlinepart            16384  0
coretemp               20480  0
crc16                  16384  2 bluetooth,ext4
crc32c_generic         16384  0
crc32c_intel           24576  2
crc32_pclmul           16384  0
crct10dif_pclmul       16384  1
cryptd                 24576  3 crypto_simd,ghash_clmulni_intel
crypto_simd            16384  1 aesni_intel
crypto_user            16384  0
dcdbas                 20480  1 dell_smbios
dell_laptop            28672  0
dell_smbios            32768  2 dell_wmi,dell_laptop
dell_smm_hwmon         24576  0
dell_wmi               20480  0
dell_wmi_descriptor    20480  2 dell_wmi,dell_smbios
drm                   589824  10 drm_kms_helper,i915
drm_kms_helper        262144  1 i915
ecc                    36864  1 ecdh_generic
ecdh_generic           16384  1 bluetooth
ehci_hcd               98304  1 ehci_pci
ehci_pci               20480  0
evdev                  28672  17
ext4                  802816  1
fb_sys_fops            16384  1 drm_kms_helper
fuse                  139264  7
ghash_clmulni_intel    16384  0
glue_helper            16384  1 aesni_intel
hid                   143360  7 i2c_hid,usbhid,hid_multitouch,hid_generic,hid_logitech_dj,hid_logitech_hidpp
hid_generic            16384  0
hid_logitech_dj        28672  0
hid_logitech_hidpp     49152  0
hid_multitouch         32768  0
i2c_algo_bit           16384  1 i915
i2c_hid                32768  0
i2c_i801               36864  0
i2c_smbus              20480  1 i2c_i801
i8042                  32768  1 dell_laptop
i915                 2641920  33
input_leds             16384  0
int3400_thermal        20480  0
int3402_thermal        16384  0
int3403_thermal        20480  0
int340x_thermal_zone    16384  3 int3403_thermal,int3402_thermal,processor_thermal_device
intel_cstate           16384  0
intel_gtt              24576  1 i915
intel_pch_thermal      16384  0
intel_pmc_bxt          16384  1 iTCO_wdt
intel_powerclamp       20480  0
intel_rapl_common      32768  2 intel_rapl_msr,processor_thermal_device
intel_rapl_msr         20480  0
intel_soc_dts_iosf     20480  1 processor_thermal_device
intel_spi              24576  1 intel_spi_platform
intel_spi_platform     16384  0
intel_uncore          163840  0
ip_tables              36864  0
irqbypass              16384  1 kvm
iTCO_vendor_support    16384  1 iTCO_wdt
iTCO_wdt               16384  0
jbd2                  139264  1 ext4
joydev                 28672  0
kvm                   847872  1 kvm_intel
kvm_intel             323584  0
ledtrig_audio          16384  3 snd_hda_codec_generic,snd_hda_codec_realtek,dell_laptop
libarc4                16384  1 mac80211
libps2                 20480  2 atkbd,psmouse
loop                   36864  4
lpc_ich                28672  0
mac80211             1048576  1 mt7601u
mac_hid                16384  0
mbcache                16384  1 ext4
mc                     61440  4 videodev,videobuf2_v4l2,uvcvideo,videobuf2_common
mei                   126976  3 mei_hdcp,mei_me
mei_hdcp               24576  0
mei_me                 49152  1
mii                    16384  1 usbnet
mmc_core              188416  1 rtsx_pci_sdmmc
Module                  Size  Used by
mousedev               24576  0
mt7601u               126976  0
mtd                    81920  6 spi_nor,cmdlinepart,intel_spi,ofpart
ofpart                 20480  0
pcspkr                 16384  0
processor_thermal_device    24576  0
psmouse               184320  0
rapl                   16384  0
rc_core                61440  1 cec
rfcomm                 90112  16
rfkill                 28672  10 bluetooth,dell_laptop,cfg80211
rng_core               16384  1 tpm
rtsx_pci               94208  1 rtsx_pci_sdmmc
rtsx_pci_sdmmc         32768  0
serio                  28672  6 serio_raw,atkbd,psmouse,i8042
serio_raw              20480  0
sg                     40960  0
snd                   114688  24 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm
snd_hda_codec         167936  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
snd_hda_codec_generic    98304  1 snd_hda_codec_realtek
snd_hda_codec_hdmi     73728  1
snd_hda_codec_realtek   139264  1
snd_hda_core          106496  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
snd_hda_intel          57344  6
snd_hrtimer            16384  1
snd_hwdep              16384  1 snd_hda_codec
snd_intel_dspcfg       24576  1 snd_hda_intel
snd_pcm               147456  4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
snd_seq                86016  7 snd_seq_dummy
snd_seq_device         16384  1 snd_seq
snd_seq_dummy          16384  0
snd_timer              45056  3 snd_seq,snd_hrtimer,snd_pcm
soundcore              16384  1 snd
sparse_keymap          16384  1 dell_wmi
spi_nor                73728  1 intel_spi
squashfs               69632  2
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
tpm                    77824  3 tpm_tis,tpm_crb,tpm_tis_core
tpm_crb                20480  0
tpm_tis                16384  0
tpm_tis_core           32768  1 tpm_tis
uinput                 20480  0
usbhid                 65536  1 hid_logitech_dj
usbnet                 53248  1 cdc_ether
uvcvideo              114688  0
videobuf2_common       57344  2 videobuf2_v4l2,uvcvideo
videobuf2_memops       20480  1 videobuf2_vmalloc
videobuf2_v4l2         28672  1 uvcvideo
videobuf2_vmalloc      20480  1 uvcvideo
videodev              274432  3 videobuf2_v4l2,uvcvideo,videobuf2_common
wl                   6467584  0
wmi                    36864  4 dell_wmi,wmi_bmof,dell_smbios,dell_wmi_descriptor
wmi_bmof               16384  0
x86_pkg_temp_thermal    20480  0
xhci_hcd              286720  1 xhci_pci
xhci_pci               20480  0
xhci_pci_renesas       20480  1 xhci_pci
x_tables               53248  1 ip_tables

.

➜  ~ dkms status
r8152, 2.13.20200712, 5.4.64-1-MANJARO, x86_64: installed (original_module exists)
r8152, 2.13.20200712, 5.8.6-1-MANJARO, x86_64: installed (original_module exists)

.

➜  ~ sudo rfkill list
0: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
1: hci0: Bluetooth
        Soft blocked: yes
        Hard blocked: no
2: phy1: Wireless LAN
        Soft blocked: no
        Hard blocked: no

.

➜  ~ lspci -knnvvv | grep -i net
02:00.0 Network controller [0280]: Broadcom Inc. and subsidiaries BCM4352 802.11ac Wireless Network Adapter [14e4:43b1] (rev 03)

.

➜  ~ hwinfo --netcard | grep -Ei "(speed|hotplug|model|status|cmd|file|detected|driver:)"
  Model: "Broadcom BCM4352 802.11ac Wireless Network Adapter"
  Driver: "wl"
  Device File: wlp2s0
  Link detected: yes
    Driver Status: bcma is not active
    Driver Activation Cmd: "modprobe bcma"
    Driver Status: wl is active
    Driver Activation Cmd: "modprobe wl"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Model: "Ralink MT7601U Wireless Adapter"
  Hotplug: USB
  Driver: "mt7601u"
  Device File: wlp0s20u2u1
  Speed: 480 Mbps
  Link detected: no
    Driver Status: mt7601u is active
    Driver Activation Cmd: "modprobe mt7601u"
  Config Status: cfg=new, avail=yes, need=no, active=unknown

.

➜  ~ journalctl --no-pager -S "$(date +'%Y-%m-%d')" -u NetworkManager  | grep -i 'discon\|error\|seg\|fail\|broke\|warn\|change\|8152' 
    set 25 20:47:19 mylap13 NetworkManager[422]: <info>  [1601059639.1681] hostname: hostname changed from (none) to "mylap13"
    set 25 20:47:19 mylap13 NetworkManager[422]: <info>  [1601059639.3927] device (wlp2s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
    set 25 20:47:19 mylap13 NetworkManager[422]: <info>  [1601059639.5195] device (wlp2s0): state change: unavailable -> disconnected (reason 'supplicant-available', sys-iface-state: 'managed')
    set 25 20:50:01 mylap13 NetworkManager[422]: <info>  [1601059801.0454] device (wlp2s0): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
    set 25 20:50:01 mylap13 NetworkManager[422]: <info>  [1601059801.0489] device (wlp2s0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
    set 25 20:50:01 mylap13 NetworkManager[422]: <info>  [1601059801.0495] device (wlp2s0): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed')
    set 25 20:50:01 mylap13 NetworkManager[422]: <info>  [1601059801.0761] device (wlp2s0): supplicant interface state: ready -> disconnected
    set 25 20:50:01 mylap13 NetworkManager[422]: <info>  [1601059801.0805] device (wlp2s0): supplicant interface state: disconnected -> inactive
    set 25 20:50:01 mylap13 NetworkManager[422]: <info>  [1601059801.1061] device (wlp2s0): state change: need-auth -> prepare (reason 'none', sys-iface-state: 'managed')
    set 25 20:50:01 mylap13 NetworkManager[422]: <info>  [1601059801.1069] device (wlp2s0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
    set 25 20:50:01 mylap13 NetworkManager[422]: <info>  [1601059801.3348] device (wlp2s0): supplicant interface state: associating -> disconnected
    set 25 20:50:23 mylap13 NetworkManager[422]: <info>  [1601059823.2372] device (wlp2s0): state change: config -> deactivating (reason 'user-requested', sys-iface-state: 'managed')
    set 25 20:50:23 mylap13 NetworkManager[422]: <info>  [1601059823.2386] manager: NetworkManager state is now DISCONNECTING
    set 25 20:50:23 mylap13 NetworkManager[422]: <info>  [1601059823.2404] audit: op="device-disconnect" interface="wlp2s0" ifindex=2 pid=1181 uid=1000 result="success"
    set 25 20:50:23 mylap13 NetworkManager[422]: <warn>  [1601059823.2613] device (wlp2s0): Deactivation failed: GDBus.Error:fi.w1.wpa_supplicant1.NotConnected: This interface is not connected
    set 25 20:50:23 mylap13 NetworkManager[422]: <info>  [1601059823.2614] device (wlp2s0): state change: deactivating -> disconnected (reason 'user-requested', sys-iface-state: 'managed')
    set 25 20:50:23 mylap13 NetworkManager[422]: <info>  [1601059823.2643] manager: NetworkManager state is now DISCONNECTED
    set 25 20:50:23 mylap13 NetworkManager[422]: <info>  [1601059823.3415] device (wlp2s0): supplicant interface state: disconnected -> inactive
    set 25 20:50:46 mylap13 NetworkManager[422]: <info>  [1601059846.6489] device (wlp2s0): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
    set 25 20:50:46 mylap13 NetworkManager[422]: <info>  [1601059846.6519] device (wlp2s0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
    set 25 20:50:46 mylap13 NetworkManager[422]: <info>  [1601059846.6529] device (wlp2s0): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed')
    set 25 20:50:46 mylap13 NetworkManager[422]: <info>  [1601059846.6843] device (wlp2s0): state change: need-auth -> prepare (reason 'none', sys-iface-state: 'managed')
    set 25 20:50:46 mylap13 NetworkManager[422]: <info>  [1601059846.6853] device (wlp2s0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
    set 25 20:51:11 mylap13 NetworkManager[422]: <warn>  [1601059871.9848] device (wlp2s0): Activation: (wifi) association took too long, failing activation
    set 25 20:51:11 mylap13 NetworkManager[422]: <info>  [1601059871.9849] device (wlp2s0): state change: config -> failed (reason 'ssid-not-found', sys-iface-state: 'managed')
    set 25 20:51:11 mylap13 NetworkManager[422]: <info>  [1601059871.9855] manager: NetworkManager state is now DISCONNECTED
    set 25 20:51:11 mylap13 NetworkManager[422]: <warn>  [1601059871.9871] device (wlp2s0): Activation: failed for connection 'TP-LINK_AFC0'
    set 25 20:51:11 mylap13 NetworkManager[422]: <info>  [1601059871.9872] device (wlp2s0): supplicant interface state: inactive -> disconnected
    set 25 20:51:11 mylap13 NetworkManager[422]: <info>  [1601059871.9876] device (wlp2s0): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed')
    set 25 20:51:12 mylap13 NetworkManager[422]: <info>  [1601059872.0125] device (wlp2s0): supplicant interface state: disconnected -> inactive
    set 25 20:51:22 mylap13 NetworkManager[422]: <info>  [1601059882.9243] device (wlp0s20u2u1): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
    set 25 20:51:23 mylap13 NetworkManager[422]: <info>  [1601059883.0339] device (wlp0s20u2u1): state change: unavailable -> disconnected (reason 'supplicant-available', sys-iface-state: 'managed')
    set 25 20:53:25 mylap13 NetworkManager[422]: <info>  [1601060005.0787] device (wlp0s20u2u1): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
    set 25 20:53:25 mylap13 NetworkManager[422]: <info>  [1601060005.1006] device (wlp0s20u2u1): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
    set 25 20:53:25 mylap13 NetworkManager[422]: <info>  [1601060005.1015] device (wlp0s20u2u1): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed')
    set 25 20:53:25 mylap13 NetworkManager[422]: <info>  [1601060005.1327] device (wlp0s20u2u1): state change: need-auth -> prepare (reason 'none', sys-iface-state: 'managed')
    set 25 20:53:25 mylap13 NetworkManager[422]: <info>  [1601060005.1340] device (wlp0s20u2u1): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
    set 25 20:53:26 mylap13 NetworkManager[422]: <info>  [1601060006.4621] device (wlp0s20u2u1): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed')
    set 25 20:53:27 mylap13 NetworkManager[422]: <info>  [1601060007.0227] dhcp4 (wlp0s20u2u1): state changed unknown -> bound
    set 25 20:53:27 mylap13 NetworkManager[422]: <info>  [1601060007.0241] device (wlp0s20u2u1): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'managed')
    set 25 20:53:27 mylap13 NetworkManager[422]: <info>  [1601060007.0440] device (wlp0s20u2u1): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed')
    set 25 20:53:27 mylap13 NetworkManager[422]: <info>  [1601060007.0445] device (wlp0s20u2u1): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')

Thank you so much

Are you using tlp? You could try to temporary stop and uninstall it by

sudo systemctl disable --now tlp
sudo systemctl mask tlp
sudo pacman -Rs tlp

This is only to test if your issue is linked to tlp. If yes, then you need to find the right tlp settings. I would not use the system completely without it. If it’s not helping reinstall tlp.

It could be an option to blacklist your device from tlp though. With lsusb you should be able to find your device ID.

Have you tried other kernels?

1 Like

I never used tlp, is it enabled by default?
I have tested the 5.4, 5.6, and 5.8 kernel but the same problem occurs.

Now I have removed the dkms driver and renabled the default driver (r8152). Then I have disabled and removed tlp as you suggested.

I will try it out and I will update you. Thank you Wollie.

Hello Wollie,
I suppose that the problem was caused by TLP because now the connection is working correctly :slightly_smiling_face:

Thank for your help!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.