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

 

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

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

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值