从暂停 Nvidia 390 驱动程序第二台显示器(18.10)恢复时注销

从暂停 Nvidia 390 驱动程序第二台显示器(18.10)恢复时注销

仅使用内置笔记本电脑屏幕不会出现此问题,但是当使用 Nvidia 390 驱动程序时,我连接了外接显示器并选择

Setting->Display->Single Display

然后选择外接显示器作为唯一活动屏幕 -> 然后当我在恢复时暂停时,我已经注销,如在 /var/log/auth.log

该问题在多台配备 Nvidia 显卡的笔记本电脑上重复出现...问题仅在使用 nvidia 驱动程序时出现,nouveau 驱动程序没有问题

有什么想法或建议吗?

/var/log/auth.log以下是刚刚仔细查看消息的片段Lid opened

看起来可能是 gnome-shell ?我订了一张票https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1806165

Nov 30 21:17:01 nuem CRON[17437]: pam_unix(cron:session): session opened for user root by (uid=0)
Nov 30 21:17:01 nuem CRON[17437]: pam_unix(cron:session): session closed for user root
Nov 30 21:20:18 nuem gnome-keyring-daemon[3057]: asked to register item /org/freedesktop/secrets/collection/login/863, but it's already registered
Nov 30 21:20:19 nuem gnome-keyring-daemon[3057]: asked to register item /org/freedesktop/secrets/collection/login/862, but it's already registered
Nov 30 21:40:36 nuem gnome-keyring-daemon[3057]: asked to register item /org/freedesktop/secrets/collection/login/1, but it's already registered
Nov 30 21:40:39 nuem gnome-keyring-daemon[3057]: message repeated 2 times: [ asked to register item /org/freedesktop/secrets/collection/login/1, but it's already registered]
Nov 30 21:49:25 nuem systemd-logind[523]: Lid closed.
Nov 30 21:49:29 nuem systemd-logind[523]: Lid opened.
Nov 30 21:49:51 nuem systemd-logind[523]: Operation 'sleep' finished.
Nov 30 21:49:52 nuem polkitd(authority=local): Unregistered Authentication Agent for unix-session:2 (system bus name :1.376, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Nov 30 21:49:52 nuem gdm-password]: pam_unix(gdm-password:session): session closed for user upha
Nov 30 21:49:52 nuem dbus-daemon[507]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.2100" (uid=1000 pid=31115 comm="/usr/bin/pulseaudio --daemonize=no " label="unconfined") interface="org.freedesktop.DBus.ObjectManager" member="GetManagedObjects" error name="(unset)" requested_reply="0" destination="org.bluez" (bus)
Nov 30 21:49:52 nuem systemd-logind[523]: Session 2 logged out. Waiting for processes to exit.
Nov 30 21:49:53 nuem gdm-launch-environment]: pam_unix(gdm-launch-environment:session): session opened for user gdm by (uid=0)
Nov 30 21:49:53 nuem systemd-logind[523]: New session c2 of user gdm.
Nov 30 21:49:53 nuem systemd: pam_unix(systemd-user:session): session opened for user gdm by (uid=0)
Nov 30 21:49:55 nuem systemd-logind[523]: Removed session 2.
Nov 30 21:49:56 nuem systemd: pam_unix(systemd-user:session): session closed for user upha
Nov 30 21:49:57 nuem polkitd(authority=local): Registered Authentication Agent for unix-session:c2 (system bus name :1.2108 [/usr/bin/gnome-shell], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Nov 30 21:50:07 nuem gdm-password]: pam_unix(gdm-password:session): session opened for user upha by (uid=0)
Nov 30 21:50:07 nuem systemd-logind[523]: New session 37 of user upha.
Nov 30 21:50:07 nuem systemd: pam_unix(systemd-user:session): session opened for user upha by (uid=0)
Nov 30 21:50:17 nuem polkitd(authority=local): Registered Authentication Agent for unix-session:37 (system bus name :1.2405 [/usr/bin/gnome-shell], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Nov 30 21:50:19 nuem systemd-logind[523]: Session c2 logged out. Waiting for processes to exit.
Nov 30 21:50:19 nuem polkitd(authority=local): Unregistered Authentication Agent for unix-session:c2 (system bus name :1.2108, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Nov 30 21:50:19 nuem systemd-logind[523]: Removed session c2.
Nov 30 21:52:50 nuem systemd-logind[523]: Operation 'sleep' finished.
Nov 30 21:52:59 nuem gdm-password]: gkr-pam: unlocked login keyring
Nov 30 21:53:42 nuem systemd-logind[523]: Operation 'sleep' finished.
Nov 30 21:53:50 nuem gdm-password]: gkr-pam: unlocked login keyring
Nov 30 22:17:02 nuem CRON[6950]: pam_unix(cron:session): session opened for user root by (uid=0)
Nov 30 22:17:02 nuem CRON[6950]: pam_unix(cron:session): session closed for user root

我通过从“软件和更新”->“附加驱动程序”列表中选择来安装 Nvidia 驱动程序...这种情况在 16.04 上不是问题

答案1

如果您的欢迎程序是新内核和 gdm,我找到了针对此问题的建议答案。请参阅此处的帖子:

内核 4.18.0.11.12 问题:视频黑屏

将这些插入内容放入 /etc/default/grub 并运行sudo update-grub

Nvidia 论坛声称内核中有一个错误需要这样做。

1 查看我的帖子:

https://devtalk.nvidia.com/default/topic/1044730/linux/x-displays-in-a-small-section-of-screen-something-in-my-grub-setup-wrong-/

2 这是关于无法从暂停中恢复的内容

https://devtalk.nvidia.com/default/topic/1044633/?comment=5300281

我确实注意到,如果您使用 lightdm 显示管理器,这一切都不是问题。除了固执地想找出 gdm 造成麻烦的原因之外,我没有充分的理由如此努力地让它工作。而且它确实有效,无论是否使用 X11 或 Wayland(您可以在 /etc/gdm/custom.conf 中选择)。

相关内容