Page 1 of 1

Wifi Keeps Disconnecting

Posted: Thu Aug 13, 2020 8:01 pm
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.

Re: Wifi Keeps Disconnecting

Posted: Thu Aug 13, 2020 9:37 pm
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?

Re: Wifi Keeps Disconnecting

Posted: Tue Aug 25, 2020 4:29 pm
by SrOlaff
Disabling IPV6 didn't work, do you any other thing i can do?

Re: Wifi Keeps Disconnecting

Posted: Tue Aug 25, 2020 4:44 pm
by JeremyB
Post results for

Code: Select all

lsusb

Re: Wifi Keeps Disconnecting

Posted: Tue Aug 25, 2020 4:49 pm
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

Re: Wifi Keeps Disconnecting

Posted: Tue Aug 25, 2020 6:18 pm
by Pjotr

Re: Wifi Keeps Disconnecting

Posted: Tue Aug 25, 2020 6:32 pm
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


Re: Wifi Keeps Disconnecting

Posted: Tue Aug 25, 2020 6:34 pm
by Pjotr
Did you disable Secure Boot in the BIOS, like the how-to says?

Re: Wifi Keeps Disconnecting

Posted: Tue Aug 25, 2020 6:41 pm
by SrOlaff
Secure Boot wasn't enabled, didn't had to change it

Re: Wifi Keeps Disconnecting

Posted: Tue Aug 25, 2020 9:49 pm
by sleeper12
Did you restart router/modem? You can also try:

Code: Select all

 sudo systemctl restart network-manager.service 

Re: Wifi Keeps Disconnecting

Posted: Thu Aug 27, 2020 9:02 pm
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.

Re: Wifi Keeps Disconnecting

Posted: Thu Aug 27, 2020 9:22 pm
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

Re: Wifi Keeps Disconnecting

Posted: Tue Sep 15, 2020 11:36 pm
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.

Re: Wifi Keeps Disconnecting

Posted: Wed Sep 16, 2020 8:15 am
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 ;-)