I've got Ubuntu 20.04 installed on a Lenovo Thinkpad T410. I've recently noticed a problem where every night after the laptop hasn't been used for a while, the wifi drops. At first it seemed to go into a power save mode so I tried disabling power save on the wifi adapter with:
sudo sed -i "s/wifi.powersave = 3/wifi.powersave = 2/g" /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
then:
sudo systemctl restart network-manager.service
and it seemed to work, but for the last few days the problem changed to where the wifi icon gets a question mark on it and I have to turn wifi off and back on for it to connect.
*-network
description: Wireless interface
product: Centrino Advanced-N 6200
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:03:00.0
logical name: wlp3s0
version: 35
serial: 58:94:6b:d9:ac:cc
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=iwlwifi driverversion=5.4.0-58-generic firmware=9.221.4.1 build 25532 ip=10.0.1.11 latency=0 link=yes multicast=yes wireless=IEEE 802.11
resources: irq:30 memory:f2400000-f2401fff
03:00.0 Network controller: Intel Corporation Centrino Advanced-N 6200 (rev 35)
2: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
any suggestions on what's going on?