This problem specifically occurs with Lenovo laptops and more pounced in *Ubuntu 17.x” onwards.
The problem happens when the laptop goes to any type of standby , sleep or hybrid-sleep.
It causes the WiFi the not function again after wakeup.
This problem was reported and solutions were offered :
Here is the Working Solution:
This problem was seen on 17.10 version in Jan’2018 and Mar’2018.
It may be fixed in the future updates.
Solution using a Command
sudo systemctl restart network-manager.service
16.04 and above runs on
systemd, so this should work.
Creating a Resume Service
1. Create the Services File in
sudo nano /etc/systemd/system/wifi-resume.service
2. Service File Contents
#/etc/systemd/system/wifi-resume.service #sudo systemctl enable wifi-resume.service [Unit] Description=Restart networkmanager at resume After=suspend.target After=hibernate.target After=hybrid-sleep.target [Service] Type=oneshot ExecStart=/bin/systemctl restart network-manager.service [Install] WantedBy=suspend.target WantedBy=hibernate.target WantedBy=hybrid-sleep.target
3. Activate the Service
comments powered by Disqus
sudo systemctl enable wifi-resume.service