Ubuntu 16.04 LTS、Dell XPS 9350 上的挂起功能损坏

Ubuntu 16.04 LTS、Dell XPS 9350 上的挂起功能损坏

自从我在 Dell XPS 9350 上从 Ubuntu 15.10 升级到 Ubuntu 16.04 LTS 后,挂起功能就坏了。合上盖子时,笔记本电脑会挂起,但恢复失败并重新启动。我试了pm-suspend又试,但恢复失败,笔记本电脑重新启动。当我回到 Ubuntu 时,我收到以下错误。在我看来,奇怪的是它声称内核不是官方的 ubuntu 软件包。无论如何,我的 Linux 知识不足以知道这里出了什么问题。

暂停/恢复失败第 1 部分

暂停/恢复失败第 2 部分

编辑:我刚刚尝试安装内核 4.4.8,应该可以修复一些问题,但并没有修复这个问题。现在我也尝试了 4.4.9 和 4.6 RC7。它们都没有帮我修复这个问题。

答案1

我在 XPS 15 9550 上遇到了同样的问题。对我而言唯一有效的方法是进入 BIOS 并在电源选项下打开“阻止睡眠”。这显然会关闭英特尔快速启动和睡眠(状态 3)。因此从技术上讲,机器不会休眠/挂起(状态 3),但在关闭盖子/打开/电源按钮时它会进入更高的睡眠状态并恢复正常。似乎在内核或驱动程序中解决问题之前,这可能是唯一的选择,也是我唯一有效的方法。

编辑:这个脚本对我有用,我能够在 bios 中关闭 Block Sleep!睡眠/挂起功能现在可以在我的 ubuntu 16.04 上运行: https://ubuntuforums.org/showthread.php?t=2317843&page=11

答案2

在我从 16.04 LTS 升级到 17.10 后,我的 Dell XPS 13 9350 上的恢复功能中断了。据我所知,当我合上盖子时,系统会暂停(尽管我猜它可能在那时崩溃了)。我在 /var/log/syslog 中看到这样的条目:

Nov 22 21:42:01 foxy systemd[1]: Starting TLP suspend/resume...
Nov 22 21:42:02 foxy systemd[1]: Started TLP suspend/resume.
Nov 22 21:42:02 foxy systemd[1]: Reached target Sleep.
Nov 22 21:42:02 foxy systemd[1]: Starting Suspend...
Nov 22 21:42:02 foxy systemd-sleep[3511]: Failed to connect to non-global ctrl_ifname: (nil)  error: No such file or directory
Nov 22 21:42:02 foxy systemd-sleep[3519]: /lib/systemd/system-sleep/wpasupplicant failed with error code 255.
Nov 22 21:42:02 foxy systemd-sleep[3511]: Suspending system...

这些消息本身并没有真正表明任何异常(至少对于我的系统而言——我很好奇这些错误意味着什么)。当我打开盖子时,我会看到 BIOS POST,系统会启动。这反映在日志中,日志中有如下消息紧接着上面的块:

