Frequent Wifi Disconnection Problem in Ubuntu

At times, when you are working on your computer, your wifi suddenly disconnects and everyone in your network also disconnect themselves with the wifi.

This is a peculiar problem of the today's OS. Of course, its not a bug i think. In windows 10, this problem still persists and there are so many workaround, yet to find the real answer for that.

But for Ubuntu or Debian or Linux Mint. There is a small workaround. Please follow the steps.

Open a terminal and type the following commands

$] iwconfig

For the above command you get this screen. Please see the black rounded information. Make a note of it
Power Management
Power Management
In my case, I already switched off the power management to off, but your case might be ON. So to make it permanently OFF, do the following steps.

$]  sudo gedit /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

Open the above file, there will be only two lines as given below
wifi.powersave = 3

Change the 3 to 2 in the second line and Save. After saving, reboot the machine.

You are done!!!

In case, if you want to do temporarily (Every time the machine is started, you need to issue the following command)

$ sudo iwconfig wlp2s0 power off

Your wifi interface device might be different, please use your name. I have shown it in RED color

By T S Pradeep Kumar