![如何修复 NVidia 无法从挂起中恢复(Ubuntu 16.04)?](https://linux22.com/image/1002456/%E5%A6%82%E4%BD%95%E4%BF%AE%E5%A4%8D%20NVidia%20%E6%97%A0%E6%B3%95%E4%BB%8E%E6%8C%82%E8%B5%B7%E4%B8%AD%E6%81%A2%E5%A4%8D%EF%BC%88Ubuntu%2016.04%EF%BC%89%EF%BC%9F.png)
我在华硕 UX501JW 上运行 Ubuntu 16.04.3。该笔记本电脑采用 NVidia Optimus 技术(Intel HD4600 和 NVidia GM107M(GeForce GTX 960M))。安装了最新的 nvidia-384 驱动程序和 bumblebee。
启动后一切正常。直到笔记本电脑通过合上盖子暂停然后唤醒。然后系统日志中充斥着以下错误,并且由于内核试图重新加载故障模块,电池开始消耗 20W。重新启动可以“治愈”它(直到下一次暂停)。
有趣的是 - 当通过键盘“Zzz”按钮暂停时,这种情况不会发生。
问题是什么以及如何修复/解决它?
[ 245.095474] NVRM: The system BIOS may have misconfigured your GPU.
[ 245.095475] nvidia: probe of 0000:3e:00.0 failed with error -1
[ 245.095489] NVRM: The NVIDIA probe routine failed for 2 device(s).
[ 245.095489] NVRM: None of the NVIDIA graphics adapters were initialized!
[ 245.095554] nvidia-nvlink: Unregistered the Nvlink Core, major device number 243
[ 245.180030] nvidia-nvlink: Nvlink Core is being initialized, major device number 243
[ 245.180254] NVRM: This is a 64-bit BAR mapped above 4GB by the system
NVRM: BIOS or the Linux kernel, but the PCI bridge
NVRM: immediately upstream of this GPU does not define
NVRM: a matching prefetchable memory window.
[ 245.180255] NVRM: This may be due to a known Linux kernel bug. Please
NVRM: see the README section on 64-bit BARs for additional
NVRM: information.
[ 245.180258] nvidia: probe of 0000:01:00.0 failed with error -1
[ 245.180265] NVRM: This PCI I/O region assigned to your NVIDIA device is invalid:
NVRM: BAR0 is 0M @ 0x0 (PCI:0000:3e:00.0)
[ 245.180266] NVRM: The system BIOS may have misconfigured your GPU.
[ 245.180267] nvidia: probe of 0000:3e:00.0 failed with error -1
[ 245.180284] NVRM: The NVIDIA probe routine failed for 2 device(s).
[ 245.180284] NVRM: None of the NVIDIA graphics adapters were initialized!
[ 245.180372] nvidia-nvlink: Unregistered the Nvlink Core, major device number 243
答案1
回答我自己的问题:我还没有找到根本原因,但至少解决方法安装主线内核(我的情况是版本v4.13-rc6
)后,问题不再出现。
下载和安装主线内核的说明可以在这里找到:https://wiki.ubuntu.com/Kernel/MainlineBuilds?action=show&redirect=KernelMainlineBuilds