Wifi drops/reconnects randomly Realtek RTL8188CUS

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
hunkerdunker
Level 1
Level 1
Posts: 46
Joined: Wed May 13, 2015 5:24 pm
Location: Tauranga, New Zealand

Wifi drops/reconnects randomly Realtek RTL8188CUS

Post by hunkerdunker »

I have two that are doing this on Mint 17.3

Code: Select all

inxi -iFxz
System:    Host: john-linux Kernel: 3.13.0-37-generic x86_64 (64 bit gcc: 4.8.2)
           Desktop: Cinnamon 2.8.8 (Gtk 3.10.8~8+qiana) Distro: Linux Mint 17.3 Rosa
Machine:   System: Gigabyte product: N/A
           Mobo: Gigabyte model: F2A88X-D3HP v: x.x Bios: American Megatrends v: F2 date: 12/24/2015
CPU:       Quad core AMD A10-7700K Radeon R7 10 Compute Cores 4C+6G (-MCP-) cache: 8192 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm) bmips: 27152
           clock speeds: max: 3400 MHz 1: 1900 MHz 2: 1900 MHz 3: 1900 MHz 4: 2400 MHz
Graphics:  Card: Advanced Micro Devices [AMD/ATI] Kaveri [Radeon R7 Graphics] bus-ID: 00:01.0
           Display Server: X.org 1.15.1 drivers: ati,radeon (unloaded: fbdev,vesa)
           tty size: 145x48 Advanced Data: N/A for root
Audio:     Card-1 Advanced Micro Devices [AMD] FCH Azalia Controller driver: snd_hda_intel bus-ID: 00:14.2
           Card-2 Advanced Micro Devices [AMD/ATI] Kaveri HDMI/DP Audio Controller
           driver: snd_hda_intel bus-ID: 00:01.1
           Sound: Advanced Linux Sound Architecture v: k3.13.0-37-generic
Network:   Card-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
           driver: r8169 v: 2.3LK-NAPI port: e000 bus-ID: 02:00.0
           IF: eth1 state: down mac: <filter>
           Card-2: Broadcom BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller driver: wl bus-ID: 03:06.0
           IF: N/A state: N/A mac: N/A
           Card-3: Edimax EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
           driver: rtl8192cu usb-ID: 001-003
           IF: wlan0 state: N/A mac: N/A
Drives:    HDD Total Size: 3120.6GB (42.6% used) ID-1: /dev/sda model: INTEL_SSDSC2CT12 size: 120.0GB temp: 0C
           ID-2: /dev/sdb model: WDC_WD30EZRX size: 3000.6GB temp: 29C
Partition: ID-1: / size: 19G used: 9.1G (51%) fs: ext4 dev: /dev/sda6
           ID-2: /home size: 58G used: 36G (65%) fs: ext4 dev: /dev/sda8
           ID-3: swap-1 size: 16.00GB used: 0.74GB (5%) fs: swap dev: /dev/sda7
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 4.4C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 226 Uptime: 23:52 Memory: 12594.2/14920.8MB Init: Upstart runlevel: 2 Gcc sys: 4.8.4
           Client: Shell (bash 4.3.111) inxi: 2.2.28

Code: Select all

john@john-linux ~ $ rfkill list all
0: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no

Code: Select all

john@john-linux ~ $ inxi -Nn
Network:   Card-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller driver: r8169
           IF: eth1 state: down mac: 1c:1b:0d:66:a5:d0
           Card-2: Broadcom BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller driver: wl
           IF: N/A state: N/A mac: N/A
           Card-3: Edimax EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS] driver: rtl8192cu
           IF: wlan0 state: N/A mac: N/A

I have already tried

Code: Select all

sudo iwconfig wlan0 power off
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
JeremyB
Level 21
Level 21
Posts: 13771
Joined: Fri Feb 21, 2014 8:17 am

Re: Wifi drops/reconnects randomly Realtek RTL8188CUS

Post by JeremyB »

We can get the internal working with

Code: Select all

sudo apt-get update && sudo apt-get remove bcmwl-kernel-source && sudo apt-get install firmware-b43-installer
Reboot

For the USB device

Code: Select all

sudo apt-get install git build-essential linux-headers-generic

Code: Select all

git clone https://github.com/pvaret/rtl8192cu-fixes.git

Code: Select all

cd rtl8192cu-fixes

Code: Select all

make

Code: Select all

sudo make install

Code: Select all

sudo cp ./rtl8192cu-fixes/8192cu-disable-power-management.conf /etc/modprobe.d/

Code: Select all

