我有一台戴尔 XPS(9550 版本 - 这与 Precision 5510 的硬件基本相同,后者可直接安装 Ubuntu),令人惊讶的是,它在 16.04 上几乎总是可以正常工作。不过,在过去几天里,暂停功能停止了,使用电池供电时1 .
基本上,笔记本电脑似乎处于挂起状态,但当我唤醒它时,它会经历正常的启动过程。
/var/log/syslog
以下是暂停日志的最后几行:
Jan 14 13:06:10 xps15-laptop whoopsie[827]: [13:06:10] offline
Jan 14 13:06:11 xps15-laptop kernel: [ 15.829125] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
Jan 14 13:06:11 xps15-laptop wpa_supplicant[1300]: nl80211: deinit ifname=p2p-dev-wlp2s0 disabled_11b_rates=0
Jan 14 13:06:11 xps15-laptop nm-dispatcher: req:3 'down' [wlp2s0]: new request (1 scripts)
Jan 14 13:06:11 xps15-laptop nm-dispatcher: req:3 'down' [wlp2s0]: start running ordered scripts...
Jan 14 13:06:11 xps15-laptop wpa_supplicant[1300]: nl80211: deinit ifname=wlp2s0 disabled_11b_rates=0
Jan 14 13:06:12 xps15-laptop systemd[1]: Reached target Sleep.
Jan 14 13:06:12 xps15-laptop systemd[1]: Starting Suspend...
Jan 14 13:06:12 xps15-laptop systemd-sleep[2271]: Failed to connect to non-global ctrl_ifname: (nil) error: No such file or directory
Jan 14 13:06:12 xps15-laptop systemd-sleep[2273]: /lib/systemd/system-sleep/wpasupplicant failed with error code 255.
Jan 14 13:06:12 xps15-laptop systemd-sleep[2271]: Suspending system...
有什么东西跳出来了吗?接下来的几行似乎正是你对冷启动所期望的:
Jan 14 13:06:54 xps15-laptop rsyslogd: [origin software="rsyslogd" swVersion="8.16.0" x-pid="923" x-info="http://www.rsyslog.com"] start
Jan 14 13:06:54 xps15-laptop rsyslogd-2222: command 'KLogPermitNonKernelFacility' is currently not permitted - did you already set it via a RainerScript command (v6+ config)? [v8.16.0 try http
://www.rsyslog.com/e/2222 ]
Jan 14 13:06:54 xps15-laptop rsyslogd: rsyslogd's groupid changed to 109
Jan 14 13:06:54 xps15-laptop rsyslogd: rsyslogd's userid changed to 105
Jan 14 13:06:54 xps15-laptop systemd-modules-load[228]: Inserted module 'lp'
Jan 14 13:06:54 xps15-laptop systemd-modules-load[228]: Inserted module 'ppdev'
Jan 14 13:06:54 xps15-laptop systemd-modules-load[228]: Inserted module 'parport_pc'
Jan 14 13:06:54 xps15-laptop systemd[1]: Started Apply Kernel Variables.
Jan 14 13:06:54 xps15-laptop loadkeys[220]: Loading /etc/console-setup/cached.kmap.gz
Jan 14 13:06:54 xps15-laptop systemd[1]: Started Set console keymap.
Jan 14 13:06:54 xps15-laptop systemd[1]: Started Create Static Device Nodes in /dev.
Jan 14 13:06:54 xps15-laptop systemd[1]: Starting udev Kernel Device Manager...
Jan 14 13:06:54 xps15-laptop systemd[1]: Started udev Kernel Device Manager.
Jan 14 13:06:54 xps15-laptop systemd[1]: Starting Remount Root and Kernel File Systems...
Jan 14 13:06:54 xps15-laptop systemd[1]: Started Remount Root and Kernel File Systems.
Jan 14 13:06:54 xps15-laptop systemd[1]: Reached target Local File Systems (Pre).
除了内核命中版本4.4.0-59
(以前是4.4.0-57
)之外,最近没有太多变化,并且我调整了 BIOS 选项以禁用我的嵌入式声音设备(此后恢复没有变化)。
最后,成功挂起/唤醒的样子如下(使用电池供电时):
Jan 14 13:15:49 xps15-laptop kernel: [ 540.190809] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
Jan 14 13:15:49 xps15-laptop wpa_supplicant[1298]: nl80211: deinit ifname=p2p-dev-wlp2s0 disabled_11b_rates=0
Jan 14 13:15:49 xps15-laptop dbus[803]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service'
Jan 14 13:15:49 xps15-laptop systemd[1]: Reached target Sleep.
Jan 14 13:15:49 xps15-laptop systemd[1]: Starting Suspend...
Jan 14 13:15:49 xps15-laptop systemd[1]: Starting Network Manager Script Dispatcher Service...
Jan 14 13:15:49 xps15-laptop dbus[803]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Jan 14 13:15:49 xps15-laptop systemd[1]: Started Network Manager Script Dispatcher Service.
Jan 14 13:15:49 xps15-laptop nm-dispatcher: req:1 'down' [wlp2s0]: new request (1 scripts)
Jan 14 13:15:49 xps15-laptop nm-dispatcher: req:1 'down' [wlp2s0]: start running ordered scripts...
Jan 14 13:15:49 xps15-laptop wpa_supplicant[1298]: nl80211: deinit ifname=wlp2s0 disabled_11b_rates=0
Jan 14 13:15:54 xps15-laptop whoopsie[931]: [13:15:54] Cannot reach: https://daisy.ubuntu.com
Jan 14 13:15:54 xps15-laptop whoopsie[931]: [13:15:54] offline
Jan 14 13:15:54 xps15-laptop whoopsie[931]: [13:15:54] Cannot reach: https://daisy.ubuntu.com
Jan 14 13:15:59 xps15-laptop systemd-sleep[2690]: Selected interface 'wlp2s0'
Jan 14 13:15:59 xps15-laptop systemd-sleep[2690]: 'SUSPEND' command timed out.
Jan 14 13:15:59 xps15-laptop systemd-sleep[2696]: /lib/systemd/system-sleep/wpasupplicant failed with error code 254.
Jan 14 13:15:59 xps15-laptop systemd-sleep[2690]: Suspending system...
Jan 14 13:16:52 xps15-laptop kernel: [ 550.254337] PM: Syncing filesystems ... done.
Jan 14 13:16:52 xps15-laptop kernel: [ 550.268354] PM: Preparing system for sleep (mem)
Jan 14 13:16:52 xps15-laptop kernel: [ 550.268979] Freezing user space processes ... (elapsed 0.002 seconds) done.
Jan 14 13:16:52 xps15-laptop kernel: [ 550.271751] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Jan 14 13:16:52 xps15-laptop kernel: [ 550.273159] PM: Suspending system (mem)
Jan 14 13:16:52 xps15-laptop kernel: [ 550.273197] Suspending console(s) (use no_console_suspend to debug)
Jan 14 13:16:52 xps15-laptop kernel: [ 550.486068] brcmf_fil_cmd_data: bus is down. we have nothing to do.
Jan 14 13:16:52 xps15-laptop kernel: [ 550.613975] nouveau 0000:01:00.0: DRM: resuming kernel object tree...
Jan 14 13:16:52 xps15-laptop kernel: [ 550.717482] nouveau 0000:01:00.0: priv: HUB0: 10ecc0 ffffffff (1d40822c)
Jan 14 13:16:52 xps15-laptop kernel: [ 550.764382] nouveau 0000:01:00.0: DRM: resuming client object trees...
Jan 14 13:16:52 xps15-laptop kernel: [ 550.764397] nouveau 0000:01:00.0: DRM: evicting buffers...
Jan 14 13:16:52 xps15-laptop kernel: [ 550.764398] nouveau 0000:01:00.0: DRM: waiting for kernel channels to go idle...
Jan 14 13:16:52 xps15-laptop kernel: [ 550.764412] nouveau 0000:01:00.0: DRM: suspending client object trees...
Jan 14 13:16:52 xps15-laptop kernel: [ 550.765770] nouveau 0000:01:00.0: DRM: suspending kernel object tree...
Jan 14 13:16:52 xps15-laptop kernel: [ 551.638247] PM: suspend of devices complete after 1155.310 msecs
Jan 14 13:16:52 xps15-laptop kernel: [ 551.654829] PM: late suspend of devices complete after 16.561 msecs
Jan 14 13:16:52 xps15-laptop kernel: [ 551.656867] xhci_hcd 0000:00:14.0: System wakeup enabled by ACPI
Jan 14 13:16:52 xps15-laptop kernel: [ 551.671878] PM: noirq suspend of devices complete after 17.027 msecs
Jan 14 13:16:52 xps15-laptop kernel: [ 551.672619] ACPI: Preparing to enter system sleep state S3
Jan 14 13:16:52 xps15-laptop kernel: [ 551.695080] ACPI : EC: EC stopped
Jan 14 13:16:52 xps15-laptop kernel: [ 551.695082] PM: Saving platform NVS memory
请注意,唤醒“之后”的某些消息(从 开始13:16:52
)似乎实际上与导致挂起的操作有关。我猜日志记录功能会在挂起期间的某个时间点关闭,因此该时间点之后的消息仅在唤醒后显示(因此在失败的情况下我看不到这些消息)。
1尤其是,如果笔记本电脑在整个可疑过程中(在挂起时、唤醒时以及其间的所有时间)都使用交流电源,则挂起功能可以正常工作。在主机处于睡眠状态时,只需拔掉交流适配器,哪怕是一秒钟,都会导致上述故障。
答案1
以下是有效的方法:彻底关闭笔记本电脑,然后再打开。注意:不要只是重新启动……要彻底关闭电源。
唯一的副作用是 Wifi 停止工作(因为无线接口根本无法识别)。一个简单的sudo systemctl restart NetworkManager
方法可以解决这个问题……如果您不想在挂起后再这样做,您可以编写一个脚本:
/lib/systemd/system-sleep/99restartnm
其中包含:
/bin/sh #!/bin/sh 复制代码 案例“$1” 邮政) systemctl 重启 NetworkManager ;; 埃萨克
并使其可执行:
sudo chmod +755 /lib/systemd/system-sleep/99restartnm
(我知道答案在问题的评论中,但很容易被忽略...感谢@BeeOnRope,除了完全关闭电源之外,我确实尝试了任何其他方法......捂脸)
答案2
自从 XPS 9550 首次推出以来,过去 2.5 年里我一直遇到同样的问题,每隔几周就会发生一次。我一直在使用 Debian/Ubuntu Linux,但评论 #20 表明 Windows 上也会出现这种情况:
http://forum.notebookreview.com/threads/xps-9550-crashes-and-reboots-in-sleep.789827/page-2
问题似乎出在嵌入式控制器上,因此从挂起状态恢复会导致冷重置。解决方法是完全关闭电源,拔下充电器并重新插入;这会重新启动嵌入式控制器,清除故障状态。
答案3
在很长时间没有出现挂起/恢复失败的问题后,它又开始出现问题了。由于我更新东西的频率相当高,我怀疑这是内核升级造成的。
距离我上次更新 BIOS 已经有几个月了,我从 1.2.19 更新到了 1.2.25。更新 BIOS 后,挂起/恢复问题消失了。我的 wifi 也没有问题。运行带有 xfce 风格的 Ubuntu 16.10。
祝大家好运。
答案4
我每天在 Ubuntu 18.04 上使用我的 XPS 9550,大约 1 年前,使用较新的 BIOS 时,我不再遇到此问题。这与嵌入式控制器中的行为有关,该控制器已在 1.6.1/1.7.0 中更新固件以解决误按键问题。如果它使用共享代码库,则可能也会引入针对挂起/恢复问题的修复。我怀疑 EC 的一部分在挂起期间进入了意外状态,并且首次执行 BIOS 时,S3 恢复代码路径在恢复时未正确采用。
在我插入 LG 27UD88W USB-C 显示器进行充电(100W 配置)后,我仍然发现系统会随时挂起,但使用 65W 和 90W USB-C 充电器时不会出现这种情况;我上报了错误,但戴尔却拖拖拉拉,因为它现在是一个老平台了。我只能关机。
请注意,当笔记本电脑关闭且电源线(USB-C 或戴尔)插入时,EC 会重置 - 这将清除挂起/恢复问题;即使充满电,您也会看到前面的白色充电 LED 亮起 1 秒。
我建议尝试 Ubuntu 18.04 和 BIOS 1.8.0 @http://downloads.dell.com/published/pages/xps-15-9550-laptop.html
最后,为了获得最佳电池运行时间,我设置了一个 UEFI 非易失性变量来禁用独立 GPU;如果有兴趣,我可以在另一个帖子中发布详细信息。
担