Wifi keeps disconnection

I am using ASUS-TUF-Gaming-F15-FX506HC. When I start the laptop the wifi works for some minutes then it doesn't work. Sometimes I cannot see the wifi options. Please help and thanks in advance.

- lshw -C network
*-network                 
       description: Network controller
       product: Intel Corporation
       vendor: Intel Corporation
       physical id: 14.3
       bus info: pci@0000:00:14.3
       version: 11
       width: 64 bits
       clock: 33MHz
       capabilities: bus_master cap_list
       configuration: driver=iwlwifi latency=0
       resources: iomemory:610-60f irq:19 memory:612f28c000-612f28ffff
  *-network
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:2d:00.0
       logical name: enp45s0
       version: 15
       serial: 7c:10:c9:8f:c3:03
       size: 1Gbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=5.15.0-67-generic duplex=full firmware=rtl8168h-2_0.0.2 02/26/15 ip=192.168.212.106 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
       resources: irq:18 ioport:3000(size=256) memory:86204000-86204fff memory:86200000-86203fff
1 Like

You mean that they disappear from taskbar menu or settings window :flushed:?

Yes, it disappears from the taskbar menu. And also from the setting window.

1 Like

ya GIF
Never heard such thing, but I hope there's a terminal command out there to refresh Wi-Fi settings, I don't think you need to apply the command for settings window as this looks limited to Wi-Fi. I searched wi-fi refresh command for linux on Google and found some commands but never apply commands without a reverse command that restore previous state, just for safety, you risk getting more problems than actual ones.

- lshw -C network
*-network                 
       description: Network controller
       product: Intel Corporation
       vendor: Intel Corporation
       physical id: 14.3
       bus info: pci@0000:00:14.3
       version: 11
       width: 64 bits
       clock: 33MHz
       capabilities: bus_master cap_list
       configuration: driver=iwlwifi latency=0
       resources: iomemory:610-60f irq:19 memory:612f28c000-612f28ffff
  *-network
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:2d:00.0
       logical name: enp45s0
       version: 15
       serial: 7c:10:c9:8f:c3:03
       size: 1Gbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=5.15.0-67-generic duplex=full firmware=rtl8168h-2_0.0.2 02/26/15 ip=192.168.212.106 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
       resources: irq:18 ioport:3000(size=256) memory:86204000-86204fff memory:86200000-86203fff

You could try sudo apt install build-essentials or head over to realtek r8168 driver compile errors on kernel 5.8.0-50, (On 20.04.1 LTS) - Ask Ubuntu and use the answer with the bold text, 2 upvotes... starts: 06 Dec 2021: Updating answer for version...

Still, the issue persists.

Hello,

Sorry you're having problems. I'd like to get a bit more info if possible:

when the problem occurs open a terminal
ctrl-alt-t
and type
journalctl -xe
review and share the output of this in-post, it may hold some of the answers, but more information is not a bad thing.

I also wanted to know, when this happens does all internet traffic go away?
try running a simple ping command in the background to a reliable source, as well as to your local interface.
open a few more terminals:
ctrl-alt-t
and then run(one per terminal)
ping 1.1.1.1
and the ip address of the interface in question:
ping [YOUR-IP-HERE]

Good luck

1 Like

Sorry for the late reply, Here are the outputs,
journalctl -xe:

Subject: A start job for unit UNIT has finished successfully
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- A start job for unit UNIT has finished successfully.
-- 
-- The job identifier is 671.
এপ্রিল 02 18:29:50 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC systemd[1657]: gnome-launched-x-terminal-emulator-10090.scope: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- The unit UNIT has successfully entered the 'dead' state.
এপ্রিল 02 18:29:50 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC kernel: iwlwifi 0000:00:14.3: Not associated and the session protection is over already...
এপ্রিল 02 18:29:50 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC kernel: wlo1: Connection to AP 98:0d:67:ad:25:b6 lost
এপ্রিল 02 18:29:50 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC kernel: wlo1: send auth to 98:0d:67:ad:25:b6 (try 3/3)
এপ্রিল 02 18:29:51 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC kernel: wlo1: authentication with 98:0d:67:ad:25:b6 timed out
এপ্রিল 02 18:29:51 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC kernel: iwlwifi 0000:00:14.3: Not associated and the session protection is over already...
এপ্রিল 02 18:29:51 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC wpa_supplicant[819]: wlo1: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="Zyxelad25b4.speed" auth_failures=2 duration=20 reason=CONN_FAILED
এপ্রিল 02 18:29:51 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC kernel: wlo1: Connection to AP 00:00:00:00:00:00 lost
এপ্রিল 02 18:29:51 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC NetworkManager[767]: <info>  [1680438591.8442] device (wlo1): supplicant interface state: authenticating -> disconnected
এপ্রিল 02 18:29:51 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC NetworkManager[767]: <info>  [1680438591.8443] device (p2p-dev-wlo1): supplicant management interface state: authenticating -> disconnected

