我在英特尔酷睿 I7 上使用 Ubuntu 15.10 桌面版 - 64 位版本 - 具有 16 GB RAM、4 GB 显卡(Nvidia GTX 950M)的四核笔记本电脑。成功安装后 - 由于 Ubuntu 的内置和默认图形驱动程序不够好,Ubuntu 冻结。我继续从 http://www.nvidia.com/Download/driverResults.aspx/84043/en-us安装了“Nividia GTX 950 M 驱动程序”
并点击此链接 How do I install the Nvidia driver for a GeForce GT 630
成功安装 Nvidia 显卡,但在登录时出现登录循环(unity 和 lightdm)。
这是我的一些来自 /var/log/ syslog 的文件
Jan 15 17:34:42 ashu-HP-ENVY-Notebook org.ayatana.bamf[1587]: Xlib: extension "GLX" missing on display ":0".
Jan 15 17:34:43 ashu-HP-ENVY-Notebook gnome-session[1733]: Xlib: extension "GLX" missing on display ":0".
Jan 15 17:34:43 ashu-HP-ENVY-Notebook gnome-session[1733]: message repeated 3 times: [ Xlib: extension "GLX" missing on display ":0".]
Jan 15 17:34:43 ashu-HP-ENVY-Notebook gnome-session[1733]: gnome-session-is-accelerated: No hardware 3D support.
Jan 15 17:34:43 ashu-HP-ENVY-Notebook gnome-session[1733]: Xlib: extension "GLX" missing on display ":0".
授权日志
Jan 15 17:31:32 ashu-HP-ENVY-Notebook systemd-logind[677]: Power key pressed.
Jan 15 17:31:32 ashu-HP-ENVY-Notebook systemd-logind[677]: Powering Off...
Jan 15 17:31:32 ashu-HP-ENVY-Notebook systemd-logind[677]: System is powering down.
Jan 15 17:31:32 ashu-HP-ENVY-Notebook su[2022]: pam_unix(su:session): session closed for user root
Jan 15 17:31:32 ashu-HP-ENVY-Notebook sudo: pam_unix(sudo:session): session closed for user root
Jan 15 17:34:33 ashu-HP-ENVY-Notebook systemd-logind[642]: New seat seat0.
Jan 15 17:34:33 ashu-HP-ENVY-Notebook systemd-logind[642]: Watching system buttons on /dev/input/event2 (Power Button)
Jan 15 17:34:33 ashu-HP-ENVY-Notebook systemd-logind[642]: Watching system buttons on /dev/input/event5 (Video Bus)
Jan 15 17:34:33 ashu-HP-ENVY-Notebook systemd-logind[642]: Watching system buttons on /dev/input/event4 (Video Bus)
Jan 15 17:34:33 ashu-HP-ENVY-Notebook systemd-logind[642]: Watching system buttons on /dev/input/event1 (Power Button)
Jan 15 17:34:33 ashu-HP-ENVY-Notebook systemd-logind[642]: Watching system buttons on /dev/input/event0 (Lid Switch)
Jan 15 17:34:34 ashu-HP-ENVY-Notebook lightdm: PAM unable to dlopen(pam_kwallet.so): /lib/security/pam_kwallet.so: cannot open shared object file: No such file or directory
Jan 15 17:34:34 ashu-HP-ENVY-Notebook lightdm: PAM adding faulty module: pam_kwallet.so
Jan 15 17:34:34 ashu-HP-ENVY-Notebook lightdm: PAM unable to dlopen(pam_kwallet5.so): /lib/security/pam_kwallet5.so: cannot open shared object file: No such file or directory
Jan 15 17:34:34 ashu-HP-ENVY-Notebook lightdm: PAM adding faulty module: pam_kwallet5.so
Jan 15 17:34:34 ashu-HP-ENVY-Notebook lightdm: pam_unix(lightdm-greeter:session): session opened for user lightdm by (uid=0)
Jan 15 17:34:34 ashu-HP-ENVY-Notebook systemd-logind[642]: New session c1 of user lightdm.
Jan 15 17:34:34 ashu-HP-ENVY-Notebook systemd: pam_unix(systemd-user:session): session opened for user lightdm by (uid=0)
Jan 15 17:34:34 ashu-HP-ENVY-Notebook lightdm: PAM unable to dlopen(pam_kwallet.so): /lib/security/pam_kwallet.so: cannot open shared object file: No such file or directory
Jan 15 17:34:34 ashu-HP-ENVY-Notebook lightdm: PAM adding faulty module: pam_kwallet.so
Jan 15 17:34:34 ashu-HP-ENVY-Notebook lightdm: PAM unable to dlopen(pam_kwallet5.so): /lib/security/pam_kwallet5.so: cannot open shared object file: No such file or directory
Jan 15 17:34:34 ashu-HP-ENVY-Notebook lightdm: PAM adding faulty module: pam_kwallet5.so
Jan 15 17:34:34 ashu-HP-ENVY-Notebook lightdm: pam_succeed_if(lightdm:auth): requirement "user ingroup nopasswdlogin" not met by user "ashu"
Jan 15 17:34:37 ashu-HP-ENVY-Notebook dbus[667]: [system] Rejected send message, 10 matched rules; type="method_return", sender=":1.63" (uid=0 pid=1198 comm="/usr/sbin/dnsmasq --no-resolv --keep-in-foreground") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.14" (uid=0 pid=687 comm="/usr/sbin/NetworkManager --no-daemon ")
Jan 15 17:34:42 ashu-HP-ENVY-Notebook lightdm: pam_unix(lightdm-greeter:session): session closed for user lightdm
Jan 15 17:34:42 ashu-HP-ENVY-Notebook lightdm: pam_unix(lightdm:session): session opened for user ashu by (uid=0)
Jan 15 17:34:42 ashu-HP-ENVY-Notebook systemd-logind[642]: New session c2 of user ashu.
Jan 15 17:34:42 ashu-HP-ENVY-Notebook systemd: pam_unix(systemd-user:session): session opened for user ashu by (uid=0)
Jan 15 17:34:43 ashu-HP-ENVY-Notebook lightdm: pam_unix(lightdm:session): session closed for user ashu
Jan 15 17:34:43 ashu-HP-ENVY-Notebook systemd-logind[642]: Removed session c2.
Jan 15 17:34:43 ashu-HP-ENVY-Notebook systemd: pam_unix(systemd-user:session): session closed for user ashu
Jan 15 17:34:44 ashu-HP-ENVY-Notebook lightdm: PAM unable to dlopen(pam_kwallet.so): /lib/security/pam_kwallet.so: cannot open shared object file: No such file or directory
Jan 15 17:34:44 ashu-HP-ENVY-Notebook lightdm: PAM adding faulty module: pam_kwallet.so
Jan 15 17:34:44 ashu-HP-ENVY-Notebook lightdm: PAM unable to dlopen(pam_kwallet5.so): /lib/security/pam_kwallet5.so: cannot open shared object file: No such file or directory
Jan 15 17:34:44 ashu-HP-ENVY-Notebook lightdm: PAM adding faulty module: pam_kwallet5.so
Jan 15 17:34:44 ashu-HP-ENVY-Notebook lightdm: pam_unix(lightdm-greeter:session): session opened for user lightdm by (uid=0)
Jan 15 17:34:44 ashu-HP-ENVY-Notebook systemd-logind[642]: New session c3 of user lightdm.
Jan 15 17:34:44 ashu-HP-ENVY-Notebook lightdm: PAM unable to dlopen(pam_kwallet.so): /lib/security/pam_kwallet.so: cannot open shared object file: No such file or directory
Jan 15 17:34:44 ashu-HP-ENVY-Notebook lightdm: PAM adding faulty module: pam_kwallet.so
Jan 15 17:34:44 ashu-HP-ENVY-Notebook lightdm: PAM unable to dlopen(pam_kwallet5.so): /lib/security/pam_kwallet5.so: cannot open shared object file: No such file or directory
Jan 15 17:34:44 ashu-HP-ENVY-Notebook lightdm: PAM adding faulty module: pam_kwallet5.so
Jan 15 17:34:44 ashu-HP-ENVY-Notebook lightdm: pam_succeed_if(lightdm:auth): requirement "user ingroup nopasswdlogin" not met by user "ashu"
Jan 15 17:34:54 ashu-HP-ENVY-Notebook login[941]: pam_unix(login:session): session opened for user ashu by LOGIN(uid=0)
Jan 15 17:34:54 ashu-HP-ENVY-Notebook systemd-logind[642]: New session c4 of user ashu.
Jan 15 17:34:54 ashu-HP-ENVY-Notebook systemd: pam_unix(systemd-user:session): session opened for user ashu by (uid=0)
Jan 15 17:35:00 ashu-HP-ENVY-Notebook sudo: ashu : TTY=tty1 ; PWD=/home/ashu ; USER=root ; COMMAND=/bin/su
Jan 15 17:35:00 ashu-HP-ENVY-Notebook sudo: pam_unix(sudo:session): session opened for user root by ashu(uid=0)
Jan 15 17:35:00 ashu-HP-ENVY-Notebook su[2001]: Successful su for root by root
Jan 15 17:35:00 ashu-HP-ENVY-Notebook su[2001]: + /dev/tty1 root:root
Jan 15 17:35:00 ashu-HP-ENVY-Notebook su[2001]: pam_unix(su:session): session opened for user root by ashu(uid=0)
Jan 15 17:35:00 ashu-HP-ENVY-Notebook su[2001]: pam_systemd(su:session): Cannot create session: Already running in a session
Nvidia 安装程序日志似乎也可以。可能是什么问题呢?当我使用 Ctrl+Alt+F1 然后登录到终端时,密码工作正常。
这是 nvidia 安装程序日志的最后几行
-> Searching for conflicting files:
-> done.
-> Installing 'NVIDIA Accelerated Graphics Driver for Linux-x86_64' (349.16):
executing: '/sbin/ldconfig'...
executing: '/sbin/depmod -aq '...
-> done.
-> Driver file installation is complete.
-> Running post-install sanity check:
-> done.
-> Post-install sanity check passed.
-> Running runtime sanity check:
-> done.
-> Runtime sanity check passed.
-> Installation of the kernel module for the NVIDIA Accelerated Graphics Driver for Linux-x86_64 (version 349.16) is now complete.
syslog 重要日志
Jan 15 17:34:42 ashu-HP-ENVY-Notebook systemd[1485]: Startup finished in 10ms.
Jan 15 17:34:42 ashu-HP-ENVY-Notebook systemd[1]: Started User Manager for UID 1000.
Jan 15 17:34:42 ashu-HP-ENVY-Notebook org.a11y.Bus[1587]: Activating service name='org.a11y.atspi.Registry'
Jan 15 17:34:42 ashu-HP-ENVY-Notebook org.a11y.Bus[1587]: Successfully activated service 'org.a11y.atspi.Registry'
Jan 15 17:34:42 ashu-HP-ENVY-Notebook org.a11y.atspi.Registry[1657]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
Jan 15 17:34:42 ashu-HP-ENVY-Notebook org.ayatana.bamf[1587]: Xlib: extension "GLX" missing on display ":0".
Jan 15 17:34:43 ashu-HP-ENVY-Notebook gnome-session[1733]: Xlib: extension "GLX" missing on display ":0".
Jan 15 17:34:43 ashu-HP-ENVY-Notebook gnome-session[1733]: message repeated 3 times: [ Xlib: extension "GLX" missing on display ":0".]
Jan 15 17:34:43 ashu-HP-ENVY-Notebook gnome-session[1733]: gnome-session-is-accelerated: No hardware 3D support.
Jan 15 17:34:43 ashu-HP-ENVY-Notebook gnome-session[1733]: Xlib: extension "GLX" missing on display ":0".
Jan 15 17:34:43 ashu-HP-ENVY-Notebook gnome-session[1733]: gnome-session-check-accelerated: Helper exited with code 256
Jan 15 17:34:43 ashu-HP-ENVY-Notebook gnome-session[1733]: gnome-session[1733]: CRITICAL: We failed, but the fail whale is dead. Sorry....
Jan 15 17:34:43 ashu-HP-ENVY-Notebook gnome-session[1733]: CRITICAL: We failed, but the fail whale is dead. Sorry....
Jan 15 17:34:43 ashu-HP-ENVY-Notebook lightdm[900]: ** (lightdm:900): CRITICAL **: session_get_login1_session_id: assertion 'session != NULL' failed
Jan 15 17:34:43 ashu-HP-ENVY-Notebook systemd[1]: Stopping User Manager for UID 1000...
Jan 15 17:34:43 ashu-HP-ENVY-Notebook systemd[1485]: Reached target Shutdown.
Jan 15 17:34:43 ashu-HP-ENVY-Notebook systemd[1485]: Starting Exit the Session...
Jan 15 17:34:43 ashu-HP-ENVY-Notebook systemd[1485]: Stopped target Default.
Jan 15 17:34:43 ashu-HP-ENVY-Notebook systemd[1485]: Stopped target Basic System.
Jan 15 17:34:43 ashu-HP-ENVY-Notebook systemd[1485]: Stopped target Paths.
Jan 15 17:34:43 ashu-HP-ENVY-Notebook systemd[1485]: Stopped target Sockets.
Jan 15 17:34:43 ashu-HP-ENVY-Notebook systemd[1485]: Stopped target Timers.
Jan 15 17:34:43 ashu-HP-ENVY-Notebook systemd[1485]: Received SIGRTMIN+24 from PID 1780 (kill).
完整的 auth.log http://pastebin.com/kMtMQHmC
完整的 Xorg.0.log http://pastebin.com/94kHcF1b
我已经检查过它只是加载了 nvidia 驱动程序,并且 nouveau 被禁用(或未加载)。我仅从 nvidia 网站获得的 nvidia 驱动程序。
通常,您应该使用来自官方 Ubuntu 存储库的驱动程序。
因为您遇到问题,所以使用最新的驱动程序可能会更好。为 GEFORCE GTX 950M 安装最新的官方稳定版 NVIDIA 驱动程序。
首先卸载当前安装的 NVIDIA 驱动程序。启动计算机,当出现 GRUB 菜单时...
突出显示 Ubuntu 菜单条目并按下E键。添加
nouveau.modeset=0
到 linux 行的末尾。按F10启动 Ubuntu 操作系统。出现登录屏幕时按Ctrl+ Alt+ F1。输入您的用户名和密码,然后执行:
现在安装最新的官方稳定 NVIDIA 驱动程序。启动计算机,当出现 GRUB 菜单时...
突出显示 Ubuntu 菜单条目并按下E键。添加
nouveau.modeset=0
到 linux 行的末尾。按F10启动 Ubuntu 操作系统。出现登录屏幕时按Ctrl+ Alt+ F1。
输入您的用户名和密码,然后执行:
笔记:
也许有必要在 BIOS 中选择 NVIDIA 适配器。当您想使用驱动程序 352 时,不需要添加 PPA。在这种情况下,您必须执行的终端命令如下:
在某种程度上感谢 cl-netbox 我能够解决这个问题。这就是我所做的
请确保如果您访问了 nividia 网站并从那里安装了驱动程序 (N*.run) - 您必须通过转到 /usr/bin/nvidia-installer 来卸载它。应该有类似nvidia-install(卸载链接)的东西。运行那个并按照所有说明进行操作。您应该在清理后从 ppa 存储库安装 nvidia 驱动程序(清除以前的 nvidia 安装)。ubuntu 中存在一个错误,并且任何时候在安装 nvidia 驱动程序方面出现任何问题 - 您最终都会出现登录循环。
我没有登录循环问题。我现在面临的唯一问题是,一旦我登录 Unity 桌面-我看不到侧边栏...(分辨率问题)-终端等....没有标题栏等....所以看起来需要更多步骤来修复整个集合。但是,是的,我现在摆脱了那个恼人的登录循环问题。
下一次更新 - 我错过了可以启动应用程序的侧边栏,并通过以下方式修复: 最终也能够摆脱统一桌面问题。我能够右键单击并打开终端。尝试了此线程中提到的许多解决方案以及其他解决方案。最后这对我有用。
然后
现在一切似乎都运行良好。谢谢大家
对我来说一个简单的解决方案是,确保您的电缆插入显卡而不是主板。如果你把它插到主板上,我猜 ubuntu 会在某个地方弄糊涂。
我已经处理这个问题很长时间了,最后这对我有用。感谢上帝。
我只是将其插入 GPU 并重新启动。问题解决了。
我有 nvr 考虑使用 GPU 进行显示,因为我正在编写 CUDA 程序,我真的不需要显卡中的图形。
我还必须编辑 grub - 删除 line3/4 上的 gtfxmode 行 - 添加 nomodeset noquiet 和 nosplash