我已经使用联想很长一段时间了,并试图寻找解决 WWAN 问题的方法。
我可以通过 GUI 和终端启用 WWAN,并通过我的网络提供商进行连接。但过了一段时间,网络断线了,调制解调器也自行禁用了。我的手机使用的网络和这个网络一样,所以没有问题。
我似乎找不到正确的日志来找出问题所在。所以我希望这里有人可以帮助我或知道在哪里可以找到问题。
我从终端获得了以下输出,我认为这些输出可能会有帮助,所有这些都是在 wwan 连接到网络时发生的:
lsb_release-a:
分销商 ID:Ubuntu
描述:Ubuntu 14.10
发行版:14.10
代号:utopicuname -a:
Linux cbobach-ThinkPad-T440s 3.16.0-031600-generic #201408031935 SMP 2014 年 8 月 3 日星期日 23:36:11 UTC x86_64 x86_64 x86_64 GNU/Linux
USB 设备:
T:总线=02 级别=01 Prnt=01 端口=03 Cnt=01 设备编号= 7 速度=480 MxCh= 0
D:版本= 2.00 Cls=ef(杂项)子级=02 协议=01 MxPS=64 #Cfgs= 1
P:供应商=1199 ProdID=a001 修订版=17.29
S:制造商=Sierra Wireless Inc.
S:产品=Sierra Wireless EM7345 4G LTE
S:序列号=013937001863610
C:#Ifs= 4 Cfg#= 1 Atr=e0 MxPwr=100mA
I:If#= 0 Alt= 1 #EPs= 1 Cls=02(通信)子级=0e 协议=00 驱动程序=cdc_mbim
I:If#= 1 Alt= 2 #EPs= 2 Cls=0a(数据) Sub=00 Prot=02 驱动程序=cdc_mbim
I:如果#= 2 Alt= 0 #EPs= 1 Cls=02(commc) Sub=02 Prot=01 驱动程序=cdc_acm
I:如果#= 3 Alt= 0 #EPs= 2 Cls=0a(数据) Sub=00 Prot=00 驱动程序=cdc_acmnmcli 开发列表:
GENERAL.DEVICE:cdc-wdm1
GENERAL.TYPE:gsm
GENERAL.VENDOR:--
GENERAL.PRODUCT:--
GENERAL.DRIVER:cdc_mbim,cdc_acm
GENERAL.DRIVER-VERSION:
GENERAL.FIRMWARE-VERSION:
GENERAL.HWADDR:(未知)
GENERAL.STATE:100(已连接)
GENERAL.REASON:0(未给出原因)
GENERAL.UDI:/org/freedesktop/ModemManager1/Modem/54
GENERAL.IP-IFACE:wwan0
GENERAL.NM-MANAGED:是
GENERAL.AUTOCONNECT:是
GENERAL.FIRMWARE-MISSING:否
GENERAL.CONNECTION:/org/freedesktop/NetworkManager/ActiveConnection/15
CAPABILITIES.CARRIER-DETECT:否
CAPABILITIES.SPEED:未知
CONNECTIONS.AVAILABLE-CONNECTION-PATHS:/org/freedesktop/NetworkManager/Settings/{2}
CONNECTIONS.AVAILABLE-CONNECTIONS[1]:d710afac-2f41-4778-9861-83cc4a272b31 | 3 Bredbånd(标准)
IP4.ADDRESS[1]:ip = 109.56.85.37/24,gw = 0.0.0.0
IP4.DNS[1]:95.209.200.69
IP4.DNS[2]:95.209.200.70ifconfig:
wwan0 链路封装:以太网 HWaddr da:5a:85:51:96:5b
inet addr:109.56.32.124 Bcast:109.56.32.255 掩码:255.255.255.0
inet6 addr:::d85a:85ff:fe51:965b/64 范围:全局
inet6 addr:::adf4:9e24:ff95:f33/64 范围:全局 inet6 addr:
fe80::d85a:85ff:fe51:965b/64 范围:链路
UP 广播运行 NOARP 多播 MTU:1500 度量:1
RX 数据包:1 错误:0 丢弃:0 超限:0 帧:0
TX 数据包:49 错误:0 丢弃:0 超限:0 载波:0
冲突:0 txqueuelen:1000
RX字节:88(88.0 B)TX字节:8045(8.0 KB)系统日志:
如果您认为有任何内容可以帮助阐明该问题,请写下来。
答案1
我在联想 Thinkpad W541 上的 Ubuntu 14.04 上遇到了同样的问题,该设备配有 Sierra Wireless EM7345 4G LTE,固件为:FIH7160_V1.2_WW_01.1415.07
我在 EM7345 固件 1.1 更新日志中看到,随机断开连接然后无法重新连接的问题已在 1.2 中得到修复。我可以确认该问题在 1.2 中仍然存在,并且没有针对联想 W541 的任何更新。
解决方案是切断集成 Sierra Wireless EM7345 调制解调器(从技术上讲,它是一种 USB 设备)的电源,以强制硬重启。我尝试了所有可能的软重启方法,直到我偶然发现可以在不关闭笔记本电脑的情况下完全切断 USB 端口的电源。
按着这些次序:
1. 使用以下命令找出 Sierra Wireless EM7345 调制解调器的总线路径:
$ lsusb -t
在输出中搜索“cdc”,这是我的:
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/3p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/3p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/15p, 480M
|__ Port 5: Dev 2, If 0, Class=Chip/SmartCard, Driver=usbfs, 12M
|__ Port 6: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 6: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 6: Dev 3, If 2, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 7: Dev 4, If 0, Class=Vendor Specific Class, Driver=, 12M
|__ Port 10: Dev 14, If 0, Class=Communications, Driver=cdc_mbim, 480M
|__ Port 10: Dev 14, If 1, Class=CDC Data, Driver=cdc_mbim, 480M
|__ Port 10: Dev 14, If 2, Class=Communications, Driver=cdc_acm, 480M
|__ Port 10: Dev 14, If 3, Class=CDC Data, Driver=cdc_acm, 480M
|__ Port 12: Dev 7, If 0, Class=Video, Driver=uvcvideo, 480M
|__ Port 12: Dev 7, If 1, Class=Video, Driver=uvcvideo, 480M
在这里你可以看到在总线 01 端口 10 中有一个 cdc 设备(Sierra Wireless EM7345 调制解调器),这意味着它的路径是:1-10
2. 将调制解调器送入软重启状态:
$ sudo modem-cmd /dev/ttyACM0 AT+CFUN=16
如果成功则不会有输出。此命令不会自行关闭,因此请按 CTRL+C 将其终止
3. 关闭调制解调器的电源(您需要 root 身份):
$ echo '1-10' |sudo tee /sys/bus/usb/drivers/usb/unbind
等待几秒钟,直到设备关闭,当 /var/log/syslog 中没有活动时
4. 重新打开调制解调器的电源:
$ echo '1-10' |sudo tee /sys/bus/usb/drivers/usb/bind
此后,调制解调器将需要 1..2 秒才能启动,当系统日志中没有活动时,调制解调器启动完成
5. 在 NetworkManagers 托盘图标右键菜单中勾选启用移动宽带。
6. 像往常一样连接到您选择的移动宽带连接
或者使用这个脚本:
我编写了一个小型 bash 脚本来完成所有这些操作,我使用 gksudo 启动它:
#!/bin/bash
# run this with root!!
# if this doesnt work, check if the bus path is correct with:
# lsusb -t (search for cdc)
modem-cmd /dev/ttyACM0 AT+CFUN=16 &
sleep 1
killall modem-cmd
echo '1-10' |tee /sys/bus/usb/drivers/usb/unbind
sleep 2
echo '1-10' |tee /sys/bus/usb/drivers/usb/bind
附录
以下是我用于 SEO 目的的系统日志:
Every time I suspend my laptop or disconnect the Mobile Broadband connection or when the Mobile Broadband connection dies by itself (happens sometimes):
Also, the modem sometimes disconnects on its own:
Nov 6 02:19:44 L4 avahi-daemon[1075]: Interface wwan0.IPv6 no longer relevant for mDNS.
Nov 6 02:19:44 L4 avahi-daemon[1075]: Leaving mDNS multicast group on interface wwan0.IPv6 with address fe80::d8a3:4fff:fec9:d56e.
Nov 6 02:19:44 L4 avahi-daemon[1075]: Interface wwan0.IPv4 no longer relevant for mDNS.
Nov 6 02:19:44 L4 avahi-daemon[1075]: Leaving mDNS multicast group on interface wwan0.IPv4 with address 10.144.34.75.
Nov 6 02:19:44 L4 kernel: [258309.296360] usb 1-10: USB disconnect, device number 13
Nov 6 02:19:44 L4 kernel: [258309.296416] cdc_mbim 1-10:1.0 wwan0: unregister 'cdc_mbim' usb-0000:00:14.0-10, CDC MBIM
Nov 6 02:19:44 L4 NetworkManager[1024]: SCPlugin-Ifupdown: devices removed (path: /sys/devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10:1.0/net/wwan0, iface: wwan0)
Nov 6 02:19:44 L4 ModemManager[982]: <info> (net/wwan0): released by modem /sys/devices/pci0000:00/0000:00:14.0/usb1/1-10
Nov 6 02:19:44 L4 avahi-daemon[1075]: IP_DROP_MEMBERSHIP failed: No such device
Nov 6 02:19:44 L4 avahi-daemon[1075]: Withdrawing address record for fe80::d8a3:4fff:fec9:d56e on wwan0.
Nov 6 02:19:44 L4 avahi-daemon[1075]: Withdrawing address record for 10.144.34.75 on wwan0.
Nov 6 02:19:44 L4 avahi-daemon[1075]: Withdrawing workstation service for wwan0.
Nov 6 02:19:44 L4 ModemManager[982]: [/dev/cdc-wdm0] unexpected port hangup!
Nov 6 02:19:44 L4 ModemManager[982]: <info> (usbmisc/cdc-wdm0): released by modem /sys/devices/pci0000:00/0000:00:14.0/usb1/1-10
Nov 6 02:19:44 L4 kernel: [258309.319654] cdc_acm 1-10:1.2: failed to set dtr/rts
Nov 6 02:19:44 L4 ModemManager[982]: <info> (tty/ttyACM0): released by modem /sys/devices/pci0000:00/0000:00:14.0/usb1/1-10
Nov 6 02:19:44 L4 NetworkManager[1024]: <info> (cdc-wdm0): device state change: activated -> unmanaged (reason 'removed') [100 10 36]
Nov 6 02:19:44 L4 NetworkManager[1024]: <info> (cdc-wdm0): deactivating device (reason 'removed') [36]
Nov 6 02:19:44 L4 NetworkManager[1024]: <warn> (12) failed to find interface name for index
Nov 6 02:19:44 L4 NetworkManager[1024]: nm_system_iface_flush_routes: assertion 'iface != NULL' failed
Nov 6 02:19:44 L4 NetworkManager[1024]: <warn> (12) failed to find interface name for index
Nov 6 02:19:44 L4 NetworkManager[1024]: <warn> (12) failed to find interface name for index
Nov 6 02:19:44 L4 NetworkManager[1024]: nm_system_iface_flush_routes: assertion 'iface != NULL' failed
Nov 6 02:19:44 L4 NetworkManager[1024]: <warn> (12) failed to find interface name for index
Nov 6 02:19:44 L4 NetworkManager[1024]: <info> Writing DNS information to /sbin/resolvconf
Nov 6 02:19:44 L4 NetworkManager[1024]: <info> (cdc-wdm0): cleaning up...
Nov 6 02:19:44 L4 NetworkManager[1024]: <info> (cdc-wdm0): taking down device.
Nov 6 02:19:44 L4 NetworkManager[1024]: <info> Unmanaged Device found; state CONNECTED forced. (see http://bugs.launchpad.net/bugs/191889)
Nov 6 02:19:44 L4 dbus[956]: [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper)
Nov 6 02:19:44 L4 NetworkManager[1024]: <warn> (cdc-wdm0) failed to disconnect modem: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface 'org.freedesktop.ModemManager1.Modem.Simple' on object at path /org/freedesktop/ModemManager1/Modem/3
Nov 6 02:19:44 L4 dbus[956]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Nov 6 02:19:44 L4 dbus[956]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Nov 6 02:19:45 L4 kernel: [258309.563672] usb 1-10: new high-speed USB device number 14 using xhci_hcd
Nov 6 02:19:45 L4 kernel: [258309.699555] usb 1-10: New USB device found, idVendor=1199, idProduct=a001
Nov 6 02:19:45 L4 kernel: [258309.699558] usb 1-10: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Nov 6 02:19:45 L4 kernel: [258309.699559] usb 1-10: Product: Sierra Wireless EM7345 4G LTE
Nov 6 02:19:45 L4 kernel: [258309.699560] usb 1-10: Manufacturer: Sierra Wireless Inc.
Nov 6 02:19:45 L4 kernel: [258309.699561] usb 1-10: SerialNumber: 013937005331614
Nov 6 02:19:45 L4 kernel: [258309.720394] cdc_mbim 1-10:1.0: setting rx_max = 16384
Nov 6 02:19:45 L4 kernel: [258309.720903] cdc_mbim 1-10:1.0: cdc-wdm0: USB WDM device
Nov 6 02:19:45 L4 kernel: [258309.721035] cdc_mbim 1-10:1.0 wwan0: register 'cdc_mbim' at usb-0000:00:14.0-10, CDC MBIM, da:a3:4f:c9:d5:6e
Nov 6 02:19:45 L4 kernel: [258309.721963] cdc_acm 1-10:1.2: ttyACM0: USB ACM device
Nov 6 02:19:45 L4 mtp-probe: checking bus 1, device 14: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-10"
Nov 6 02:19:45 L4 mtp-probe: bus: 1, device: 14 was not an MTP device
Nov 6 02:19:45 L4 NetworkManager[1024]: SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10:1.0/net/wwan0, iface: wwan0)
Nov 6 02:19:45 L4 NetworkManager[1024]: SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10:1.0/net/wwan0, iface: wwan0): no ifupdown configuration found.
Nov 6 02:19:46 L4 ntpd[23035]: Deleting interface #5 wwan0, fe80::d8a3:4fff:fec9:d56e#123, interface stats: received=0, sent=0, dropped=0, active_time=2433 secs
Nov 6 02:19:46 L4 ntpd[23035]: Deleting interface #3 wwan0, 10.144.34.75#123, interface stats: received=144, sent=144, dropped=0, active_time=2433 secs
Nov 6 02:19:46 L4 ntpd[23035]: 91.189.94.4 interface 10.144.34.75 -> (none)
Nov 6 02:19:46 L4 ntpd[23035]: 212.7.1.132 interface 10.144.34.75 -> (none)
Nov 6 02:19:46 L4 ntpd[23035]: 193.40.0.5 interface 10.144.34.75 -> (none)
Nov 6 02:19:46 L4 ntpd[23035]: 5.101.116.20 interface 10.144.34.75 -> (none)
Nov 6 02:19:46 L4 ntpd[23035]: 46.22.223.220 interface 10.144.34.75 -> (none)
Nov 6 02:19:46 L4 ntpd[23035]: peers refreshed
Nov 6 02:19:48 L4 ModemManager[982]: [/dev/cdc-wdm0] Queried max control message size: 512
Nov 6 02:19:48 L4 ModemManager[982]: <info> Creating modem with plugin 'Generic' and '3' ports
Nov 6 02:19:48 L4 ModemManager[982]: <info> Modem for device at '/sys/devices/pci0000:00/0000:00:14.0/usb1/1-10' successfully created
Nov 6 02:19:48 L4 ModemManager[982]: [/dev/cdc-wdm0] Queried max control message size: 512
Nov 6 02:19:49 L4 ModemManager[982]: <info> Modem: state changed (unknown -> disabled)
Nov 6 02:19:49 L4 NetworkManager[1024]: <warn> (cdc-wdm0): failed to look up interface index
Nov 6 02:19:49 L4 NetworkManager[1024]: <info> WWAN now disabled by management service
Nov 6 02:19:49 L4 NetworkManager[1024]: <info> (cdc-wdm0): new Broadband device (driver: 'cdc_mbim, cdc_acm' ifindex: 0)
Nov 6 02:19:49 L4 NetworkManager[1024]: <info> (cdc-wdm0): exported as /org/freedesktop/NetworkManager/Devices/6
Nov 6 02:19:49 L4 NetworkManager[1024]: <info> (cdc-wdm0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Nov 6 02:19:49 L4 NetworkManager[1024]: <info> (cdc-wdm0): deactivating device (reason 'managed') [2]
Nov 6 02:19:49 L4 NetworkManager[1024]: <info> NetworkManager state is now DISCONNECTED
Nov 6 02:19:49 L4 NetworkManager[1024]: <info> (cdc-wdm0): device state change: unavailable -> disconnected (reason 'none') [20 30 0]
Nov 6 02:19:46 L4 ntpd[23035]: Deleting interface #5 wwan0, fe80::d8a3:4fff:fec9:d56e#123, interface stats: received=0, sent=0, dropped=0, active_time=2433 secs
Nov 6 02:19:46 L4 ntpd[23035]: Deleting interface #3 wwan0, 10.144.34.75#123, interface stats: received=144, sent=144, dropped=0, active_time=2433 secs
Nov 6 02:19:46 L4 ntpd[23035]: 91.189.94.4 interface 10.144.34.75 -> (none)
Nov 6 02:19:46 L4 ntpd[23035]: 212.7.1.132 interface 10.144.34.75 -> (none)
Nov 6 02:19:46 L4 ntpd[23035]: 193.40.0.5 interface 10.144.34.75 -> (none)
Nov 6 02:19:46 L4 ntpd[23035]: 5.101.116.20 interface 10.144.34.75 -> (none)
Nov 6 02:19:46 L4 ntpd[23035]: 46.22.223.220 interface 10.144.34.75 -> (none)
Nov 6 02:19:46 L4 ntpd[23035]: peers refreshed
Nov 6 02:19:48 L4 ModemManager[982]: [/dev/cdc-wdm0] Queried max control message size: 512
Nov 6 02:19:48 L4 ModemManager[982]: <info> Creating modem with plugin 'Generic' and '3' ports
Nov 6 02:19:48 L4 ModemManager[982]: <info> Modem for device at '/sys/devices/pci0000:00/0000:00:14.0/usb1/1-10' successfully created
Nov 6 02:19:48 L4 ModemManager[982]: [/dev/cdc-wdm0] Queried max control message size: 512
Nov 6 02:19:49 L4 ModemManager[982]: <info> Modem: state changed (unknown -> disabled)
Nov 6 02:19:49 L4 NetworkManager[1024]: <warn> (cdc-wdm0): failed to look up interface index
Nov 6 02:19:49 L4 NetworkManager[1024]: <info> WWAN now disabled by management service
Nov 6 02:19:49 L4 NetworkManager[1024]: <info> (cdc-wdm0): new Broadband device (driver: 'cdc_mbim, cdc_acm' ifindex: 0)
Nov 6 02:19:49 L4 NetworkManager[1024]: <info> (cdc-wdm0): exported as /org/freedesktop/NetworkManager/Devices/6
Nov 6 02:19:49 L4 NetworkManager[1024]: <info> (cdc-wdm0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Nov 6 02:19:49 L4 NetworkManager[1024]: <info> (cdc-wdm0): deactivating device (reason 'managed') [2]
Nov 6 02:19:49 L4 NetworkManager[1024]: <info> NetworkManager state is now DISCONNECTED
Nov 6 02:19:49 L4 NetworkManager[1024]: <info> (cdc-wdm0): device state change: unavailable -> disconnected (reason 'none') [20 30 0]
after that I can no longer reconnect:
Aug 26 16:45:03 L4 NetworkManager[965]: <info> Activation (cdc-wdm1) starting connection 'EE Elisa Any'
Aug 26 16:45:03 L4 NetworkManager[965]: <info> (cdc-wdm1): device state change: disconnected -> prepare (reason 'none') [30 40 0]
Aug 26 16:45:03 L4 NetworkManager[965]: <info> Activation (cdc-wdm1) Stage 1 of 5 (Device Prepare) scheduled...
Aug 26 16:45:03 L4 NetworkManager[965]: <info> Activation (cdc-wdm1) Stage 1 of 5 (Device Prepare) started...
Aug 26 16:45:03 L4 NetworkManager[965]: <info> Activation (cdc-wdm1) Stage 1 of 5 (Device Prepare) complete.
Aug 26 16:45:03 L4 ModemManager[923]: <info> Simple connect started...
Aug 26 16:45:03 L4 ModemManager[923]: <info> Simple connect state (4/8): Wait to get fully enabled
Aug 26 16:45:03 L4 ModemManager[923]: <info> Simple connect state (5/8): Register
Aug 26 16:45:03 L4 ModemManager[923]: <info> Simple connect state (6/8): Bearer
Aug 26 16:45:03 L4 ModemManager[923]: <info> Simple connect state (7/8): Connect
Aug 26 16:45:03 L4 ModemManager[923]: <info> Modem /org/freedesktop/ModemManager1/Modem/12: state changed (registered -> connecting)
Aug 26 16:45:03 L4 NetworkManager[965]: <info> (cdc-wdm1) modem state changed, 'registered' --> 'connecting' (reason: user-requested)
Aug 26 16:45:03 L4 ModemManager[923]: <info> Modem /org/freedesktop/ModemManager1/Modem/12: state changed (connecting -> registered)
Aug 26 16:45:03 L4 NetworkManager[965]: <info> (cdc-wdm1) modem state changed, 'connecting' --> 'registered' (reason: user-requested)
Aug 26 16:45:03 L4 NetworkManager[965]: <warn> (cdc-wdm1) failed to connect modem: Failure
Aug 26 16:45:03 L4 NetworkManager[965]: <info> (cdc-wdm1): device state change: prepare -> failed (reason 'unknown') [40 120 1]
Aug 26 16:45:03 L4 NetworkManager[965]: <info> Marking connection 'EE Elisa Any' invalid.
Aug 26 16:45:03 L4 NetworkManager[965]: <warn> Activation (cdc-wdm1) failed for connection 'EE Elisa Any'
Aug 26 16:45:03 L4 NetworkManager[965]: <info> (cdc-wdm1): device state change: failed -> disconnected (reason 'none') [120 30 0]
Aug 26 16:45:03 L4 NetworkManager[965]: <info> (cdc-wdm1): deactivating device (reason 'none') [0]
答案2
我在使用 Sierra Wireless MC7710 时也遇到了同样的问题。这些问题发生在我禁用 PIN 之后,因为每次登录时都会被要求输入密钥环和 PIN,这让我很恼火。组权限似乎出了问题。在我的例子中,“组”中缺少“拨出”,我添加了它
sudo usermod -a -G dip,dialout $(whoami)
如下所述:
https://wiki.ubuntuusers.de/Mobiler_Datentransfer/UMTS-Checkliste/
重新启动后,调制解调器就可以工作了。
与该问题无关过去几年,我遇到过网络管理器的错误行为,有时 GUI 中会缺少“连接”选项,重启 1 或 2 次后又会恢复。最近,我还找到了解决方案,因此,如果你的调制解调器有问题,有时网络指示器不显示,那么这总是值得一试的:当网络管理器缺少连接选项时,有两个选项:
答:只需重新启动网络管理器,在 16.04 中可以使用:
sudo systemctl restart NetworkManager
B. 使用 KDE 网络管理器并与其连接(这也有能够创建热点的优点)。
要在 Ubuntu 中安装 KDE Netwok Manger(以及标准版本):
sudo apt-get update; sudo apt-get install plasma-nm
修复 Unity Dash 中缺失的条目:“kde5-nm-connection-editor”现已安装,但由于错误,未显示在 Unity Dash 中。要修复此问题,请打开终端并输入:
sudo -H gedit /usr/share/applications/kde5-nm-connection-editor.desktop
NoDisplay=true
然后通过在包含以下内容的行前添加内容来注释该行#
,并保存更改。现在通过 Dash 搜索并打开:
kde5-nm-connection-editor