My Wi-Fi is constantly dropping out on both my laptop and desktop. This has occurred on both my home Wi-Fi and when setting up my phone as a hotspot. This 'dropout' still shows the Wi-Fi as connected. However, any network traffic (such as pinging a known IP) fails (EDIT: This was wrong, I couldn't replicate the failure to ping 8.8.8.8. Solution was a DNS issue). This seems to happen after using the internet for anywhere from 2-30 minutes. The only solution to fix this is a reboot, or restart the network manager:
sudo systemctl restart network-manager
I initially thought it was a problem with a wireless card on my Laptop (Dell XPS 13 9350). However, switching the issue persisted when switching to an intel Wi-Fi 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 Wi-Fi logs with:
sudo journalctl -fu NetworkManager
yields the following entry whenever there is a dropout:
May 06 20:17:48 my-laptop NetworkManager[13190]: <info> [1525601868.0127] connectivity: (wlp58s0) timed out
Any suggestions on how to debug this drop in network access?
sudo journalctl -b 0 -u NetworkManager
. Readman journalctl
.