Wifi keeps disconnecting frequently

Asked by sameer

On Ubuntu linux machine, very frequent, but random disconnects from WiFi occurs.

The only thing that helps (temporarily), is turn on airplane mode, and turn it back off.

Furthermore, the OS does not holds last known state of related services, means, when the Bluetooth is turned off, it should remain turned off even after (re)entering and (re)exiting the airplane mode. Now I have to turn it off every time manually.

Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was reopened

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Have you tried rebooting your router as a good starting point?

You haven't given us any information about the system you have....Not even the Ubuntu version.....nothing.

Revision history for this message
sameer (mfaheem5697) said (last edit ):
#2

Using my wifi on iphone, andoid, mac, no problems anywhere except for this Ubuntu laptop.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal
Linux 5.4.0-121-generic #137-Ubuntu SMP Wed Jun 15 13:33:07 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

lspci----00:14.3 Network controller: Intel Corporation Wi-Fi 6 AX201
syslog----Jul 8 12:33:29 nb-gk-lin-0001 wpa_supplicant[1165]: wlp0s20f3: WPA: Group rekeying completed with cc:2d:e0:cf:6d:32 [GTK=CCMP]

*-network:0
       description: Wireless interface
       product: Wi-Fi 6 AX201
       vendor: Intel Corporation
       physical id: 14.3
       bus info: pci@0000:00:14.3
       logical name: wlp0s20f3
       version: 00
       serial: 2c:db:07:ab:80:83
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=iwlwifi driverversion=5.4.0-121-generic firmware=50.3e391d3e.0 ip=10.0.0.199 latency=0 link=yes multicast=yes wireless=IEEE 802.11
       resources: iomemory:600-5ff irq:16 memory:604111c000-604111ffff

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

If you run

echo "options iwlwifi 11n_disable=1" | sudo tee /etc/modprobe.d/iwlwifi-fix.conf > /dev/null

Then reboot, does it help? If not then you can wind back the change with:

sudo rm /etc/modprobe.d/iwlwifi-fix.conf

Then rebooting again

Revision history for this message
sameer (mfaheem5697) said :
#4

actionparsnip...I had tried this but it didn't help

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

I suggest that you post the output of step 2 from https://help.ubuntu.com/community/WirelessTroubleshootingProcedure in your question document.

Revision history for this message
sameer (mfaheem5697) said :
#6

Manfred Hampl......Will the step 2 command will change anything in the machine?

Revision history for this message
sameer (mfaheem5697) said (last edit ):
#7
Revision history for this message
sameer (mfaheem5697) said :
#8

@Manfred Hampl any update on this?

Revision history for this message
Manfred Hampl (m-hampl) said :
#9

I am sorry, but I do not see anything in your output that gives a hint of the cause of the instability. I do not know anything to recommend further. Maybe somebody else can help.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#10

Could try:

echo "options iwlwifi power_save=0" | sudo tee /etc/modprobe.d/iwlwifi-power.conf > /dev/null

Reboot to test. To wind back, run:

sudo rm /etc/modprobe.d/iwlwifi-power.conf

Then reboot again. Possibly power saving kicking in and causing issues. To be honesty they use so very little I think this should be default but I guess every little helps.

Revision history for this message
sameer (mfaheem5697) said :
#11

Actionparsnip ...Thanks for answering....Will do this and update

Revision history for this message
sameer (mfaheem5697) said (last edit ):
#12
Revision history for this message
sameer (mfaheem5697) said :
#13
Revision history for this message
Manfred Hampl (m-hampl) said :
#14

Each question should cover a single topic. Please keep this one for the WLAN disconnect issue and create a new question document for Bluetooth.

Revision history for this message
sameer (mfaheem5697) said :
#15

Thanks actionparsnip, that solved my question.

Revision history for this message
sameer (mfaheem5697) said :
#16

I am again facing problem with wifi. It was working fine for few days after doing some changes which were suggested. Could you please help in fixing this problem

Revision history for this message
sameer (mfaheem5697) said :
#17

[ 11.547247] kernel: iwlwifi 0000:00:14.3: enabling device (0000 -> 0002)
[ 11.552431] kernel: iwlwifi 0000:00:14.3: TLV_FW_FSEQ_VERSION: FSEQ Version: 58.3.35.22
[ 11.552434] kernel: iwlwifi 0000:00:14.3: Found debug destination: EXTERNAL_DRAM
[ 11.552435] kernel: iwlwifi 0000:00:14.3: Found debug configuration: 0
[ 11.552644] kernel: iwlwifi 0000:00:14.3: loaded firmware version 50.3e391d3e.0 op_mode iwlmvm
[ 11.610651] kernel: iwlwifi 0000:00:14.3: Detected Intel(R) Wi-Fi 6 AX201 160MHz, REV=0x354
[ 11.620110] kernel: iwlwifi 0000:00:14.3: Applying debug destination EXTERNAL_DRAM
[ 11.620966] kernel: iwlwifi 0000:00:14.3: Allocated 0x00400000 bytes for firmware monitor.
[ 11.771177] kernel: iwlwifi 0000:00:14.3: base HW address: 2c:db:07:ab:80:83
[ 11.785629] kernel: iwlwifi 0000:00:14.3 wlp0s20f3: renamed from wlan0
[ 13.274944] kernel: iwlwifi 0000:00:14.3: Applying debug destination EXTERNAL_DRAM
[ 13.421636] kernel: iwlwifi 0000:00:14.3: FW already configured (0) - re-configuring
[ 13.426160] kernel: iwlwifi 0000:00:14.3: BIOS contains WGDS but no WRDS

Revision history for this message
Manfred Hampl (m-hampl) said :
#18

"I am again facing problem with wifi."

Which symptoms do you see with that current problem? Details, please!

The snippet from the log does not show anything unusual.

See also https://bugzilla.kernel.org/show_bug.cgi?id=205513

Revision history for this message
sameer (mfaheem5697) said :
#19

I found some of these ..

NetworkManager[981]: <info> [1658776826.6643] rfkill1: found Wi-Fi radio killswitch (at /sys/devices/pci0000:00/0000:00:14.3/ieee80211/phy0/rfkill1) (driver iwlwifi)
NetworkManager[1114]: <info> [1658796643.6223] manager: rfkill: Wi-Fi now disabled by radio killswitch
NetworkManager[1114]: <info> [1658796643.6107] manager: rfkill: Wi-Fi hardware radio set disabled
wpa_supplicant[1149]: rfkill: WLAN soft blocked

Revision history for this message
Manfred Hampl (m-hampl) said :
#20

There are many messages in the system logs that are perfectly normal and do not indicate a problem.
Does WLAN still function or not?

"rfkill: Wi-Fi now disabled by radio killswitch"

This messages is shown, when you press the function key to disable WLAN (on my laptop it's Fn-F7).
Pressing the key again should re-enable WLAN.

Revision history for this message
sameer (mfaheem5697) said :
#21

yes but this all is happening automatically. The solution you are providing is temporary. Could you please provide a permanent fix for this.

Revision history for this message
Manfred Hampl (m-hampl) said :
#22

"but this all is happening automatically!"

What is happening automatically?

Revision history for this message
sameer (mfaheem5697) said :
#23

but this all is happening automatically!

Wifi is disconnecting automatically .....

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#24

Is this now resolved due to the efforts in
https://answers.launchpad.net/ubuntu/+question/702564

Can you help with this problem?

Provide an answer of your own, or ask sameer for more information if necessary.

To post a message you must log in.