锁定后,在 Debian Buster 下使用键盘或鼠标无法重新打开屏幕

锁定后,在 Debian Buster 下使用键盘或鼠标无法重新打开屏幕

我在 Jessie 上,升级到 Stretch,然后立即升级到 Buster。我相信我有默认的 gnome 3 桌面管理器。如果我使用 super-l 锁定屏幕,则无法使用鼠标或键盘再次唤醒屏幕(但滚动锁定/数字锁定确实会切换键盘 LED)。如果我启动后不登录也会发生这种情况,登录屏幕会在 5 分钟后自动锁定。我认为 5 分钟来自 org.gnome.desktop.sessionidle-delay uint32 300,因此将其设置为 0 可能会阻止它自动锁定,但这并不能解释为什么它不重新打开。请注意,机器不会暂停,只是关闭显示器。我相信我用 org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'nothing' 禁用了暂停。这是一台台式机,始终使用交流电,从不使用电池。

我可以通过 ssh 恢复屏幕:

sudo systemctl restart gdm.service

一些可能表明某些内容的 gsettings:

$ gsettings list-recursively org.gnome.desktop.screensaver
org.gnome.desktop.screensaver picture-opacity 100
org.gnome.desktop.screensaver logout-enabled false
org.gnome.desktop.screensaver lock-enabled false
org.gnome.desktop.screensaver logout-delay uint32 7200
org.gnome.desktop.screensaver embedded-keyboard-enabled false
org.gnome.desktop.screensaver primary-color '#023c88'
org.gnome.desktop.screensaver idle-activation-enabled true
org.gnome.desktop.screensaver secondary-color '#5789ca'
org.gnome.desktop.screensaver logout-command ''
org.gnome.desktop.screensaver color-shading-type 'solid'
org.gnome.desktop.screensaver embedded-keyboard-command ''
org.gnome.desktop.screensaver picture-options 'zoom'
org.gnome.desktop.screensaver lock-delay uint32 0
org.gnome.desktop.screensaver show-full-name-in-top-bar true
org.gnome.desktop.screensaver picture-uri 'file:///usr/share/images/desktop-base/desktop-lockscreen.xml'
org.gnome.desktop.screensaver status-message-enabled true
org.gnome.desktop.screensaver user-switch-enabled true
$ gsettings list-recursively org.gnome.desktop.session
org.gnome.desktop.session session-name 'gnome'
org.gnome.desktop.session idle-delay uint32 0
$ gsettings list-recursively org.gnome.desktop.lockdown
org.gnome.desktop.lockdown disable-command-line false
org.gnome.desktop.lockdown disable-application-handlers false
org.gnome.desktop.lockdown disable-user-switching false
org.gnome.desktop.lockdown user-administration-disabled false
org.gnome.desktop.lockdown disable-printing false
org.gnome.desktop.lockdown disable-log-out false
org.gnome.desktop.lockdown disable-lock-screen false
org.gnome.desktop.lockdown disable-print-setup false
org.gnome.desktop.lockdown disable-save-to-disk false
org.gnome.settings-daemon.plugins.power power-button-action 'interactive'
org.gnome.settings-daemon.plugins.power idle-dim true
org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'nothing'
org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout 1800
org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type 'nothing'
org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 3600
org.gnome.settings-daemon.plugins.power ambient-enabled true
org.gnome.settings-daemon.plugins.power idle-brightness 30


$ sudo -u Debian-gdm gsettings list-recursively org.gnome.desktop.screensaver
org.gnome.desktop.screensaver picture-opacity 100
org.gnome.desktop.screensaver logout-enabled false
org.gnome.desktop.screensaver lock-enabled true
org.gnome.desktop.screensaver logout-delay uint32 7200
org.gnome.desktop.screensaver embedded-keyboard-enabled false
org.gnome.desktop.screensaver primary-color '#023c88'
org.gnome.desktop.screensaver idle-activation-enabled true
org.gnome.desktop.screensaver secondary-color '#5789ca'
org.gnome.desktop.screensaver logout-command ''
org.gnome.desktop.screensaver color-shading-type 'solid'
org.gnome.desktop.screensaver embedded-keyboard-command ''
org.gnome.desktop.screensaver picture-options 'zoom'
org.gnome.desktop.screensaver lock-delay uint32 0
org.gnome.desktop.screensaver show-full-name-in-top-bar true
org.gnome.desktop.screensaver picture-uri 'file:///usr/share/images/desktop-base/desktop-lockscreen.xml'
org.gnome.desktop.screensaver status-message-enabled true
org.gnome.desktop.screensaver user-switch-enabled true
$ sudo -u Debian-gdm gsettings list-recursively org.gnome.desktop.session
org.gnome.desktop.session session-name 'gnome'
org.gnome.desktop.session idle-delay uint32 300
$ sudo -u Debian-gdm gsettings list-recursively org.gnome.desktop.lockdown
org.gnome.desktop.lockdown disable-command-line false
org.gnome.desktop.lockdown disable-application-handlers false
org.gnome.desktop.lockdown disable-user-switching false
org.gnome.desktop.lockdown user-administration-disabled false
org.gnome.desktop.lockdown disable-printing false
org.gnome.desktop.lockdown disable-log-out false
org.gnome.desktop.lockdown disable-lock-screen false
org.gnome.desktop.lockdown disable-print-setup false
org.gnome.desktop.lockdown disable-save-to-disk false
$ sudo -u Debian-gdm gsettings list-recursively org.gnome.settings-daemon.plugins.power
org.gnome.settings-daemon.plugins.power power-button-action 'suspend'
org.gnome.settings-daemon.plugins.power idle-dim true
org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'nothing'
org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout 1200
org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type 'suspend'
org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 1200
org.gnome.settings-daemon.plugins.power ambient-enabled true
org.gnome.settings-daemon.plugins.power idle-brightness 30

更新

我编辑了 /etc/gdm3/daemon.conf 并取消注释 WaylandEnable=false:

[daemon]
# Uncomment the line below to force the login screen to use Xorg
WaylandEnable=false

现在,当我按下某个键时,屏幕会正常显示。所以这似乎与韦兰有关。我不知道如何调试它或如何启用更详细的日志记录以尝试缩小问题范围。

更多信息:

$ sudo lspci -nnk | egrep "VGA|3D|Display" -A2
0b:07.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] ES1000 [1002:515e] (rev 02)
        Subsystem: Dell PowerEdge T300 Embedded ATI ES1000 [1028:0210]
        Kernel driver in use: radeon

相关内容