description of the problem
It seems both wifi and ethernet has the same problem. However, it seems it only happens when the suspend time is long. If I close lid for about 5 min or so, it is OK. However when I suspend for hours, when coming back, I can't connect to the internet. I have tried:
sudo systemctl restart network-manager.service
sudo service network-manager restart
sudo service NetworkManager restart
None of them helps, even log out. The only way to resume the network is by a restart.
I found some post on the web such as this one: Wifi doesn't work after suspend after 16.04 upgrade, but it doesn't help even there are so many vote ups, therefore I think it is OK to ask this question again to draw some attention and hopefully my problem can be solved.
Edit
-> ~$ lspci -knn | grep Net -A2
03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8188CE 802.11b/g/n WiFi Adapter [10ec:8176] (rev 01)
Subsystem: Realtek Semiconductor Co., Ltd. RTL8188CE 802.11b/g/n WiFi Adapter [10ec:8195]
Kernel driver in use: rtl8192ce
Best Answer
Lifted from Wifi doesn't work after suspend after 16.04 upgrade
I found that first researching which ethernet hardware and driver/module I am running, and then removing and reloading that module, did work for me (though it did not for buzhidao):
Wifi:
Ethernet:
The second of these (ethernet) was what I used, and I found:
so i reloaded the 'r8169' driver:
and voila! This worked. My ethernet port / connection came back alive (after suspend/wakeup) without having to reboot.
in my case the driver was different, but the same commands
rmmod
andmodprobe
did the trick