[更新]:
Kubuntu中存在相同的问题,并且以相同的方式解决。
[解决]:
通过应用以下命令,nmcli nm
我得到了以下信息:
暂停之前
RUNNING STATE WIFI-HARDWARE WIFI WWAN-HARDWARE WWAN
running connected enabled enabled enabled enabled
如您所见,状态已连接,其余的已启用并正在运行
暂停后
RUNNING STATE WIFI-HARDWARE WIFI WWAN-HARDWARE WWAN
running asleep enabled enabled enabled disabled
如您所见,状态处于睡眠状态,这意味着我们亲爱的网络管理器仍在小睡,因此使用轻松的命令行来解决:
sudo nmcli nm sleep false
这告诉网络管理器将其唤醒。为了使它具有永久性:在以下内容中
创建一个脚本/etc/pm/sleep.d
(并且不要忘记将该脚本标记为可执行文件):
#!/bin/sh
case "${1}" in
resume|thaw)
nmcli nm sleep false
;;
esac
由于这个
原来的问题:
我刚刚下载了Ubuntu 14.04,并安装在我的笔记本电脑上:具有Intel P8400 Core2Duo x64处理器的ASUS X61SL。
当我合上盖子时,系统将暂停,但是当我再次打开盖子并恢复时,无线网络未激活(整个网络被禁用),并且当我选择“启用网络”时,没有任何反应。
这是有关我的无线适配器的信息:
$ lspci | grep -i wireless
02:00.0 Network controller: Qualcomm Atheros AR928X Wireless Network Adapter (PCI-Express) (rev 01)
在Ubuntu 13.04,Linux Mint Debian Edition或Debian 7 Wheezy(GNOME或KDE)中不存在此问题。
编辑:进行以下结果的测试:
问题影响了我的无线和有线网络。
注意:我需要pci=nomsi
将这行添加到grub才能启动。
手动注销时,先挂起然后恢复,然后再登录,一切正常。
登录时直接挂起时,会发生问题。
锁定和挂起与直接挂起导致相同的问题。
同样,此问题的出现也会影响注销功能:如果您从统一面板的用户菜单中选择了注销,则不会注销,但是如果使用命令行,gnome-session-quit --logout
则可以注销。
现在lshw -C network
输出:
正常(全功能网络):
*-network
description: Ethernet interface
product: 191 Gigabit Ethernet Adapter
vendor: Silicon Integrated Systems [SiS]
physical id: 4
bus info: pci@0000:00:04.0
logical name: eth0
version: 02
serial: 00:24:8c:1e:f8:53
size: 10Mbit/s
capacity: 100Mbit/s
width: 32 bits
clock: 33MHz
capabilities: pm bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=sis190 driverversion=1.4 duplex=half latency=0 link=no multicast=yes port=MII speed=10Mbit/s
resources: irq:19 memory:fddfcc00-fddfcc7f ioport:cc00(size=128)
*-network
description: Wireless interface
product: AR928X Wireless Network Adapter (PCI-Express)
vendor: Qualcomm Atheros
physical id: 0
bus info: pci@0000:02:00.0
logical name: wlan0
version: 01
serial: 00:15:af:e2:13:db
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=ath9k driverversion=3.13.0-24-generic firmware=N/A ip=6.6.6.8 latency=0 link=yes multicast=yes wireless=IEEE 802.11bgn
resources: irq:16 memory:fdff0000-fdffffff
恢复后(“ /etc/pm/config.d”不包含“ unload_modules”):
*-network DISABLED
description: Ethernet interface
product: 191 Gigabit Ethernet Adapter
vendor: Silicon Integrated Systems [SiS]
physical id: 4
bus info: pci@0000:00:04.0
logical name: eth0
version: 02
serial: 00:24:8c:1e:f8:53
size: 10Mbit/s
capacity: 100Mbit/s
width: 32 bits
clock: 33MHz
capabilities: pm bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=sis190 driverversion=1.4 duplex=half latency=0 link=no multicast=yes port=MII speed=10Mbit/s
resources: irq:19 memory:fddfcc00-fddfcc7f ioport:cc00(size=128)
*-network DISABLED
description: Wireless interface
product: AR928X Wireless Network Adapter (PCI-Express)
vendor: Qualcomm Atheros
physical id: 0
bus info: pci@0000:02:00.0
logical name: wlan0
version: 01
serial: 00:15:af:e2:13:db
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=ath9k driverversion=3.13.0-24-generic firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11bgn
resources: irq:16 memory:fdff0000-fdffffff
当我按照此处建议将文件unload_modules添加到目录“ /etc/pm/config.d”时,注销后,挂起,恢复然后登录网络即可,但是我无法连接到无线网络。
再次lshw -C network
恢复后的结果(“ /etc/pm/config.d”包含“ unload_modules”):
*-network DISABLED
description: Ethernet interface
product: 191 Gigabit Ethernet Adapter
vendor: Silicon Integrated Systems [SiS]
physical id: 4
bus info: pci@0000:00:04.0
logical name: eth0
version: 02
serial: 00:24:8c:1e:f8:53
size: 10Mbit/s
capacity: 100Mbit/s
width: 32 bits
clock: 33MHz
capabilities: pm bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=sis190 driverversion=1.4 duplex=half latency=0 link=no multicast=yes port=MII speed=10Mbit/s
resources: irq:19 memory:fddfcc00-fddfcc7f ioport:cc00(size=128)
*-network DISABLED
description: Wireless interface
product: AR928X Wireless Network Adapter (PCI-Express)
vendor: Qualcomm Atheros
physical id: 0
bus info: pci@0000:02:00.0
logical name: wlan0
version: 01
serial: 00:15:af:e2:13:db
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=ath9k driverversion=3.13.0-24-generic firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11bgn
resources: irq:16 memory:fdff0000-fdffffff
“ unload_modules”的内容,其中:
SUSPEND_MODULES="$SUSPEND_MODULES ath9k"
SUSPEND_MODULES="$SUSPEND_MODULES sis190"
其中“ ath9k”是我的无线模块,“ sis190”是我的以太网模块。
nmcli nm
抱怨:Object 'nm' is unknown
nmcli general status