ping 103.112.52.56:

PING 103.112.52.56 (103.112.52.56) 56(84) bytes of data.
64 bytes from 103.112.52.56: icmp_seq=1 ttl=64 time=0.853 ms
64 bytes from 103.112.52.56: icmp_seq=2 ttl=64 time=0.684 ms
64 bytes from 103.112.52.56: icmp_seq=3 ttl=64 time=0.838 ms
64 bytes from 103.112.52.56: icmp_seq=4 ttl=64 time=0.291 ms
64 bytes from 103.112.52.56: icmp_seq=5 ttl=64 time=1.58 ms
64 bytes from 103.112.52.56: icmp_seq=6 ttl=64 time=0.836 ms
64 bytes from 103.112.52.56: icmp_seq=7 ttl=64 time=0.834 ms

I'm confused as the journalctl shows a clear disconnect from wireless, however the ping shows no packets dropped. Is this machine hard wired in as well?

I'm curious about a few of the logs as well the driver in use currently.

Ensure your system is up to date:
sudo apt update
sudo apt upgrade

It would appear that the driver version in use is outdated, however feedback also shown here is that upgrading the driver to a newer version may help.

I note that you are running:
driver=r8169 driverversion=5.15.0-67-generic

I would suggest removing this one, and installing the following to test, be sure to record any steps taken and relevant information about the driver being removed in case it does not work as intended.

sudo apt install r8168-dkms

I look forward to hearing back

Currently, I am using the ethernet connection with my device as I cannot use the wifi. And installing the recommended package did not resolve the issue.

Can you please confirm with modprobe please, I'm very interested to see what the specific driver is.

as well on boot or during the error, is there anything shown from dmesg that might shed some light on this?

$ modinfo nvidia | grep -i version
version:        525.89.02
srcversion:     69F13CB2D672206B92569AB
vermagic:       5.15.0-69-generic SMP mod_unload modversions 
shamim@shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC:~$ 

I haven't noticed anything while boot.


This is the current setting window.

I do believe you will need to verify the driver has loaded for that device by doing:
hwinfo --netcard | grep -i WLAN -A10 | grep -i driver
If you would share the output of that, or if it fails to provide the driver the output would still be helpful.

From that output you should see the modprobe <<driver>>, please also share the output of:
dmesg | grep -i '<<driver>>' replacing <> with the one from above please.

given the output shared I don't believe the driver has loaded.

hwinfo --netcard | grep -i WLAN -A10 | grep -i driver
This does not show anything on the terminal.

apologies, try this on it's own
hwinfo --netcard

12: PCI 14.3: 0282 WLAN controller                              
  [Created at pci.386]
  Unique ID: S6TQ.asdwFJRtth9
  SysFS ID: /devices/pci0000:00/0000:00:14.3
  SysFS BusID: 0000:00:14.3
  Hardware Class: network
  Device Name: "Onboard - Ethernet"
  Model: "Intel WLAN controller"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0x43f0 
  SubVendor: pci 0x8086 "Intel Corporation"
  SubDevice: pci 0x0074 
  Revision: 0x11
  Driver: "iwlwifi"
  Driver Modules: "iwlwifi"
  Device File: wlo1
  Features: WLAN
  Memory Range: 0x612f28c000-0x612f28ffff (rw,non-prefetchable)
  IRQ: 19 (no events)
  HW Address: f8:5e:a0:15:f3:83
  Permanent HW Address: f8:5e:a0:15:f3:83
  Link detected: yes
  WLAN channels: 1 2 3 4 5 6 7 8 9 10 11 12 13 36 40 44 48 52 56 60 64 100 104 108 112 116 120 124 128 132 136 140
  WLAN frequencies: 2.412 2.417 2.422 2.427 2.432 2.437 2.442 2.447 2.452 2.457 2.462 2.467 2.472 5.18 5.2 5.22 5.24 5.26 5.28 5.3 5.32 5.5 5.52 5.54 5.56 5.58 5.6 5.62 5.64 5.66 5.68 5.7
  WLAN encryption modes: WEP40 WEP104 TKIP CCMP
  WLAN authentication modes: open sharedkey wpa-psk wpa-eap
  Module Alias: "pci:v00008086d000043F0sv00008086sd00000074bc02sc80i00"
  Driver Info #0:
    Driver Status: iwlwifi is active
    Driver Activation Cmd: "modprobe iwlwifi"
  Config Status: cfg=new, avail=yes, need=no, active=unknown

