Nvidia 1050 ubuntu16.04 黑屏解决,CUDA+cudnn安装

笔记本: cpu G4560, 显卡1050

黑屏解决

安装以前下的ubuntu16.04.2能正常启动,更新后重启发现黑屏了。。。wtf?
重新去官网下了最新的ubuntu16.04.3,安装都进不去直接黑屏卡住了。。。

网上查了下,大概就是因为显卡驱动的原因。ubuntu自带的nvidia驱动是开源nouveau,没有官网闭源的好使。

解决:
在grub启动界面,选择启动项按e,进去后找到 “quite splash”,改为 “quite splash nomodeset”,不管是安装ubuntu时,还是安装完启动不了改完后都可以进去。

nomodeset作用
The newest kernels have moved the video mode setting into the kernel. So all the programming of the hardware specific clock rates and registers on the video card happen in the kernel rather than in the X driver when the X server starts.. This makes it possible to have high resolution nice looking splash (boot) screens and flicker free transitions from boot splash to login screen. Unfortunately, on some cards this doesnt work properly and you end up with a black screen. Adding the nomodeset parameter instructs the kernel to not load video drivers and use BIOS modes instead until X is loaded.
最新的内核已经把视频模式设置嵌入内核中,所以所有显卡硬件程序的指定时钟和寄存器当图形服务器启动时在内核进行而不是图形设备运行,这使得我们在启动时可以看到不闪的和高分辨率的好看的启动界面,但是,在某些视频卡它不能正常工作而现实黑屏,增加nomodeset参数则告诉内核不要加载显卡而用BIOS模式直到图形界面运行

安装ubuntu

  • ubuntu16.04.3安装时就黑屏。在进去grub选择install ubuntu时,先按e,添加nomodeset后F10启动就能进去安装。
  • 安装完ubuntu后重启大概还是黑屏,添加nomodeset后能启动。

Nvidia驱动

看到网上很多直接去官网下.run驱动,然后禁止nouveau,再安装Nvidia驱动,感觉太麻烦了。
直接在ubuntu的附加驱动那里安装就可以。

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值