有时,我的 PC (Linux Mint 18.1) 在不活动后尝试自行进入睡眠/挂起状态时会挂起。当我回来时,显示器处于待机状态,但计算机仍在运行(风扇和灯仍然亮着)。鼠标、键盘无反应;我必须进行硬重置才能摆脱这种情况。
我不知道这个问题何时或为何潜入我的系统。这可能与我几个月前安装的wifi适配器(TP-Link TL-WDN4800 N900)有关。
我已经尝试使用不同的内核(4.4.0.93、4.10.0.33、4.11.0.14)解决问题,但没有运气。
有一个 ATI 图形适配器,但我没有更改任何与其相关的内容,并且在问题出现之前它就可以工作。
/var/log/syslog
这是机器冻结之前的最后一部分:
15:53:12 NetworkManager[1275]: <info> [1504014792.3767] manager: sleep requested (sleeping: no enabled: yes)
15:53:12 NetworkManager[1275]: <info> [1504014792.3768] manager: sleeping...
15:53:12 NetworkManager[1275]: <info> [1504014792.3769] manager: NetworkManager state is now ASLEEP
15:53:12 NetworkManager[1275]: <info> [1504014792.3773] device (wls1): state change: activated -> deactivating (reason 'sleeping') [100 110 37]
15:53:12 NetworkManager[1275]: <info> [1504014792.3867] device (wls1): state change: deactivating -> disconnected (reason 'sleeping') [110 30 37]
15:53:12 avahi-daemon[1209]: Withdrawing address record for [ADDR REMOVED] on wls1.
15:53:12 avahi-daemon[1209]: Leaving mDNS multicast group on interface wls1.IPv6 with address [ADDR REMOVED].
15:53:12 avahi-daemon[1209]: Interface wls1.IPv6 no longer relevant for mDNS.
15:53:12 NetworkManager[1275]: <info> [1504014792.4195] dhcp4 (wls1): canceled DHCP transaction, DHCP client pid 16722
15:53:12 NetworkManager[1275]: <info> [1504014792.4196] dhcp4 (wls1): state changed bound -> done
15:53:12 kernel: [29251.790575] wls1: deauthenticating from [ADDR REMOVED] by local choice (Reason: 3=DEAUTH_LEAVING)
15:53:12 wpa_supplicant[1472]: wls1: CTRL-EVENT-DISCONNECTED bssid=[ADDR REMOVED] reason=3 locally_generated=1
15:53:12 NetworkManager[1275]: <info> [1504014792.4250] dns-mgr: Removing DNS information from /sbin/resolvconf
15:53:12 avahi-daemon[1209]: Withdrawing address record for 192.168.178.14 on wls1.
15:53:12 avahi-daemon[1209]: Leaving mDNS multicast group on interface wls1.IPv4 with address 192.168.178.14.
15:53:12 avahi-daemon[1209]: Interface wls1.IPv4 no longer relevant for mDNS.
15:53:12 wpa_supplicant[1472]: wls1: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
15:53:12 kernel: [29251.799071] cfg80211: World regulatory domain updated:
15:53:12 kernel: [29251.799075] cfg80211: DFS Master region: unset
15:53:12 kernel: [29251.799077] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
15:53:12 kernel: [29251.799081] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
15:53:12 kernel: [29251.799084] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
15:53:12 kernel: [29251.799086] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
15:53:12 kernel: [29251.799089] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
15:53:12 kernel: [29251.799092] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
15:53:12 kernel: [29251.799095] cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
15:53:12 kernel: [29251.799097] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
15:53:12 kernel: [29251.799099] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
15:53:12 dbus[1251]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service'
15:53:12 NetworkManager[1275]: <warn> [1504014792.4609] sup-iface[[ADDR REMOVED],wls1]: connection disconnected (reason -3)
15:53:12 NetworkManager[1275]: <info> [1504014792.4610] device (wls1): supplicant interface state: completed -> disconnected
15:53:12 NetworkManager[1275]: <info> [1504014792.4617] device (wls1): state change: disconnected -> unmanaged (reason 'sleeping') [30 10 37]
15:53:12 systemd[1]: Starting Network Manager Script Dispatcher Service...
15:53:12 systemd[1]: Reached target Sleep.
15:53:12 systemd[1]: Starting Suspend...
15:53:12 dbus[1251]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
15:53:12 systemd[1]: Started Network Manager Script Dispatcher Service.
15:53:12 nm-dispatcher: req:1 'down' [wls1]: new request (2 scripts)
15:53:12 nm-dispatcher: req:1 'down' [wls1]: start running ordered scripts...
15:53:12 wpa_supplicant[1472]: nl80211: deinit ifname=wls1 disabled_11b_rates=0
15:53:13 ntpd[1683]: Deleting interface #11 wls1, 192.168.178.14#123, interface stats: received=136, sent=136, dropped=0, active_time=3772 secs
15:53:13 ntpd[1683]: [ADDR REMOVED] local addr 192.168.178.14 -> <null>
15:53:13 ntpd[1683]: [ADDR REMOVED] local addr 192.168.178.14 -> <null>
15:53:13 ntpd[1683]: [ADDR REMOVED] local addr 192.168.178.14 -> <null>
15:53:13 ntpd[1683]: [ADDR REMOVED] local addr 192.168.178.14 -> <null>
15:53:13 ntpd[1683]: [ADDR REMOVED] local addr 192.168.178.14 -> <null>
15:53:13 ntpd[1683]: [ADDR REMOVED] local addr 192.168.178.14 -> <null>
15:53:13 ntpd[1683]: [ADDR REMOVED] local addr 192.168.178.14 -> <null>
15:53:13 ntpd[1683]: [ADDR REMOVED] local addr 192.168.178.14 -> <null>
15:53:13 ntpd[1683]: [ADDR REMOVED] local addr 192.168.178.14 -> <null>
15:53:13 ntpd[1683]: [ADDR REMOVED] local addr 192.168.178.14 -> <null>
15:53:13 ntpd[1683]: [ADDR REMOVED] local addr 192.168.178.14 -> <null>
15:53:13 ntpd[1683]: [ADDR REMOVED] local addr 192.168.178.14 -> <null>
15:53:13 ntpd[1683]: [ADDR REMOVED] local addr 192.168.178.14 -> <null>
15:53:13 ntpd[1683]: Deleting interface #12 wls1, [ADDR REMOVED]#123, interface stats: received=0, sent=0, dropped=0, active_time=3772 secs
15:53:22 systemd-sleep[17957]: Selected interface 'wls1'
15:53:22 systemd-sleep[17957]: 'SUSPEND' command timed out.
15:53:22 systemd-sleep[17959]: /lib/systemd/system-sleep/wpasupplicant failed with error code 254.
15:53:22 systemd-sleep[17957]: Suspending system...
有谁知道如何解决这一问题?
答案1
某些应用程序可以选择在活动时禁用休眠功能。例如, Transmission-gtk 有选项Inhibit hibernation when torrents are active
。尝试取消选中它(在我的例子中它解决了问题)。
PS Arch linux、AMD Phenom2 等