17: PCI 2d00.0: 0200 Ethernet controller
  [Created at pci.386]
  Unique ID: AM1a.g1yJ3amPfwB
  Parent ID: 1GTX.1cIm6jmQB0C
  SysFS ID: /devices/pci0000:00/0000:00:1d.0/0000:2d:00.0
  SysFS BusID: 0000:2d:00.0
  Hardware Class: network
  Model: "Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller"
  Vendor: pci 0x10ec "Realtek Semiconductor Co., Ltd."
  Device: pci 0x8168 "RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller"
  SubVendor: pci 0x1043 "ASUSTeK Computer Inc."
  SubDevice: pci 0x208f 
  Revision: 0x15
  Driver: "r8168"
  Driver Modules: "r8168"
  Device File: enp45s0
  I/O Ports: 0x3000-0x30ff (rw)
  Memory Range: 0x86204000-0x86204fff (rw,non-prefetchable)
  Memory Range: 0x86200000-0x86203fff (rw,non-prefetchable)
  IRQ: 153 (no events)
  HW Address: 7c:10:c9:8f:c3:03
  Permanent HW Address: 7c:10:c9:8f:c3:03
  Link detected: no
  Module Alias: "pci:v000010ECd00008168sv00001043sd0000208Fbc02sc00i00"
  Driver Info #0:
    Driver Status: r8169 is not active
    Driver Activation Cmd: "modprobe r8169"
  Driver Info #1:
    Driver Status: r8168 is active
    Driver Activation Cmd: "modprobe r8168"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #22 (PCI bridge)

I believe from this output it's indicating that the newly installed driver was not loaded.

open two terminals using ctrl-alt-t and run in one sudo journalctl -f and from the other terminal do modprobe r8169

It may also be of use to search dmesg for the specific driver to determine why it was not loaded on restart

dmesg | grep -4 -i r8169
1 Like

journalctl -f

