Ubuntu休眠后无法唤醒黑屏
2017-07-01 本文已影响758人
史迪奇的博客
解决办法:安装laptop-mode-tools工具包。
1.检查是否安装了grep laptop-mode-tools 工具包
$ dpkg -l | grep laptop-mode-tools
如果执行命令无结果输出,表示未安装(如果已安装,忽略第2步)
2.安装laptop-mode
执行命令:$ sudo apt-get install laptop-mode-tools

安装完成后查看结果

3.判断Laptop是否启用了laptop_mode模式
如果显示结果为0,则表示未启动,如果为非0的数字则表示启动了

4.启动laptop_mode
修改配置文件/etc/default/acpi-support,更改 ENABLE_LAPTOP_MODE=true
直接在终端中输入 sudo laptop_mode start 启动了laptop_mode之后,在ubuntu挂起后,基本上就不会遇到无法唤醒的情况了
注:有些用户在acpi-support中并未找到 ENABLE_LAPTOP_MODE=true 被注释的项.看文件最后一行的提示

提示我们在/etc/laptop-mode/laptop-mode.conf 中进行配置
找到次文件查找 ENABLE_LAPTOP_MODE_ON_BATTERY、ENABLE_LAPTOP_MODE_ON_AC、ENABLE_LAPTOP_MODE_WHEN_LID_CLOSED
看注释大体明白什么意思 当用电池,外接电源,合上显示屏的时候是否启用 LAPTOP_MODE
全部设置为 1 就可以了。

启动laptop_mode并查看结果:

转载自,仅做记录:
http://www.linuxdiyf.com/linux/18722.html