thinkpad s5 + ubuntu18 + 1050M(GT107)安装cuda driver

真特么废了老鼻子劲了。试变了网上的所有方法,包括但不限于

  • 关掉Nouveau
  • 更新gcc版本
  • 切换各种源
  • 关掉secure boot
  • 换发行版(ubuntu 16 18 mint19)

 

死活卡在

ERROR: Unable to load the kernel module 'nvidia.ko'.  This happens most
   frequently when this kernel module was built against the wrong or
   improperly configured kernel sources, with a version of gcc that differs
   from the one used to build the target kernel, or if a driver such as
   rivafb/nvidiafb is present and prevents the NVIDIA kernel module from
   obtaining ownership of the NVIDIA graphics device(s), or NVIDIA GPU
   installed in this system is not supported by this NVIDIA Linux graphics
   driver release.
 

 

最终总算找到了个偏门

https://bbs.archlinux.org/viewtopic.php?id=245562

 

It says append, not replace. Hence:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pcie_port_pm=off"

Don't forget to re-generate your /boot/grub/grub.cfg after the config file change:

grub-mkconfig -o /boot/grub/grub.cfg

 

  1. sudo vi /etc/default/grub 
  2. GRUB_CMDLINE_LINUX_DEFAULT里加上pcie_port_pm=off
  3. sudo grub-mkconfig -o /boot/grub/grub.cfg

 

药到病除啊!!!!!!!

妈蛋折腾了三天啊!!!!!

 

你可能感兴趣的:(cuda)