প্রিল 04 21:12:27 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC kernel: wlo1: send auth to 98:0d:67:ad:25:b7 (try 2/3)
এপ্রিল 04 21:12:28 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC kernel: iwlwifi 0000:00:14.3: Not associated and the session protection is over already...
এপ্রিল 04 21:12:28 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC kernel: wlo1: Connection to AP 98:0d:67:ad:25:b7 lost
এপ্রিল 04 21:12:28 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC kernel: wlo1: send auth to 98:0d:67:ad:25:b7 (try 3/3)
এপ্রিল 04 21:12:29 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC kernel: iwlwifi 0000:00:14.3: Not associated and the session protection is over already...
এপ্রিল 04 21:12:29 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC kernel: wlo1: Connection to AP 98:0d:67:ad:25:b7 lost
এপ্রিল 04 21:12:29 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC kernel: wlo1: authentication with 98:0d:67:ad:25:b7 timed out
এপ্রিল 04 21:12:29 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC wpa_supplicant[789]: wlo1: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="Zyxelad25b4" auth_failures=1 duration=10 reason=CONN_FAILED
এপ্রিল 04 21:12:29 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC NetworkManager[750]: <info>  [1680621149.8503] device (wlo1): supplicant interface state: authenticating -> disconnected
এপ্রিল 04 21:12:29 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC NetworkManager[750]: <info>  [1680621149.8504] device (p2p-dev-wlo1): supplicant management interface state: authenticating -> disconnected
এপ্রিল 04 21:12:39 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC NetworkManager[750]: <info>  [1680621159.8559] device (wlo1): supplicant interface state: disconnected -> scanning
এপ্রিল 04 21:12:39 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC NetworkManager[750]: <info>  [1680621159.8560] device (p2p-dev-wlo1): supplicant management interface state: disconnected -> scanning
এপ্রিল 04 21:12:40 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC systemd-timesyncd[693]: Initial synchronization to time server 91.189.91.157:123 (ntp.ubuntu.com).
এপ্রিল 04 21:12:40 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC wpa_supplicant[789]: wlo1: CTRL-EVENT-SSID-REENABLED id=0 ssid="Zyxelad25b4"
এপ্রিল 04 21:12:40 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC wpa_supplicant[789]: wlo1: SME: Trying to authenticate with 98:0d:67:ad:25:b7 (SSID='Zyxelad25b4' freq=2437 MHz)
এপ্রিল 04 21:12:40 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC kernel: wlo1: authenticate with 98:0d:67:ad:25:b7
এপ্রিল 04 21:12:40 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC NetworkManager[750]: <info>  [1680621160.6695] device (wlo1): supplicant interface state: scanning -> authenticating
এপ্রিল 04 21:12:40 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC NetworkManager[750]: <info>  [1680621160.6696] device (p2p-dev-wlo1): supplicant management interface state: scanning -> authenticating
এপ্রিল 04 21:12:40 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC kernel: wlo1: send auth to 98:0d:67:ad:25:b7 (try 1/3)
এপ্রিল 04 21:12:41 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC kernel: iwlwifi 0000:00:14.3: Not associated and the session protection is over already...
এপ্রিল 04 21:12:41 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC kernel: wlo1: Connection to AP 98:0d:67:ad:25:b7 lost
এপ্রিল 04 21:12:41 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC kernel: wlo1: send auth to 98:0d:67:ad:25:b7 (try 2/3)
এপ্রিল 04 21:12:42 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC kernel: iwlwifi 0000:00:14.3: Not associated and the session protection is over already...
এপ্রিল 04 21:12:42 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC kernel: wlo1: Connection to AP 98:0d:67:ad:25:b7 lost
এপ্রিল 04 21:12:42 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC kernel: wlo1: send auth to 98:0d:67:ad:25:b7 (try 3/3)
এপ্রিল 04 21:12:43 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC kernel: iwlwifi 0000:00:14.3: Not associated and the session protection is over already...
এপ্রিল 04 21:12:43 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC kernel: wlo1: Connection to AP 98:0d:67:ad:25:b7 lost
এপ্রিল 04 21:12:43 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC kernel: wlo1: authentication with 98:0d:67:ad:25:b7 timed out
এপ্রিল 04 21:12:43 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC wpa_supplicant[789]: wlo1: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="Zyxelad25b4" auth_failures=2 duration=20 reason=CONN_FAILED
এপ্রিল 04 21:12:43 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC NetworkManager[750]: <info>  [1680621163.9299] device (wlo1): supplicant interface state: authenticating -> disconnected
এপ্রিল 04 21:12:43 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC NetworkManager[750]: <info>  [1680621163.9299] device (p2p-dev-wlo1): supplicant management interface state: authenticating -> disconnected
এপ্রিল 04 21:12:52 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC NetworkManager[750]: <warn>  [1680621172.0242] device (wlo1): Activation: (wifi) association took too long, failing activation
এপ্রিল 04 21:12:52 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC NetworkManager[750]: <info>  [1680621172.0243] device (wlo1): state change: config -> failed (reason 'ssid-not-found', sys-iface-state: 'managed')
এপ্রিল 04 21:12:52 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC NetworkManager[750]: <warn>  [1680621172.0262] device (wlo1): Activation: failed for connection 'Zyxelad25b4'
এপ্রিল 04 21:12:52 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC NetworkManager[750]: <info>  [1680621172.0268] device (wlo1): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed')
এপ্রিল 04 21:12:53 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC NetworkManager[750]: <info>  [1680621173.9310] device (wlo1): supplicant interface state: disconnected -> inactive
এপ্রিল 04 21:12:53 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC NetworkManager[750]: <info>  [1680621173.9313] device (p2p-dev-wlo1): supplicant management interface state: disconnected -> inactive
এপ্রিল 04 21:12:54 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC dbus-daemon[749]: [system] Activating via systemd: service name='org.freedesktop.timedate1' unit='dbus-org.freedesktop.timedate1.service' requested by ':1.22' (uid=0 pid=783 comm="/usr/lib/snapd/snapd " label="unconfined")
এপ্রিল 04 21:12:54 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC systemd[1]: Starting Time & Date Service...
এপ্রিল 04 21:12:54 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC dbus-daemon[749]: [system] Successfully activated service 'org.freedesktop.timedate1'
এপ্রিল 04 21:12:54 shamim-ASUS-TUF-Gaming-F15-FX506HC-FX506HC systemd[1]: Started Time & Date Service.

It would appear that this driver isn't loading. It's listed, which I perceive to be a good thing, however you will need to wait for someone with more knowledge of drivers unfortunately. My knowledge beyond this is about as good as yours. Sorry

1 Like