sudo cp ./rtl8192cu-fixes/blacklist-native-rtl8192.conf /etc/modprobe.d/

Code: Select all

sudo depmod -a
Reboot
User avatar
hunkerdunker
Level 1
Level 1
Posts: 46
Joined: Wed May 13, 2015 5:24 pm
Location: Tauranga, New Zealand

Re: Wifi drops/reconnects randomly Realtek RTL8188CUS

Post by hunkerdunker »

Thanks!
I don't know how you know how to do all that, but glad someone knows :o

One more request, laptop with the same problem, or should I create a new thread?

Code: Select all

~/Desktop $ inxi -iFxz 
System:    Host: lenovo Kernel: 4.4.0-66-generic x86_64 (64 bit gcc: 5.4.0)
           Desktop: Cinnamon 3.2.7 (Gtk 3.18.9-1ubuntu3.2)
           Distro: Linux Mint 18.1 Serena
Machine:   System: LENOVO product: 80WG v: Lenovo ideapad 110S-11IBR
           Mobo: LENOVO model: Kant v: SDK0J91117 WIN
           Bios: LENOVO v: 4HCN07WW date: 08/11/2016
CPU:       Dual core Intel Celeron N3060 (-MCP-) cache: 1024 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 6400
           clock speeds: max: 2480 MHz 1: 1106 MHz 2: 1358 MHz
Graphics:  Card: Intel Device 22b1 bus-ID: 00:02.0
           Display Server: X.Org 1.18.4 drivers: intel (unloaded: fbdev,vesa)
           Resolution: 1366x768@60.00hz
           GLX Renderer: Mesa DRI Intel HD Graphics (Cherryview)
           GLX Version: 3.0 Mesa 11.2.0 Direct Rendering: Yes
Audio:     Card Intel Device 2284 driver: snd_hda_intel bus-ID: 00:1b.0
           Sound: Advanced Linux Sound Architecture v: k4.4.0-66-generic
Network:   Card: Realtek RTL8821AE 802.11ac PCIe Wireless Network Adapter
           driver: rtl8821ae port: 1000 bus-ID: 03:00.0
           IF: wlp3s0 state: up mac: <filter>
           WAN IP: <filter> IF: wlp3s0 ip-v4: <filter> ip-v6: <filter>
           IF: wlp3s0.0@wlp3s0 ip-v4: N/A ip-v6: N/A
Drives:    HDD Total Size: NA (-) ID-1: /dev/mmcblk0 model: N/A size: 31.3GB
Partition: ID-1: / size: 27G used: 9.3G (38%) fs: ext4 dev: /dev/mmcblk0p2
           ID-2: swap-1 size: 1.99GB used: 0.64GB (32%) fs: swap dev: /dev/dm-0
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 32.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 230 Uptime: 1 day Memory: 1128.0/1849.1MB
           Init: systemd runlevel: 5 Gcc sys: 5.4.0
           Client: Shell (bash 4.3.461) inxi: 2.2.35 

Code: Select all

~/Desktop $ rfkill list all
0: ideapad_wlan: Wireless LAN
	Soft blocked: no
	Hard blocked: no
1: ideapad_bluetooth: Bluetooth
	Soft blocked: no
	Hard blocked: no
3: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
5: hci0: Bluetooth
	Soft blocked: no
	Hard blocked: no

Code: Select all

~/Desktop $ inxi -Nn
Network:   Card: Realtek RTL8821AE 802.11ac PCIe Wireless Network Adapter
           driver: rtl8821ae
           IF: wlp3s0 state: up mac: 78:45:61:f0:fc:8f
User avatar
Pjotr
Level 23
Level 23
Posts: 19878
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Wifi drops/reconnects randomly Realtek RTL8188CUS

Post by Pjotr »

RTL8821AE: try the rtlwifi_new driver from lwfinger:
https://sites.google.com/site/easylinux ... m-lwfinger
(item 9, right column)
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
User avatar
hunkerdunker
Level 1
Level 1
Posts: 46
Joined: Wed May 13, 2015 5:24 pm
Location: Tauranga, New Zealand

Re: Wifi drops/reconnects randomly Realtek RTL8188CUS

Post by hunkerdunker »

OK, applying fixes. Thanks! We'll see how it goes :mrgreen:
Zahus

Re: Wifi drops/reconnects randomly Realtek RTL8188CUS

Post by Zahus »

hunkerdunker wrote:OK, applying fixes. Thanks! We'll see how it goes :mrgreen:
Update us with an information whether it worked or not.
Locked

Return to “Networking”