Nov 22 21:49:24 foxy rsyslogd: [origin software="rsyslogd" swVersion="8.16.0" x-pid="891" x-info="http://www.rsyslog.com"] start
Nov 22 21:49:24 foxy rsyslogd: rsyslogd's groupid changed to 104
Nov 22 21:49:24 foxy rsyslogd: rsyslogd's userid changed to 101
Nov 22 21:49:24 foxy rsyslogd-2039: Could not open output pipe '/dev/xconsole':: No such file or directory [v8.16.0 try http://www.rsyslog.com/e/2039 ]
Nov 22 21:49:24 foxy rsyslogd-2007: action 'action 11' suspended, next retry is Wed Nov 22 21:49:54 2017 [v8.16.0 try http://www.rsyslog.com/e/2007 ]
Nov 22 21:49:24 foxy kernel: [    0.000000] random: get_random_bytes called from start_kernel+0x42/0x4e1 with crng_init=0
Nov 22 21:49:24 foxy kernel: [    0.000000] Linux version 4.13.0-17-generic (buildd@lcy01-amd64-011) (gcc version 7.2.0 (Ubuntu 7.2.0-8ubuntu3)) #20-Ubuntu SMP Mon Nov 6 10:04:08 UTC 2017 (Ubuntu 4.13.0-17.20-generic 4.13.8)
Nov 22 21:49:24 foxy kernel: [    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.13.0-17-generic.efi.signed root=UUID=e51bd6de-6176-4dcf-aaa5-7030d32d15bb ro quiet splash vt.handoff=7
Nov 22 21:49:24 foxy kernel: [    0.000000] KERNEL supported cpus:
Nov 22 21:49:24 foxy kernel: [    0.000000]   Intel GenuineIntel
Nov 22 21:49:24 foxy kernel: [    0.000000]   AMD AuthenticAMD
Nov 22 21:49:24 foxy kernel: [    0.000000]   Centaur CentaurHauls
...

安装“uswsusp”包后,Resume 开始正常工作:

sudo apt-get install uswsusp

这是此处描述的解决方案:XPS 13 9350 (2016) 暂停 - 声音问题

现在,当我暂停时,我看到更多的系统日志条目表明系统正在正确进入暂停状态:

Nov 22 22:49:41 foxy systemd[1]: Starting TLP suspend/resume...
Nov 22 22:49:42 foxy systemd[1]: Started TLP suspend/resume.
Nov 22 22:49:42 foxy systemd[1]: Reached target Sleep.
Nov 22 22:49:42 foxy systemd[1]: Starting Suspend...
Nov 22 22:49:42 foxy systemd-sleep[3234]: Failed to connect to non-global ctrl_ifname: (nil)  error: No such file or directory
Nov 22 22:49:42 foxy systemd-sleep[3241]: /lib/systemd/system-sleep/wpasupplicant failed with error code 255.
Nov 22 22:49:42 foxy systemd-sleep[3234]: Suspending system...
Nov 22 22:49:42 foxy kernel: [   51.749528] PM: Syncing filesystems ... done.
Nov 22 22:49:42 foxy kernel: [   51.786975] PM: Preparing system for sleep (mem)
Nov 22 22:49:59 foxy kernel: [   51.788351] Freezing user space processes ... (elapsed 0.128 seconds) done.
Nov 22 22:49:59 foxy kernel: [   51.917175] OOM killer disabled.
Nov 22 22:49:59 foxy kernel: [   51.917176] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Nov 22 22:49:59 foxy kernel: [   51.918926] PM: Suspending system (mem)
Nov 22 22:49:59 foxy kernel: [   51.919012] Suspending console(s) (use no_console_suspend to debug)
Nov 22 22:49:59 foxy kernel: [   52.123320] psmouse serio1: Failed to disable mouse on isa0060/serio1
Nov 22 22:49:59 foxy kernel: [   54.212355] PM: suspend of devices complete after 2293.959 msecs
Nov 22 22:49:59 foxy kernel: [   54.234367] PM: late suspend of devices complete after 22.020 msecs
Nov 22 22:49:59 foxy kernel: [   54.274131] PM: noirq suspend of devices complete after 39.764 msecs
Nov 22 22:49:59 foxy kernel: [   54.274510] ACPI: Preparing to enter system sleep state S3
Nov 22 22:49:59 foxy kernel: [   54.314470] ACPI: EC: event blocked
Nov 22 22:49:59 foxy kernel: [   54.314471] ACPI: EC: EC stopped
Nov 22 22:49:59 foxy kernel: [   54.314472] PM: Saving platform NVS memory
Nov 22 22:49:59 foxy kernel: [   54.314586] Disabling non-boot CPUs ...
Nov 22 22:49:59 foxy kernel: [   54.330929] IRQ 283: no longer affine to CPU1
Nov 22 22:49:59 foxy kernel: [   54.331951] smpboot: CPU 1 is now offline
Nov 22 22:49:59 foxy kernel: [   54.352796] smpboot: CPU 2 is now offline
Nov 22 22:49:59 foxy kernel: [   54.374594] IRQ 1: no longer affine to CPU3
Nov 22 22:49:59 foxy kernel: [   54.374602] IRQ 8: no longer affine to CPU3
Nov 22 22:49:59 foxy kernel: [   54.374606] IRQ 9: no longer affine to CPU3
Nov 22 22:49:59 foxy kernel: [   54.374611] IRQ 12: no longer affine to CPU3
Nov 22 22:49:59 foxy kernel: [   54.374615] IRQ 14: no longer affine to CPU3
Nov 22 22:49:59 foxy kernel: [   54.374621] IRQ 16: no longer affine to CPU3
Nov 22 22:49:59 foxy kernel: [   54.374626] IRQ 17: no longer affine to CPU3
Nov 22 22:49:59 foxy kernel: [   54.374633] IRQ 51: no longer affine to CPU3
Nov 22 22:49:59 foxy kernel: [   54.374641] IRQ 122: no longer affine to CPU3
Nov 22 22:49:59 foxy kernel: [   54.375694] smpboot: CPU 3 is now offline

无论如何,我不知道为什么缺少“uswsusp”包,也不知道为什么它解决了这个问题。似乎它应该是一个必需的包。

答案3

您不需要完全重新安装。如果您有装有 16.04 live Ubuntu 的 USB 盘,则只需启动此 USB 盘并只将新盘安装到 Ubuntu 的根分区(/ - 分区)中,而 /home 不应被覆盖。交换分区也将被覆盖,这不会造成任何损害,并且您的工作空间保持不变。成功安装后,您将拥有一个全新的干净的 16.04 - Ubuntu(或 xubuntu)。

答案4

我在 XPS 9550(16.04.2)上遇到了同样的问题。我立即开始在操作系统和 GRUB 级别上调整不同的内容,因为我发现了很多与此类似的线程,但最终我发现最新的 BIOS 更新(2017 年 5 月 7 日的 1.2.25)删除了一些启动设置,更具体地说是“启用 UEFI 网络堆栈”和安全启动。您可以在戴尔支持网站. 要检查您的 BIOS 版本:

sudo dmidecode -s bios-version
sudo dmidecode -s bios-release-date

相关内容