5

I am affected by the bug that occasionally my wifi connection is broken on resume from suspend. The problem manifests as follows:

Screenshot:

enter image description here

What are possible commands I can try to run from the command-line to reset my wifi connection without having to restart my system?

orschiro
  • 13,317
  • 17
  • 87
  • 161

3 Answers3

8

Please open a terminal and do:

sudo gedit  /etc/systemd/system/wifi-resume.service

Use nano or kate or leafpad if you don't have the text editor gedit. A new empty file will open. Add the following:

[Unit]
Description=Local system resume actions
After=suspend.target

[Service]
Type=oneshot
ExecStart=/bin/systemctl restart network-manager.service

[Install]
WantedBy=suspend.target

Proofread carefully twice, save and close the text editor. Now do:

sudo chmod +x  /etc/systemd/system/wifi-resume.service

And next:

sudo systemctl enable wifi-resume.service

Reboot and let us know if the problem is solved.

chili555
  • 60,188
0

The command is

sudo service network-manager restart
Pilot6
  • 90,100
  • 91
  • 213
  • 324
0

You can try

sudo /etc/init.d/network-manager restart
dhclient wlan0
GAD3R
  • 3,507