有时候从挂起状态唤醒之后,wifi会显示disconnected。
解决方法1:如果不嫌麻烦:
sudo service network-manager restart
方法二:
#!/bin/sh
case "${1}" in
resume|thaw)
nmcli r wifi off && nmcli r wifi on ;;
esac
Put this in /etc/pm/sleep.d/10_resume_wifi
Make it executable sudo chmod 755 /etc/pm/sleep.d/10_resume_wifi and the problem should be fixed immediately.