我正在尝试让 nvidia 驱动程序在我的计算机上运行。将目录更改为 /var/log 并运行后cat gpu-manager.log
,结果如下:
log_file: /var/log/gpu-manager.log
last_boot_file: /var/lib/ubuntu-drivers-common/last_gfx_boot
new_boot_file: /var/lib/ubuntu-drivers-common/last_gfx_boot
can't access /opt/amdgpu-pro/bin/amdgpu-pro-px
Looking for nvidia modules in /lib/modules/4.15.0-34-generic/updates/dkms
Found nvidia module: nvidia-modeset.ko
Looking for amdgpu modules in /lib/modules/4.15.0-34-generic/updates/dkms
Is nvidia loaded? yes
Was nvidia unloaded? no
Is nvidia blacklisted? yes
Is intel loaded? yes
Is radeon loaded? no
Is radeon blacklisted? no
Is amdgpu loaded? no
Is amdgpu blacklisted? no
Is amdgpu versioned? no
Is amdgpu pro stack? no
Is nouveau loaded? no
Is nouveau blacklisted? yes
Is nvidia kernel module available? yes
Is amdgpu kernel module available? no
Vendor/Device Id: 8086:5917
BusID "PCI:0@0:2:0"
Is boot vga? yes
Vendor/Device Id: 10de:1d10
BusID "PCI:1@0:0:0"
Is boot vga? no
Skipping "/dev/dri/card0", driven by "i915"
Skipping "/dev/dri/card1", driven by "nvidia-drm"
Skipping "/dev/dri/card0", driven by "i915"
Skipping "/dev/dri/card1", driven by "nvidia-drm"
Skipping "/dev/dri/card0", driven by "i915"
Skipping "/dev/dri/card1", driven by "nvidia-drm"
Found "/dev/dri/card0", driven by "i915"
output 0:
card0-eDP-1
Number of connected outputs for /dev/dri/card0: 1
Does it require offloading? yes
last cards number = 2
Has amd? no
Has intel? yes
Has nvidia? yes
How many cards? 2
Has the system changed? No
Intel IGP detected
Intel hybrid system
Nvidia driver version 396.54 detected
Creating /usr/share/X11/xorg.conf.d/11-nvidia-prime.conf'
根据结果,nvidia 驱动程序已加载,但被列入黑名单。有人知道如何修复吗?
编辑:看完之后/etc/modprobe.d/blacklist.conf
,我发现它充满了难以理解的胡言乱语:
¡Ãȱ vë1d¡)^ZSv<95>n²è³¹<8f>èéuößí`^S ^H<8d>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;J´¯ÞæçÀØ^]J7T*s8ûÐ^OùO¥l{,ü.8L{ÃÑi^N÷Á<99>^^Ò%<9b>¶8qß&^U<8c>4¥dà`<9c>^V°Ïï<9e>d-^P,<98>¢#Å<99>a×äÕ-^Qz <9c>£§qvºýe½ô<80>,þ<89>Âá<8f>FI_gÉ<80>í=²PÈù»l'4<91>2^]<8a>^^L Õ®^?^\8Â|Ö¨;ù~<8a>=<86>ÒÊDÂõú^_ÏsÁ%ñ^L!j«^O<93>ºðu<89><82>xæÜߦÆZ<95>îMYäS<9b>O<9c>Z©GKÐ<dÜ'ñ±¼"<98>Oó^V½>}]<82><85>¶J-<8a>,ÕÂ<89>Ýõ<80>'¹àô¾(²^Hí<97>é$<94>^@NGD><94>Nx<84>÷ Wü/
这到底是什么意思?!?!
答案1
如果您正在运行 18.04.1,请用/etc/modprobe.d/blacklist.conf
这个替换您的...
# This file lists those modules which we don't want to be loaded by
# alias expansion, usually so some other driver will be loaded for the
# device instead.
# evbug is a debug tool that should be loaded explicitly
blacklist evbug
# these drivers are very simple, the HID drivers are usually preferred
blacklist usbmouse
blacklist usbkbd
# replaced by e100
blacklist eepro100
# replaced by tulip
blacklist de4x5
# causes no end of confusion by creating unexpected network interfaces
blacklist eth1394
# snd_intel8x0m can interfere with snd_intel8x0, doesn't seem to support much
# hardware on its own (Ubuntu bug #2011, #6810)
blacklist snd_intel8x0m
# Conflicts with dvb driver (which is better for handling this device)
blacklist snd_aw2
# causes failure to suspend on HP compaq nc6000 (Ubuntu: #10306)
blacklist i2c_i801
# replaced by p54pci
blacklist prism54
# replaced by b43 and ssb.
blacklist bcm43xx
# most apps now use garmin usb driver directly (Ubuntu: #114565)
blacklist garmin_gps
# replaced by asus-laptop (Ubuntu: #184721)
blacklist asus_acpi
# low-quality, just noise when being used for sound playback, causes
# hangs at desktop session start (Ubuntu: #246969)
blacklist snd_pcsp
# ugly and loud noise, getting on everyone's nerves; this should be done by a
# nice pulseaudio bing (Ubuntu: #77010)
blacklist pcspkr
# EDAC driver for amd76x clashes with the agp driver preventing the aperture
# from being initialised (Ubuntu: #297750). Blacklist so that the driver
# continues to build and is installable for the few cases where its
# really needed.
blacklist amd76x_edac
答案2
黑名单文件应该只包含文本数据,并且该数据看起来像二进制数据。要么 a.) 您在某个时候意外地将二进制文件复制到了黑名单文本文件上,要么 b.) 您的磁盘正在损坏数据。
答案3
去除/lib/modprobe.d/黑名单-nvidia.conf文件(如果存在)。