ubuntu18.04使用NVIDIA官方驱动无法载入内核模块

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
akitosaki
帖子: 3
注册时间: 2018-05-22 12:08
系统: ubuntu 18.04

ubuntu18.04使用NVIDIA官方驱动无法载入内核模块

#1

帖子 akitosaki » 2018-05-22 12:21

昨天从17.10升级到了18.04,然后发现启动系统无法自动进入图形界面

如果是用开源nouveau驱动:
开机无法自动加载图形界面,进入tty7左上角光标一直闪,但在tty1-6下可用startx启动图形界面

如果安装英伟达官方的闭源驱动:
无论是从Additional Driver里选择还是从官网下载.run文件安装,开机会都提示 Failed to start Load Kernel Modules,且命令行下startx无法启动图形界面

我执行了systemctl

代码: 全选

systemctl status systemd-modules-load.service
请问该如何定位更详细的错误并如何解决呢,我有看国外的ubuntu论坛,尝试了还是不行
附件
Screenshot from 2018-05-22 12-16-21.png
头像
astolia
论坛版主
帖子: 6436
注册时间: 2008-09-18 13:11

Re: ubuntu18.04使用NVIDIA官方驱动无法载入内核模块

#2

帖子 astolia » 2018-05-22 19:28

检查一下/etc/modules-load.d下的哪个文件里写了off

代码: 全选

grep off /etc/modules-load.d/*
akitosaki
帖子: 3
注册时间: 2018-05-22 12:08
系统: ubuntu 18.04

Re: ubuntu18.04使用NVIDIA官方驱动无法载入内核模块

#3

帖子 akitosaki » 2018-05-22 19:55

astolia 写了:检查一下/etc/modules-load.d下的哪个文件里写了off

代码: 全选

grep off /etc/modules-load.d/*
谢谢!
modules-load.d 目录下只有两个文件,但是并没有哪里写了off

代码: 全选

modules.conf
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

nouveau

代码: 全选

# Parallel printer driver modules loading for cups
# LOAD_LP_MODULE was 'yes' in /etc/default/cups
lp
ppdev
parport_pc
我的显卡支持NVIDIA-340 NVIDIA-390两个驱动

不管我装NVIDIA闭源驱动还是nouveau,modules-load.d文件的内容都不会变化,也就是说当装了NVIDIA驱动时里面还写的是nouveau
如果是这个原因导致出错的话,请问该如何改配置文件呢?我看其他安装显卡驱动教程并没有特别提到安装驱动后要手动配置什么内容。

我并不是一定要用闭源驱动,只是用nouveau进不了图形界面(光标会在左上角一直闪)以前是换成闭源驱动就好了。
头像
astolia
论坛版主
帖子: 6436
注册时间: 2008-09-18 13:11

Re: ubuntu18.04使用NVIDIA官方驱动无法载入内核模块

#4

帖子 astolia » 2018-05-22 22:36

不是模块名的话,那应该就是加载参数的问题了,继续检查/etc/modprobe.d/下的

代码: 全选

grep off /etc/modprobe.d/*
我记得n卡驱动会在这个下面增加一个把nouveau禁用的文件
akitosaki
帖子: 3
注册时间: 2018-05-22 12:08
系统: ubuntu 18.04

Re: ubuntu18.04使用NVIDIA官方驱动无法载入内核模块

#5

帖子 akitosaki » 2018-06-21 13:12

astolia 写了:不是模块名的话,那应该就是加载参数的问题了,继续检查/etc/modprobe.d/下的

代码: 全选

grep off /etc/modprobe.d/*
我记得n卡驱动会在这个下面增加一个把nouveau禁用的文件
谢谢,不过感觉这些off与显卡驱动没有什么关系

代码: 全选

/etc/modprobe.d/blacklist-rare-network.conf:alias net-pf-3 off
/etc/modprobe.d/blacklist-rare-network.conf:alias net-pf-6 off
/etc/modprobe.d/blacklist-rare-network.conf:alias net-pf-9 off
/etc/modprobe.d/blacklist-rare-network.conf:alias net-pf-11 off
/etc/modprobe.d/blacklist-rare-network.conf:alias net-pf-12 off
/etc/modprobe.d/blacklist-rare-network.conf:alias net-pf-19 off
/etc/modprobe.d/blacklist-rare-network.conf:alias net-pf-21 off
/etc/modprobe.d/blacklist-rare-network.conf:alias net-pf-36 off

Aexus
帖子: 12
注册时间: 2010-10-10 21:21
系统: Pop!_OS
联系:

Re: ubuntu18.04使用NVIDIA官方驱动无法载入内核模块

#6

帖子 Aexus » 2018-07-20 21:41

先进bios把独立显卡关闭,使用集显看看能不能进入系统
回复