![笔记本电脑休眠后尝试恢复时出现黑屏问题](https://linux22.com/image/1016393/%E7%AC%94%E8%AE%B0%E6%9C%AC%E7%94%B5%E8%84%91%E4%BC%91%E7%9C%A0%E5%90%8E%E2%80%8B%E2%80%8B%E5%B0%9D%E8%AF%95%E6%81%A2%E5%A4%8D%E6%97%B6%E5%87%BA%E7%8E%B0%E9%BB%91%E5%B1%8F%E9%97%AE%E9%A2%98.png)
My problem was experienced by several Ubuntu users a few years ago.
The difference is that I'm running the latest Ubuntu operating system (19.10).
I ran with Ubuntu 18.04 Disco Dingo about 1.5 yrs ago; and upgraded to Ubuntu 19.04 about 6 months ago. Never had this problem with both O/S versions using the same laptop (Lenovo ideapad 320).
The problem started about a month ago.
What is the solution to my problem ?
答案1
As a workaround, if you can't login you can login to tty using ctrl+shift+f2 Then Use this command
sudo loginctl list-sessions
To get your current session Then unlock it using this command
sudo loginctl unlock-session {session-id}
答案2
After several weeks of frustration, trying to get my laptop to resume after a Suspend/Hibernate period; and after posting my problem on Ask Ubuntu - I stumbled on a VERY SIMPLE solution ! Maybe not the 'technically correct' solution - but a solution that works very well - nonetheless.
The GNOME Tweaks Tool, which I loaded with Ubuntu 18.04 and again 19.04, has an option to disable/enable the option "Suspend when laptop lid is closed" (under General in the Tweaks menu). I set it to the 'off position' .... and it works perfectly - for me !!
So, when I'm done with my activities on my laptop, I simply close the lid and the screen switches off just before the lid is completely closed. Then when I open the lid (after 1 or 10 or 30 mins or 1 hr) the screen comes back to life, as I left it before closing the lid.
或者,如果我先注销再合上盖子,我也会得到同样好的结果 - 当我打开盖子时,我只需在登录屏幕上输入我的密码即可。
我很高兴 !!!!