Wifi Keeps Disconnecting

Questions about cabled networking
Forum rules
Before you post please read how to get help
Post Reply
SrOlaff
Level 1
Level 1
Posts: 7
Joined: Thu Aug 13, 2020 7:50 pm

Wifi Keeps Disconnecting

Post by SrOlaff »

My wifi keeps disconnecting, the power management is already turned off, there's no block with the wireless connection
The output for sudo inxi -Nn is:

Network:
Message: No Device data found.
Device-1: Realtek RTL8152 Fast Ethernet Adapter type: USB driver: r8152
IF: enx00e04c3a9572 state: down mac: 00:e0:4c:3a:95:72
Device-2: Realtek 802.11n WLAN Adapter type: USB driver: btusb,rtl8xxxu
IF: wlxac35eec2c59c state: up mac: ac:35:ee:c2:c5:9c

The output for iwconfig is:

wlxac35eec2c59c IEEE 802.11 ESSID:"JR TELECOM - PEDRO"
Mode:Managed Frequency:2.412 GHz Access Point: 70:C7:F2:3E:6D:A8
Bit Rate=1 Mb/s Tx-Power=20 dBm
Retry short limit:7 RTS thr=2347 B Fragment thr:off
Power Management:off
Link Quality=64/70 Signal level=-46 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:8568 Missed beacon:0

lo no wireless extensions.

enx00e04c3a9572 no wireless extensions.
sleeper12
Level 12
Level 12
Posts: 4237
Joined: Thu May 25, 2017 3:22 pm

Re: Wifi Keeps Disconnecting

Post by sleeper12 »

Shut the machine down & restart the router. If that's no help, try disable IPv6:
https://easylinuxtipsproject.blogspot.c ... html#ID2.2

Also, does your wifi connection improve if you disable Bluetooth?
SrOlaff
Level 1
Level 1
Posts: 7
Joined: Thu Aug 13, 2020 7:50 pm

Re: Wifi Keeps Disconnecting

Post by SrOlaff »

Disabling IPV6 didn't work, do you any other thing i can do?
JeremyB
Level 20
Level 20
Posts: 11701
Joined: Fri Feb 21, 2014 8:17 am

Re: Wifi Keeps Disconnecting

Post by JeremyB »

Post results for

Code: Select all

lsusb
SrOlaff
Level 1
Level 1
Posts: 7
Joined: Thu Aug 13, 2020 7:50 pm

Re: Wifi Keeps Disconnecting

Post by SrOlaff »

lsusb:

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 0bda:b720 Realtek Semiconductor Corp. 802.11n WLAN Adapter
Bus 001 Device 007: ID 0bda:8152 Realtek Semiconductor Corp. RTL8152 Fast Ethernet Adapter
Bus 001 Device 006: ID 275d:0ba6
Bus 001 Device 005: ID 0951:1643 Kingston Technology DataTraveler G3
Bus 001 Device 003: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
User avatar
Pjotr
Level 22
Level 22
Posts: 15553
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: Wifi Keeps Disconnecting

Post by Pjotr »

Tip: 10 things to do after installing Linux Mint 20 Ulyana
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
SrOlaff
Level 1
Level 1
Posts: 7
Joined: Thu Aug 13, 2020 7:50 pm

Re: Wifi Keeps Disconnecting

Post by SrOlaff »

i tried this method but with the proper drivers of my wireless card, this was the error that i received when i tried to install the module

Code: Select all

 sudo make install
[sudo] senha para pedro:     
make -C /lib/modules/5.4.0-42-generic/build M=/home/pedro/realtek-r8152-linux-master INSTALL_MOD_DIR=kernel/drivers/net/usb modules_install
make[1]: Entrando no diretório '/usr/src/linux-headers-5.4.0-42-generic'
  INSTALL /home/pedro/realtek-r8152-linux-master/r8152.ko
At main.c:160:
- SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:69
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:76
sign-file: certs/signing_key.pem: No such file or directory
  DEPMOD  5.4.0-42-generic
Warning: modules_install: missing 'System.map' file. Skipping depmod.
make[1]: Saindo do diretório '/usr/src/linux-headers-5.4.0-42-generic'
modprobe r8152

User avatar
Pjotr
Level 22
Level 22
Posts: 15553
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: Wifi Keeps Disconnecting

Post by Pjotr »

Did you disable Secure Boot in the BIOS, like the how-to says?
Tip: 10 things to do after installing Linux Mint 20 Ulyana
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
SrOlaff
Level 1
Level 1
Posts: 7
Joined: Thu Aug 13, 2020 7:50 pm

Re: Wifi Keeps Disconnecting

Post by SrOlaff »

Secure Boot wasn't enabled, didn't had to change it
sleeper12
Level 12
Level 12
Posts: 4237
Joined: Thu May 25, 2017 3:22 pm

Re: Wifi Keeps Disconnecting

Post by sleeper12 »

Did you restart router/modem? You can also try:

Code: Select all

 sudo systemctl restart network-manager.service 
SrOlaff
Level 1
Level 1
Posts: 7
Joined: Thu Aug 13, 2020 7:50 pm

Re: Wifi Keeps Disconnecting

Post by SrOlaff »

when the wi-fi connection drops
i have to manually turn off and on to be able to connect again, it's a similar process to what this code do, i tried and process remains the same, i fear having to go back to windows because of this problem.
sleeper12
Level 12
Level 12
Posts: 4237
Joined: Thu May 25, 2017 3:22 pm

Re: Wifi Keeps Disconnecting

Post by sleeper12 »

If no solution is found, you can always use a usb wifi adapter that works out of the box. Here's one Pjotr likes:
https://www.amazon.com/dp/B008IFXQFU/re ... nkCode=asn
SrOlaff
Level 1
Level 1
Posts: 7
Joined: Thu Aug 13, 2020 7:50 pm

Re: Wifi Keeps Disconnecting

Post by SrOlaff »

After weeks trying to figure out how to solve this problem i just gave up, i'm using an option on my phone named "USB tethering", basically you plug your phone with a USB cable in your PC and your phone will provide internet connection to your PC, it is working for me until now.
Halbarad
Level 1
Level 1
Posts: 28
Joined: Tue Feb 05, 2019 2:30 pm

Re: Wifi Keeps Disconnecting

Post by Halbarad »

Hi, I had similar problems with my Realtek card and Mint, but with another driver (r8169). I spent a lot of time searching the web and trying to understand. Some people get good results when they unload and reload the module. You might just give it a shot:

Code: Select all

# modprobe -r r8152
# modprobe r8152
In case there is an indirect dependency on the "realtek" phy driver that breaks down for some obscure reason, you might also try:

Code: Select all

# modprobe realtek
# modprobe -r r8152
# modprobe r8152
It doesn't do any harm, there is a remote possibility it may help ;-)
Post Reply

Return to “Ethernet”