WiFi Disconnects Periodically, Opening and Closing Lid Makes it Work Again

Questions about WIFI networks and devices
Forum rules
Before you post please read how to get help
Post Reply
muradulislam
Level 1
Level 1
Posts: 6
Joined: Sun Jul 22, 2018 3:21 am

WiFi Disconnects Periodically, Opening and Closing Lid Makes it Work Again

Post by muradulislam » Sun Jul 22, 2018 5:27 am

Hi there,

My WiFi keeps disconnecting after a random amount of time. Closing and Opening the Lid makes it work again. My system is Haier Y11b, Linux Mint 19 with Cinnamon Desktop.

Code: Select all

murad@murad-Y11B:~$ inxi -Fxz
System:    Host: murad-Y11B Kernel: 4.15.0-29-generic x86_64
           bits: 64 gcc: 7.3.0
           Desktop: Cinnamon 3.8.8 (Gtk 3.22.30-1ubuntu1)
           Distro: Linux Mint 19 Tara
Machine:   Device: laptop System: Haier product: Y11B serial: N/A
           Mobo: Haier model: Y11B serial: N/A
           UEFI: American Megatrends v: 5.011 date: 06/30/2016
Battery    BAT0: charge: 46.0 Wh 99.9% condition: 46.0/47.0 Wh (98%)
           model: Intel SR 1 SR Real status: Full
CPU:       Dual core Intel Core M-5Y10c (-MT-MCP-) 
           arch: Broadwell rev.4 cache: 4096 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 3990
           clock speeds: max: 2000 MHz 1: 1698 MHz 2: 1557 MHz 3: 1206 MHz
           4: 1227 MHz
Graphics:  Card: Intel HD Graphics 5300 bus-ID: 00:02.0
           Display Server: x11 (X.Org 1.19.6 )
           drivers: modesetting (unloaded: fbdev,vesa)
           Resolution: 1366x768@60.01hz
           OpenGL: renderer: Mesa DRI Intel HD Graphics 5300 (Broadwell GT2)
           version: 4.5 Mesa 18.0.5 Direct Render: Yes
Audio:     Card-1 Intel Broadwell-U Audio Controller
           driver: snd_hda_intel bus-ID: 00:03.0
           Card-2 Intel Wildcat Point-LP High Def. Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0
           Sound: Advanced Linux Sound Architecture v: k4.15.0-29-generic
Network:   Card: Failed to Detect Network Card!
Drives:    HDD Total Size: 532.1GB (4.4% used)
           ID-1: /dev/sda model: KINGSTON_RBU size: 32.0GB
           ID-2: USB /dev/sdb model: 12 size: 500.1GB
Partition: ID-1: / size: 29G used: 14G (52%) fs: ext4 dev: /dev/sda2
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 52.0C mobo: 29.8C
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 235 Uptime: 26 min Memory: 1543.3/3861.0MB
           Init: systemd runlevel: 5 Gcc sys: 7.3.0
           Client: Shell (bash 4.4.191) inxi: 2.3.56 

User avatar
kc1di
Level 13
Level 13
Posts: 4569
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: WiFi Disconnects Periodically, Opening and Closing Lid Makes it Work Again

Post by kc1di » Sun Jul 22, 2018 6:07 am

Please do this command when card is working:

Code: Select all

inxi -Nn
and post the output.

The command in a terminal may restart the card without having to close the lid

Code: Select all

systemctl restart NetworkManager
Easy tips : https://sites.google.com/site/easylinuxtipsproject/
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608

muradulislam
Level 1
Level 1
Posts: 6
Joined: Sun Jul 22, 2018 3:21 am

Re: WiFi Disconnects Periodically, Opening and Closing Lid Makes it Work Again

Post by muradulislam » Sun Jul 22, 2018 7:22 am

Code: Select all

$ inxi -Nn
Network:   Card: Failed to Detect Network Card!
The card before, during and after this command was working.
When the disconnection does happen, no WiFi networks are visible at that time.
After 10, 15 minutes, when it stopped working, running the command

Code: Select all

systemctl restart NetworkManager
made it try 3, 4 times to connect to the network but it kept getting failed somehow. Tried this command two times and it found WiFi, tried 3,4 times, didn't connect. Closing and opening the lid connected it again.

