LEAP 15 安装NVIDIA Driver以后又出问题了

刚解决了上网问题,在此鸣谢女王,xzhao还有zznbd以及其他帮助过我的朋友,如果没有提到名字敬请提示,请包涵我的不周到,我的谢意一点不少。

刚才解决了上网问题以后,我就赶紧安装nvidia驱动以及xfce一些themes,也就是adapta之类的。
我一直保持女王之前说的四个源,没敢添加别的源。
装了nvidia以后就把nvidia的源disbale
装了libgooglepinyin以后也把opensuse factory的源disable了。

我的显卡是GT640
nvidia相关的有这些
nvidia-glG05
x11-video-nvidiaG05
nvidia-computeG05
nvidia-gfxG05-kmp-default
装好以后重启,出问题了,一个显示器不认,分辨率很低,整个图形界面很卡。勉强进入plasma或者xfce
在yast2进入安装或者卸载软件的程序,搜nvidia
除了上述四个包以外还有两个与nouveau有关的包:
nouveau
libdrm_nouveau2
xf86-video-nouveau

我记得是要在blacklist里加入跟nouveau有关的内容?
我的blacklist内容是贴在下面了。

ps,感觉奇怪的是,这里有个nvidiafb,这个应该屏蔽么?

cat /etc/modprobe.d/50-blacklist.conf

$Id$

