休眠后黑屏

mic*_*_ub 17 resume suspend hibernate

我遇到了以下问题:休眠后(使用sudo systemctl hibernate终端中的命令或 Ubuntu 桌面右上角的菜单)我得到一个黑屏(即使所有设备似乎都在工作。风扇工作!)我被迫重新启动操作系统,因为恢复失败,我无法回到“保存状态”。里面的内容etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla是:

    [Re-enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes

[Re-enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit
ResultActive=yes
Run Code Online (Sandbox Code Playgroud)

附加信息:Ubuntu 版本:16.04LTS

内核版本:

uname -r
4.13.0-26-generic
Run Code Online (Sandbox Code Playgroud)

图形信息:

udo lspci | grep -E 'VGA|Display'
[sudo] password di michele: 
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Whistler [Radeon HD 6730M/6770M/7690M XT] (rev ff)
michele@michele-ubuntu:~$ sudo lshw -c display | grep driver
       configuration: driver=i915 latency=0
Run Code Online (Sandbox Code Playgroud)

CPU信息:

sudo lscpu
[sudo] password di michele:
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 8
On-line CPU(s) list: 0-7
Thread(s) per core: 2
Core(s) per socket: 4
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 42
Model name: Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz
Stepping: 7
CPU MHz: 1995.561
CPU max MHz: 2900,0000
CPU min MHz: 800,0000
BogoMIPS: 3991.12
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 6144K
NUMA node0 CPU(s): 0-7
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm epb pti tpr_shadow vnmi flexpriority ept vpid xsaveopt dtherm ida arat pln pts
Run Code Online (Sandbox Code Playgroud)

为什么恢复失败?在此先感谢您的帮助。

Ste*_*eve 5

这似乎是内核的错误4.13.0-26-generic。在此处查看错误报告:https : //bugs.launchpad.net/ubuntu/+source/linux/+bug/1743094?comments=all

解决方案是将内核降级到4.10.0-42-generic. 主线内核也解决了这个问题。

  • 从安全的角度来看,休眠是绝对关键的功能,而不是简单的“暂停到 RAM”。受影响的每个人,请确保您单击了“此错误影响 xx 人。此错误是否影响您?”的链接。在 [错误报告](https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1743094) 的顶部,否则这个错误可能会在无人看管的情况下停留数月甚至数年...... (5认同)

小智 5

我使用的是 ubuntu 17.10,从 17.04 升级后我遇到了这个问题(挂起/休眠后黑屏)。

我尝试用 ukuu 更改 linux 内核,但没有成功。

在花了很长时间解决这个问题后,我通过安装笔记本电脑模式工具解决了这个问题。

sudo apt-get install laptop-mode-tools
Run Code Online (Sandbox Code Playgroud)

安装后使用 lmt-config-gui 进行配置。现在工作完美。

我的内核版本是4.15.13-041513-generic

  • 配置是怎样的?你能解释一下吗? (10认同)