重置wifi连接的可能命令是什么?

ors*_*iro 5 network-manager suspend wireless networking

我受到从挂起恢复时偶尔我的 wifi 连接中断的错误的影响。问题表现如下:

截屏:

在此处输入图片说明

我可以尝试从命令行运行哪些可能的命令来重置我的 wifi 连接而无需重新启动我的系统?

chi*_*555 8

请打开终端并执行以下操作:

sudo gedit  /etc/systemd/system/wifi-resume.service
Run Code Online (Sandbox Code Playgroud)

如果您没有文本编辑器 gedit,请使用 nano 或 kate 或 Leafpad。将打开一个新的空文件。添加以下内容:

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

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

[Install]
WantedBy=suspend.target
Run Code Online (Sandbox Code Playgroud)

仔细校对两次,保存并关闭文本编辑器。现在做:

sudo chmod +x  /etc/systemd/system/wifi-resume.service
Run Code Online (Sandbox Code Playgroud)

接下来:

sudo systemctl enable wifi-resume.service
Run Code Online (Sandbox Code Playgroud)

重新启动并让我们知道问题是否已解决。