![在 17.04 上,gnome 和 gdm3 无法暂停](https://linux22.com/image/893016/%E5%9C%A8%2017.04%20%E4%B8%8A%EF%BC%8Cgnome%20%E5%92%8C%20gdm3%20%E6%97%A0%E6%B3%95%E6%9A%82%E5%81%9C.png)
升级到 Ubuntu 17.04 并切换到 gnome-desktop 和 gd3m 后,挂起功能不再起作用。尝试挂起时会显示黑屏,但几秒后(1-2 秒)登录屏幕会再次出现,但在这种情况下登录屏幕不起作用,因为输入密码并按回车键时会再次出现登录屏幕,而无需登录桌面。此时需要重新启动。以下是我尝试挂起时在 syslog 中找到的日志:
May 4 14:49:30 Rafael-PC NetworkManager[1053]: <info> [1493923770.4435] manager: sleep requested (sleeping: no enabled: yes)
May 4 14:49:30 Rafael-PC NetworkManager[1053]: <info> [1493923770.4435] manager: sleeping...
May 4 14:49:30 Rafael-PC NetworkManager[1053]: <info> [1493923770.4438] device (wlo1): state change: disconnected -> unmanaged (reason 'sleeping') [30 10 37]
May 4 14:49:30 Rafael-PC gnome-shell[2764]: Screen lock is locked down, not locking
May 4 14:49:30 Rafael-PC NetworkManager[1053]: <info> [1493923770.4474] device (ttyACM0): state change: unavailable -> unmanaged (reason 'sleeping') [20 10 37]
May 4 14:49:30 Rafael-PC NetworkManager[1053]: <info> [1493923770.4476] manager: NetworkManager state is now ASLEEP
May 4 14:49:30 Rafael-PC wpa_supplicant[1715]: nl80211: deinit ifname=p2p-dev-wlo1 disabled_11b_rates=0
May 4 14:49:30 Rafael-PC wpa_supplicant[1715]: nl80211: deinit ifname=wlo1 disabled_11b_rates=0
May 4 14:49:32 Rafael-PC systemd[1]: systemd-logind.service: Main process exited, code=exited, status=1/FAILURE
May 4 14:49:32 Rafael-PC systemd[1]: systemd-logind.service: Unit entered failed state.
May 4 14:49:32 Rafael-PC systemd[1]: systemd-logind.service: Failed with result 'exit-code'.
May 4 14:49:32 Rafael-PC /usr/lib/gdm3/gdm-x-session[2945]: (EE)
May 4 14:49:32 Rafael-PC /usr/lib/gdm3/gdm-x-session[2945]: Fatal server error:
May 4 14:49:32 Rafael-PC /usr/lib/gdm3/gdm-x-session[2945]: (EE) systemd-logind disappeared (stopped/restarted?)
May 4 14:49:32 Rafael-PC /usr/lib/gdm3/gdm-x-session[2945]: (EE)
May 4 14:49:32 Rafael-PC /usr/lib/gdm3/gdm-x-session[2945]: (EE)
May 4 14:49:32 Rafael-PC /usr/lib/gdm3/gdm-x-session[2945]: Please consult the The X.Org Foundation support
May 4 14:49:32 Rafael-PC /usr/lib/gdm3/gdm-x-session[2945]: #011 at http://wiki.x.org
May 4 14:49:32 Rafael-PC /usr/lib/gdm3/gdm-x-session[2945]: for help.
May 4 14:49:32 Rafael-PC /usr/lib/gdm3/gdm-x-session[2945]: (EE) Please also check the log file at "/var/log/Xorg.1.log" for additional information.
May 4 14:49:32 Rafael-PC /usr/lib/gdm3/gdm-x-session[2945]: (EE)
May 4 14:49:32 Rafael-PC /usr/lib/gdm3/gdm-x-session[2591]: (EE)
May 4 14:49:32 Rafael-PC /usr/lib/gdm3/gdm-x-session[2591]: Fatal server error:
May 4 14:49:32 Rafael-PC /usr/lib/gdm3/gdm-x-session[2591]: (EE) systemd-logind disappeared (stopped/restarted?)
May 4 14:49:32 Rafael-PC /usr/lib/gdm3/gdm-x-session[2591]: (EE)
May 4 14:49:32 Rafael-PC /usr/lib/gdm3/gdm-x-session[2591]: (EE)
May 4 14:49:32 Rafael-PC /usr/lib/gdm3/gdm-x-session[2591]: Please consult the The X.Org Foundation support
May 4 14:49:32 Rafael-PC /usr/lib/gdm3/gdm-x-session[2591]: #011 at http://wiki.x.org
May 4 14:49:32 Rafael-PC /usr/lib/gdm3/gdm-x-session[2591]: for help.
May 4 14:49:32 Rafael-PC /usr/lib/gdm3/gdm-x-session[2591]: (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
May 4 14:49:32 Rafael-PC /usr/lib/gdm3/gdm-x-session[2591]: (EE)
May 4 14:49:32 Rafael-PC systemd[1]: systemd-logind.service: Service has no hold-off time, scheduling restart.
May 4 14:49:32 Rafael-PC systemd[1]: Stopped Login Service.
May 4 14:49:32 Rafael-PC systemd[1]: Starting Login Service...
May 4 14:49:32 Rafael-PC systemd[1]: Started Login Service.
May 4 14:49:32 Rafael-PC /usr/lib/gdm3/gdm-x-session[2945]: (EE) systemd-logind: ReleaseControl failed: You are not in control of this session
已进行的测试:
- [失败] 重新安装 gdm3 并清除但没有反应,暂停不起作用。
- [失败] 重新安装 Nvidia 驱动程序并使用多个版本进行测试
- [失败] 使用 X.Org Nouveau 显示驱动程序进行测试
- [失败] apt-get 升级
- [确定] 将显示管理器切换到 lightdm 并且暂停工作正常。
此时我发现的唯一解决方案是切换到 lightdm 显示管理器,但对我来说这不是真正的解决方案。请问有什么建议或帮助吗?
答案1
您可能应该切换到 lightdm。
我在 Ubuntu 17.04 中使用 gdm 时也遇到了问题,主要是登录问题。我不得不进入恢复模式并使用 dpkg 将其改回 lightdm。
这可能是因为在 ubuntu 17.04 中从 unity 到 gnome-shell 的转换只是部分的。