Nvidia 设置升级后 Linux 深度冻结

Nvidia 设置升级后 Linux 深度冻结

我打开笔记本电脑,打开 Chrome,在手机上打开 Airdroid,在笔记本电脑上打开 Chrome192.168.1.100:8888以连接手机,然后单击相机,这样我就可以看到手机相机在笔记本电脑屏幕上看到的内容,单击后,一切都冻结了,我尝试了一切(答案和评论)这里每个按键序列..都不起作用,知道发生了什么吗?

几个小时前我也遇到过这种情况,upgradedist-upgrade似乎没有什么问题。


好的,现在我进行了硬重启,并检查/var/log/syslog,系统甚至没有记录发生的任何事情,里面什么都没有:

Feb 28 19:50:06 s-N552VW kernel: [   47.049366] nvidia-modeset: Allocated GPU:0 (GPU-d4ac21de-204f-1b44-bf51-9299897df3d7) @ PCI:0000:01:00.0
Feb 28 19:50:06 s-N552VW kernel: [   47.049478] nvidia-modeset: Freed GPU:0 (GPU-d4ac21de-204f-1b44-bf51-9299897df3d7) @ PCI:0000:01:00.0
Feb 28 19:50:10 s-N552VW systemd[1]: Starting Stop ureadahead data collection...
Feb 28 19:50:10 s-N552VW systemd[1]: Stopped Read required files in advance.
Feb 28 19:50:10 s-N552VW systemd[1]: Started Stop ureadahead data collection.
Feb 28 21:46:05 s-N552VW rsyslogd: [origin software="rsyslogd" swVersion="8.16.0" x-pid="1157" x-info="http://www.rsyslog.com"] start
Feb 28 21:46:05 s-N552VW rsyslogd-2222: command 'KLogPermitNonKernelFacility' is currently not permitted - did you already set it via a RainerScript command (v6+ config)? [v8.16.0 try http://www.rsyslog.com/e/2222 ]
Feb 28 21:46:05 s-N552VW rsyslogd: rsyslogd's groupid changed to 108
Feb 28 21:46:05 s-N552VW rsyslogd: rsyslogd's userid changed to 104
Feb 28 21:46:05 s-N552VW rsyslogd-2039: Could not open output pipe '/dev/xconsole':: No such file or directory [v8.16.0 try http://www.rsyslog.com/e/2039 ]
Feb 28 21:46:05 s-N552VW rsyslogd-2007: action 'action 10' suspended, next retry is Wed Feb 28 21:46:35 2018 [v8.16.0 try http://www.rsyslog.com/e/2007 ]
Feb 28 21:46:05 s-N552VW systemd-modules-load[406]: Inserted module 'lp'
Feb 28 21:46:05 s-N552VW systemd-modules-load[406]: Inserted module 'ppdev'
Feb 28 21:46:05 s-N552VW systemd-modules-load[406]: Inserted module 'parport_pc'
Feb 28 21:46:05 s-N552VW loadkeys[400]: Loading /etc/console-setup/cached.kmap.gz

它从 跳到19:50:10wth 21:46:05?!


让我们看一下/var/log/kern.log

Feb 28 19:49:34 s-N552VW NetworkManager[1186]: <info>  [1519834774.5220] manager: WiFi hardware radio set enabled
Feb 28 19:49:34 s-N552VW NetworkManager[1186]: <info>  [1519834774.5220] manager: WWAN hardware radio set enabled
Feb 28 19:49:34 s-N552VW kernel: [   15.234933] nvidia-modeset: Allocated GPU:0 (GPU-d4ac21de-204f-1b44-bf51-9299897df3d7) @ PCI:0000:01:00.0
Feb 28 19:49:34 s-N552VW kernel: [   15.235040] nvidia-modeset: Freed GPU:0 (GPU-d4ac21de-204f-1b44-bf51-9299897df3d7) @ PCI:0000:01:00.0
\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00Feb 28 21:46:05 s-N552VW kernel: [    0.000000] microcode: microcode updated early to revision 0xba, date = 2017-04-09
Feb 28 21:46:05 s-N552VW kernel: [    0.000000] random: get_random_bytes called from start_kernel+0x42/0x50d with crng_init=0
Feb 28 21:46:05 s-N552VW kernel: [    0.000000] Linux version 4.13.0-36-generic (buildd@lgw01-amd64-033) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.9)) 

似乎是 Nvidia 驱动程序的问题,我将软件包nvidia-settings从升级390.12-0ubuntu0~gpu16.04.1390.25-0ubuntu0~gpu16.04.1


最后/var/log/auth.log

Feb 28 19:49:32 s-N552VW systemd: pam_unix(systemd-user:session): session opened for user s by (uid=0)
Feb 28 19:49:32 s-N552VW lightdm: pam_ck_connector(lightdm:session): nox11 mode, ignoring PAM_TTY :0
Feb 28 19:49:34 s-N552VW polkitd(authority=local): Registered Authentication Agent for unix-session:c2 (system bus name :1.53 [/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1], object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00Feb 28 21:46:05 s-N552VW systemd-logind[1124]: New seat seat0.
Feb 28 21:46:09 s-N552VW lightdm: PAM unable to dlopen(pam_kwallet.so): /lib/security/pam_kwallet.so: cannot open shared object file: No such file or directory

答案1

我只需执行相同的程序即可重现此冻结。

因此,正如我在问题中所说的那样,我从更新管理器中进行了更新,并且升级了 Nvidia 设置,但我不知道自己在做什么,默认情况下未选中此更新,因此我Nvidia-387之前安装了驱动程序,并且通过更新安装了该驱动程序Nvidia settings 390,这当然是要与Nvidia-390驱动程序一起使用,而不是Nvidia-387我正在使用的驱动程序。

s@s-N552VW ~/Desktop $ dpkg -l | grep nvidia
ii  nvidia-387                                  387.34-0ubuntu0~gpu16.04.2                              amd64        NVIDIA binary driver - version 387.34
ii  nvidia-opencl-icd-387                       387.34-0ubuntu0~gpu16.04.2                              amd64        NVIDIA OpenCL ICD
ii  nvidia-prime                                0.8.2linuxmint1                                         amd64        Tools to enable NVIDIA's Prime
ii  nvidia-settings                             390.25-0ubuntu0~gpu16.04.1                              amd64        Tool for configuring the NVIDIA graphics driver

打开驱动程序管理器并升级到 Nvidia 390,不再冻结!

s@s-N552VW ~/Desktop $ dpkg -l | grep nvidia
rc  nvidia-387                                  387.34-0ubuntu0~gpu16.04.2                              amd64        NVIDIA binary driver - version 387.34
ii  nvidia-390                                  390.25-0ubuntu0~gpu16.04.1                              amd64        NVIDIA binary driver - version 390.25
rc  nvidia-opencl-icd-387                       387.34-0ubuntu0~gpu16.04.2                              amd64        NVIDIA OpenCL ICD
ii  nvidia-opencl-icd-390                       390.25-0ubuntu0~gpu16.04.1                              amd64        NVIDIA OpenCL ICD
ii  nvidia-prime                                0.8.2linuxmint1                                         amd64        Tools to enable NVIDIA's Prime
ii  nvidia-settings                             390.25-0ubuntu0~gpu16.04.1                              amd64        Tool for configuring the NVIDIA graphics driver
s@s-N552VW ~/Desktop $ 

并运行:

sudo apt-get purge nvidia-387
sudo apt-get purge nvidia-opencl-icd-387

似乎一切都恢复正常了:

s@s-N552VW ~/Desktop $ dpkg -l | grep nvidia
ii  nvidia-390                                  390.25-0ubuntu0~gpu16.04.1                              amd64        NVIDIA binary driver - version 390.25
ii  nvidia-opencl-icd-390                       390.25-0ubuntu0~gpu16.04.1                              amd64        NVIDIA OpenCL ICD
ii  nvidia-prime                                0.8.2linuxmint1                                         amd64        Tools to enable NVIDIA's Prime
ii  nvidia-settings                             390.25-0ubuntu0~gpu16.04.1                              amd64        Tool for configuring the NVIDIA graphics driver

更新管理器建议更新 Nvidia 设置,但不建议更新驱动程序本身。

相关内容