到目前为止,这种情况至少发生过两次。
我正在运行 Kubuntu 15.04。有时,当我暂停后恢复工作时,wifi 连接不会恢复。以下是其中的一部分/var/log/syslog
:
Oct 27 18:25:56 LenovoPC NetworkManager[591]: <info> wake requested (sleeping: yes enabled: yes)
Oct 27 18:25:56 LenovoPC NetworkManager[591]: <info> waking up...
Oct 27 18:25:56 LenovoPC NetworkManager[591]: <info> (eth0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Oct 27 18:25:56 LenovoPC NetworkManager[591]: <info> (eth0): preparing device
Oct 27 18:25:56 LenovoPC NetworkManager[591]: <info> (wlan0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Oct 27 18:25:56 LenovoPC NetworkManager[591]: <info> (wlan0): preparing device
Oct 27 18:25:56 LenovoPC NetworkManager[591]: <info> NetworkManager state is now DISCONNECTED
Oct 27 18:25:56 LenovoPC wpa_supplicant[753]: dbus: wpa_dbus_get_object_properties: failed to get object properties: (none) none
Oct 27 18:25:56 LenovoPC wpa_supplicant[753]: dbus: Failed to construct signal
Oct 27 18:25:56 LenovoPC NetworkManager[591]: <warn> could not get interface properties: No readable properties in this interface.
Oct 27 18:25:56 LenovoPC NetworkManager[591]: <info> (wlan0): supplicant interface state: starting -> ready
Oct 27 18:25:56 LenovoPC NetworkManager[591]: <info> (wlan0): device state change: unavailable -> disconnected (reason 'supplicant-available') [20 30 42]
Oct 27 18:25:56 LenovoPC NetworkManager[591]: <warn> could not get interface properties: No readable properties in this interface.
重新启动 NetworkManager(sudo service NetworkManager restart
)有帮助。
设备“受管理”且接口没有可读属性是什么意思?我该如何修复?
更新:我在 Kubuntu 15.10 上仍然有这个。
答案1
在 15.10 上添加 systemd 钩子这似乎对我有用:
/etc/systemd/system/root-resume.service
[Unit]
Description=Local system resume actions
After=suspend.target
[Service]
Type=simple
ExecStart=/bin/systemctl restart network-manager.service
[Install]
WantedBy=suspend.target