休眠后,挂起黑屏

分享于 

5分钟阅读

ubuntu

  繁體

问题

我遇到了以下问题:在终端或Ubuntu桌面右侧的菜单中使用命令sudo systemctl hibernate之后,黑屏了,但所有设备都在工作。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



内核版本:


uname -r


4.13.0-26-generic



显卡信息:


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



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



为什么恢复失败?


答案1

这是内核4.13.0-26-generic的一个bug,在这里查看bug报告:https://bugs.launchpad.net/ubuntu/source/linux/bug/1743094

解决方案是将内核降级为4.10.0-42-generic,但请记住,将丢失flishdown和一些specretre mitigations补丁,主线内核已经解决了这个问题。


答案2

我刚在一台新的LG Gram笔记本电脑上安装了xUbuntu 16.04 LTS,遇到了同样的问题,

  • 禁用安全启动
  • 创建/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 
  • cat /sys/power/disk输出shutdown reboot suspend test_resume

选择一个较旧的内核(4.10.0-28-generic )。


答案3

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

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

我解决了它,安装laptop-mode-tools。


sudo apt-get install laptop-mode-tools



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

内核版本是4.15.13 -041513-generic


答案4

sudo add-apt-repository ppa:graphics-drivers
sudo add-apt-repository ppa:graphics-drivers

我再次安装了Nvidia-396 驱动程序,休眠问题不再出现。


相关文章