Listing a module here prevents modprobe from loading it via modalias (only

aliases from /lib/modules/*/modules.alias). You may still load it explicitely.

We blacklist some modules becaus they may harm on certain devices or they

prevent other modules from grabbing the device.

Syntax: blacklist

See ‘man modprobe’.

usbcore … module is loaded implicitly, ignore it otherwise

blacklist usbcore

tulip … de4x5, xircom_tulip_cb, dmfe (…) handle same devices

blacklist de4x5

At least 2.4.3 and later xircom_tulip doesn’t have that conflict

xircom_tulip_cb

blacklist dmfe

list all framebuffer drivers, some of them tend to crash during boot

they are either compiled into the kernel, or vesafb is active

X works fine without them, rcfbset can load them if really required

sed -e ‘//drivers/video/..(o|ko)$/{s@^./@@;s@…*$@@;p};d’

blacklist aty128fb
blacklist atyfb
blacklist cyber2000fb
blacklist g450_pll
blacklist hgafb
blacklist i2c-matroxfb
blacklist i810fb
blacklist intelfbdrv
blacklist intelfbhw
blacklist matroxfb_accel
blacklist matroxfb_base
blacklist matroxfb_crtc2
blacklist matroxfb_DAC1064
blacklist matroxfb_g450
blacklist matroxfb_maven
blacklist matroxfb_misc
blacklist matroxfb_proc
blacklist matroxfb_Ti3026
blacklist mdacon
blacklist neofb
blacklist pm2fb
blacklist pm3fb
blacklist radeonfb
blacklist rivafb
blacklist sisfb
blacklist sstfb
blacklist tdfxfb
blacklist tridentfb
blacklist vga16fb
blacklist vgastate

for kyrofb see Bug 35810

blacklist kyrofb

list was not complete (bug 106715)

blacklist arcfb
blacklist backlight
blacklist lcd
blacklist cirrusfb
blacklist gx1fb
blacklist intelfb
blacklist macmodes
blacklist nvidiafb
blacklist s1d13xxxfb
blacklist savagefb

additional modules since SLE11, bug 468964

blacklist arkfb
blacklist carminefb
blacklist gxfb
blacklist hecubafb
blacklist lxfb
blacklist s3fb
blacklist sm501fb
blacklist viafb
blacklist vmlfb
blacklist vt8623fb
#bug 846218
blacklist udlfb

ISDN modules are load from /lib/udev/isdn.sh

blacklist fcusb
blacklist fcusb2
blacklist fxusb
blacklist fxusb_CZ
blacklist fcdslusb
blacklist fcdslusb2
blacklist fcdslusba
blacklist fcdslslusb
blacklist fcdslslusb2
blacklist e2220pc
blacklist e5520pc
blacklist bfusb
blacklist b1isa
blacklist b1pci
blacklist b1pcmcia
blacklist c4
blacklist t1isa
blacklist t1pci
blacklist divas
blacklist act2000
blacklist hfc_usb
blacklist hisax
blacklist hisax_fcpcipnp
blacklist hisax_st5481
blacklist hysdn
blacklist icn
blacklist pcbit
blacklist sc
blacklist tpam
blacklist fcpci
blacklist fcclassic
blacklist fcdsl
blacklist fcdsl2

mISDN modules

blacklist hfcsusb
blacklist hfcpci
blacklist hfcmulti
blacklist l1oip
blacklist mISDN_dsp
blacklist mISDN_core

OSS PCI sound modules

blacklist ad1889
blacklist ali5455
blacklist btaudio
blacklist cmpci
blacklist cs4281
blacklist emu10k1
blacklist es1370
blacklist es1371
blacklist esssolo1
blacklist forte
blacklist i810_audio
blacklist maestro
blacklist maestro3
blacklist nm256_audio
blacklist opl3sa2 # Bug 219758
blacklist rme96xx
blacklist sonicvibes
blacklist trident
blacklist via82cxxx_audio
blacklist ymfpci

this is a debugging module which should only be loaded manually

blacklist evbug

These mtd drivers should be loaded manually.

blacklist scb2_flash
blacklist pci
blacklist l440gx
blacklist amd76xrom

job of rcdvb

blacklist snd-bt87x

This module seems to be good for nothing. See bug 129301.

blacklist dpt_i2o

These devices have bt878 chip without PCI Subsystem ID. Without that info bttv

does not know how to treat them properly. Therefore we disable autoloading of

modules for these devices.

See https://bugzilla.novell.com/show_bug.cgi?id=149588

To enable your device create a hardware configuration file for your device.

See man hwup for details.

You will probably have to specify an option to identify your card. Have a

look in /usr/src/linux/Documentation/video4linux/CARDLIST.bttv.

alias pci:v0000109Ed0000036Esv00000000sd00000000bc04sc00i00 bttv_skip_it
alias pci:v0000109Ed00000878sv00000000sd00000000bc04sc80i00 bttv_skip_it
install bttv_skip_it echo “module alias skipped (bt878 chip without PCI Subsystem ID)”

For some bridges both intel-agp and i82875p_edac are loaded. If i82875p_edac

is loaded first it will grab the device. Then intel-agp doesn’t work.

Therefore we disable automatic loading of 82875p_edac. (Bug 213840)

blacklist i82875p_edac

Blacklist the IBM s390 module for I/O dynamic configuration support

Bug bnc#478601

blacklist chsc_sch

Blacklist acpi_power_meter. The device requires processing ACPI AML code to

update average power measurement. This may be at a high frequency and has

been observed executing every 500ms. This has a noticable impact on latency

sensitive applications that experience delays on workqueue executions. As

very few applications require the data, blacklist the module by default

(bnc#974373)

blacklist acpi_power_meter

我没系统学过linux,只能说个过程了,请谨慎尝试
到invdia 网站里下个 run 文件就行了
到 tty1 里安装一下就行了
安装前注意驱动下载网页下面的 howto 读一下
安装期间会提示你缺少什么,象什么 gcc 之类的……
把这些装了再装驱动,就行了
期间可能会要求你重启。
…………
我的显卡是 msi gtx460 ,老机器,没有 efi ,驱动下了好几个,能用的就一个,我是一个一个试出来的。


libdrm_nouveau2 - Userspace interface for Kernel DRM services for NVIDIA chips

xf86-video-nouveau - Accelerated Open Source driver for nVidia cards
The nouveau project aims to build high-quality, open source drivers for nVidia cards. “Nouveau” [nuvo] is the French word for “new”.

你禁用这个为什么??

1赞

你需要解决下面几个问题:

  1. GT640显卡是不能用G05系列驱动的,要用G04。具体来说你要装:
    nvidia-gfxG04-kmp-default,nvidia-computeG04,nvidia-glG04,x11-video-nvidiaG04这四个包并且把G05的包都删掉,版本是390.116。
  2. 在/etc/modprobe.d/50-blacklist.conf的最后一行写:
    blacklist nouveau
    之后运行
    sudo mkinitrd
    然后重启就可以了。
1赞

我的blacklist中没有这个,
在内核参数中有 nouveau.modeset=0 ,是不是一样的效果?

1赞

不一样,modeset=0是说禁用kernel mode setting。要blacklist建议还是放在50-blacklist.conf里面。

1赞

现在是每次启动跟我说进入emeergency模式 systemctl default没用 sddm能打开登录界面,输入密码自动退出来。
root 下进入yast2可以在software manage里选中所有的nvidia G04,但是连不到nvidia的源。
我事先在nvidia网站下载了 run文件,运行失败

用sddm死活不行,最后startx 进了plasma,进去以后又上不了网,没法装nvidia驱动

现在必须以命令行连上网,否则装不了Nvidia 驱动


systemctl restart network也没用
他突然连root密码都不认了

刚才在sddm里进入了xfce,好不容易在yast2里面进入软件管理里面把nvidia 04的四个包都装好, 在 modprobe.d/50-blacklist里加上了blacklist nouveau最后sudo mkinitrd
现在还是老问题,分辨率不对,只有一个显示器被认出来

要这么说的话,nvidia实在坑人,在他官网上按照显卡核心去查,找到的驱动就是418.56,跟yast2软件管理给出的列表里的nvidia-glG05是一样的,418.56。

重启之后 sddm界面还是分辨率很低,响应极慢
ctrl alt F1之后
systemctl default回车,没有任何变化。
另外每次启动我注意到,挂载/windows/D和/windows/E总是failed,我就在yast,partitioner里面把这两个挂载点也取消了。
说到这两个挂载点,就是我这两个硬盘的ntfs分区,每个有3T,其中D盘就是在装着win10的硬盘上,装opensuse的硬盘也有一个3T分区,设置成E盘,本来挂载成/windows/E

这个办法,我过去用一些老版本的时候是可以的,11.4,12.1,都可以。出问题的时候只要事先下载好nvidia的驱动文件(NVIDIA*.run)退出图形界面,装好这个驱动就得。
可是我发现42.3和15.0用不了这个办法了,退出图形界面以后运行这个驱动,他说系统已经装了blabla,各种error

你试试如下命令:
sudo zypper in kernel-devel kernel-default-devel
然后退出图形界面,在命令行下面运行nvidia的.run文件安装驱动试试?
这样做有风险就是会出现内核版本和驱动内核模块版本不匹配的编译错误,不过你可以先试试。

1赞

https://blog.csdn.net/GYGuo95/article/details/78656297
是不是要 init 3 ? 要不要卸载官方驱动nouveau ?

init 3的作用就是退出图形界面和启动命令行。
不用卸载,你确保blacklist nouveau之后nouveau就不会运行了,不需要卸载。
检查nouveau是否正在运行的方法:
lsmod |grep nouveau
如果返回结果为空,说明nouveau驱动没有正在运行,可以安装nvidia驱动。
否则请先检查自己的50-blacklist.conf,里面是否有blacklist nouveau这一行。

1赞

那样的话,得先下载390.116,我已经下载好的应该是G05系列的,418.56

我看了一下你的显卡是418.56和390.116都可以用,所以你可以先试试418.56

1赞


执行了这个命令,系统说nothing to do

blacklist nouveau已经加到文件里了

ctrl alt F3进入命令行,运行nivida的run文件,提示信息还是原来的

还是原来的结果

Performing CC sanity check with CC=“/use/bin/cc”

/var/log/NVIDIA-installer.orf