Thanks a lot for the help and such a lengthy story just so everything is clear.
Last edited by muradulislam on Sun Jul 22, 2018 7:38 am, edited 1 time in total.

JeremyB
Level 18
Level 18
Posts: 8827
Joined: Fri Feb 21, 2014 8:17 am

Re: WiFi Disconnects Periodically, Opening and Closing Lid Makes it Work Again

Post by JeremyB » Sun Jul 22, 2018 7:35 am

What is the result for

Code: Select all

lsmod | grep cfg

muradulislam
Level 1
Level 1
Posts: 6
Joined: Sun Jul 22, 2018 3:21 am

Re: WiFi Disconnects Periodically, Opening and Closing Lid Makes it Work Again

Post by muradulislam » Sun Jul 22, 2018 7:40 am

Code: Select all

lsmod | grep cfg
cfg80211              622592  2 8723bu,mac80211

muradulislam
Level 1
Level 1
Posts: 6
Joined: Sun Jul 22, 2018 3:21 am

Re: WiFi Disconnects Periodically, Opening and Closing Lid Makes it Work Again

Post by muradulislam » Sun Jul 22, 2018 7:50 pm

Using

Code: Select all

systemctl restart networkmanager
while connected disconnects and no WiFi Shows in Network Settings. Turning WiFi on and off has no effect. Turning WiFi off, closing and opening lid, turning WiFi on has no effect. Keeping WiFi on, closing and opening the lid immediately connects again.

Also when it periodically disconnects, No WiFi is visible in Network settings. Hope this helps in identifying the problem.

Thanks

User avatar
kc1di
Level 13
Level 13
Posts: 4569
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: WiFi Disconnects Periodically, Opening and Closing Lid Makes it Work Again

Post by kc1di » Mon Jul 23, 2018 6:08 am

Before we can give you much help with this we will need to know what wireless card is in use?
Lets at least see what driver is being used. list the ouput of

Code: Select all

sudo lshw -C network
Easy tips : https://sites.google.com/site/easylinuxtipsproject/
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608

muradulislam
Level 1
Level 1
Posts: 6
Joined: Sun Jul 22, 2018 3:21 am

Re: WiFi Disconnects Periodically, Opening and Closing Lid Makes it Work Again

Post by muradulislam » Thu Jul 26, 2018 10:35 am

I want to be Windows free but this problem is making me go dual boot.

Anyways, Thanks for the help. Here is the output.

Code: Select all

sudo lshw -C network
[sudo] password for murad: 
  *-network                 
       description: Wireless interface
       physical id: 2
       bus info: usb@1:5
       logical name: wlxcc79cfd68ac4
       serial: cc:79:cf:d6:8a:c4
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=rtl8xxxu driverversion=4.15.0-29-generic firmware=N/A ip=192.168.10.7 link=yes multicast=yes wireless=IEEE 802.11

muradulislam
Level 1
Level 1
Posts: 6
Joined: Sun Jul 22, 2018 3:21 am

Re: WiFi Disconnects Periodically, Opening and Closing Lid Makes it Work Again

Post by muradulislam » Fri Jul 27, 2018 1:40 am

In Windows Device manager, it shows as

Realtek RTL8723B Wireless LAN 802.11n USB 2.0 network adapter.

gm10
Level 7
Level 7
Posts: 1553
Joined: Thu Jun 21, 2018 5:11 pm

Re: WiFi Disconnects Periodically, Opening and Closing Lid Makes it Work Again

Post by gm10 » Fri Jul 27, 2018 3:57 am

muradulislam wrote:
Sun Jul 22, 2018 7:40 am

Code: Select all

lsmod | grep cfg
cfg80211              622592  2 8723bu,mac80211
Try this, see if it remains stable:

Code: Select all

sudo modprobe -r 8723bu
sudo modprobe 8723bu rtw_ips_mode=0 rtw_power_mgnt=0 rtw_low_power=1 rtw_ht_enable=0
This is a temporary change that clears on reboot/resume. If it works we can make it permanent.

Post Reply

Return to “Wireless”