My wifi is constantly dropping out on both my laptop and desktop. This has occured on both my home wifi and when setting up my phone as a hotspot. This 'dropout' still shows the wifi as connected, however any network traffic (such as pinging a known ip) fails (EDIT: This was wrong, couldn't replicate failure to ping 18.104.22.168. Solution was DNS issue). This seems to happen after using the internet for anywhere from 2-30 minutes. The only solution to fix is a reboot, or restarting the network manager as such:
sudo systemctl restart network-manager
I initially thought it was a problem with my wireless card in my laptop (Dell XPS 13 9350), however switching the issue persisted when switching to an intel wifi card and back again to the stock broadcom based card. The issue is also present on my desktop although appears to happen less frequently (purely observational). Also, the frequency of dropouts seems to have increased since upgrading to 18.04 (again, purely observational and may not be so).
I do not know much about debugging this issue, however looking at the wifi logs with
sudo journalctl -fu NetworkManager yields the following entry whenever there is a dropout:
May 06 20:17:48 my-laptop NetworkManager: <info> [1525601868.0127] connectivity: (wlp58s0) timed out
Any suggestions on how to debug this drop in network access?