nm-applet
连接无线网络时总是让我很为难。我经常要重启它并尝试多次才能连接到网络。有时甚至重启电脑也无济于事。这次我从 CLI 运行它,得到了以下信息:
** (nm-applet:2950): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-t6ky00XpYq: Connection refused
** (nm-applet:2950): WARNING **: Could not initialize NMClient /org/freedesktop/NetworkManager: The name org.freedesktop.NetworkManager was not provided by any .service files
(nm-applet:2950): nm-applet-WARNING **: Failed to register as an agent: (2) The name org.freedesktop.NetworkManager was not provided by any .service files
(nm-applet:2950): nm-applet-WARNING **: Failed to register as an agent: (2) The name org.freedesktop.NetworkManager was not provided by any .service files
以下是输出lspci -knn | grep Net -A2
02:00.0 Network controller [0280]: Intel Corporation Wireless 7260 [8086:08b1] (rev 93)
Subsystem: Intel Corporation Device [8086:5070]
Kernel driver in use: iwlwifi
答案1
org.freedesktop.NetworkManager
服务文件由包提供network-manager
。$ grep -rl NetworkManager /etc/dbus-1/ /usr/share/dbus-1/ /etc/dbus-1/system.d/nm-pptp-service.conf /etc/dbus-1/system.d/nm-strongswan-service.conf /etc/dbus-1/system.d/nm-vpnc-service.conf /etc/dbus-1/system.d/nm-openvpn-service.conf /etc/dbus-1/system.d/org.freedesktop.NetworkManager.conf /etc/dbus-1/system.d/nm-iodine-service.conf /etc/dbus-1/system.d/nm-openconnect-service.conf /usr/share/dbus-1/system-services/org.freedesktop.nm_dispatcher.service $ dpkg -S /etc/dbus-1/system.d/org.freedesktop.NetworkManager.conf network-manager: /etc/dbus-1/system.d/org.freedesktop.NetworkManager.conf
尝试重新安装然后重启
sudo apt-get install --reinstall network-manager sudo reboot
答案2
该问题与网络管理器无关。
这是 iwlwifi 驱动程序和适配器的问题。
据报道,关闭此适配器的省电功能可以解决这个问题。可以在终端中运行
sudo iwconfig wlan0 power off
但重启后此设置不会保留。
iwlwifi
我会通过运行在模块中关闭它
sudo tee /etc/modprobe.d/iwlwifi.conf <<< "options iwlwifi power_save=0"
如果关闭iwlwifi
模块中的省电功能没有帮助,您可以通过以下方式恢复
sudo rm /etc/modprobe.d/iwlwifi.conf
你也可以通过运行sudo iwconfig wlan0 power off
来添加/etc/rc.local
sudo -H gedit /etc/rc.local
并在行sudo iwconfig wlan0 power off
前添加exit 0
。
此命令将始终在启动时运行。
另一个可能有帮助的内核选项是options iwlwifi 11n_disable=1
。
可以通过以下方式设置
sudo tee /etc/modprobe.d/iwlwifi.conf <<< "options iwlwifi 11n_disable=1"