我正在尝试找出为什么我的电脑(Dell XPS 13,型号 9370)上的“挂起”模式不起作用的原因。更多规格这里。
操作系统信息:
aechchik@fixie:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic
我尝试过了谷歌这个问题看起来可能是“nouveau”驱动程序的问题,因此我相应地更新了我的 GRUB,现在它看起来像这样:
aechchik@fixie:~$ cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nouveau.modeset=0"
GRUB_CMDLINE_LINUX="nouveau.modeset=0"
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
然后运行sudo update-grub
并重新启动。
问题是从挂起状态恢复后,屏幕一片空白。例如,如果我合上笔记本电脑盖,再次打开时系统不会恢复,我必须强制关机(使用电源按钮)。
预期的行为(考虑到电源管理设置)是我应该能够提示登录屏幕。
但是,如果我“手动”暂停系统并执行 ,系统就会正确暂停systemctl suspend
。我使用的是 xfce 版本,因此我将此命令分配给了键盘快捷键。现在,如果我在关闭盖子之前执行快捷方式(或从终端启动命令),当我再次打开盖子时,我就可以正确地从暂停状态恢复。
感谢您的输入!