您现在的位置:首页 > >

NVIDIA显卡驱动未加载问题??未完全解决

发布时间:

lsmod | grep -i nvidia

发现没有nvidia的内核模块,手动加载


sudo modprobe nvidia_352_uvm

运行


nvidia-smi

报告没有显卡驱动


ls /dev/nvidia*

没有设备
网上搜索发现一个xorg wiki上有一篇关于设备miss的http://www.x.org/wiki/NVIDIAProprietaryDriver/


Another cause may be that the /dev/nvidia* device files may be missing. To recreate this files simply run this script (as root). It assumes your users who have GUI access are in group "video"):

for i in 0 1 2 3 4 5 6 7; do
node="/dev/nvidia$i"
rm -f $node
mknod $node c 195 $i || echo "mknod "$node""
chmod 0660 $node || echo "chmod "$node""
chown :video $node || echo "chown "$node""
done

node="/dev/nvidiactl"
rm -f $node
mknod $node c 195 255 || echo "mknod "$node""
chmod 0666 $node || echo "chmod "$node""
chown :video $node || echo "chown "$node""

Finally, the NVIDIA kernel module may print error messages indicating a problem -- to view these messages please check /var/log/messages, or wherever syslog is directed to place kernel messages. These messages are prepended with "NVRM".

但是之后运行cuda栗子还是找不到驱动


ls /dev/nvidia*

发现没有nvidia_uvm
进入图形界面,打开driver manager,发现选择的是nvidia的显卡驱动。但是再次查看/dev下面发现已经有了nvidia_uvm节点,重新运行cuda栗子成功!!!


问题:装完kubuntu之后,nvidia显卡驱动不加载,gpumanager的前后显示如下:
之前是:


dj@Ubuntu14:~$ cat /var/log/gpu-manager.log.back
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
grep dmesg status 256
dmesg status 256 == 0? No
Is nvidia loaded? yes
Was nvidia unloaded? no
Is nvidia blacklisted? no
Is fglrx loaded? no
Was fglrx unloaded? no
Is fglrx blacklisted? no
Is intel loaded? no
Is radeon loaded? no
Is radeon blacklisted? no
Is nouveau loaded? no
Is nouveau blacklisted? yes
Is fglrx kernel module available? no
Is nvidia kernel module available? yes
Vendor/Device Id: 10de:13c0
BusID "PCI:4@0:0:0"
Is boot vga? no
Vendor/Device Id: 10de:13c0
BusID "PCI:5@0:0:0"
Is boot vga? no
Vendor/Device Id: 10de:13c0
BusID "PCI:8@0:0:0"
Is boot vga? no
Vendor/Device Id: 10de:13c0
BusID "PCI:9@0:0:0"
Is boot vga? no
Vendor/Device Id: 1a03:2000
BusID "PCI:12@0:0:0"
Is boot vga? yes
Vendor/Device Id: 10de:13c0
BusID "PCI:131@0:0:0"
Is boot vga? no
Vendor/Device Id: 10de:13c0
BusID "PCI:132@0:0:0"
Is boot vga? no
Vendor/Device Id: 10de:13c0
BusID "PCI:135@0:0:0"
Is boot vga? no
Vendor/Device Id: 10de:13c0
BusID "PCI:136@0:0:0"
Is boot vga? no
Skipping "/dev/dri/card8", driven by "nvidia-drm"
Skipping "/dev/dri/card7", driven by "nvidia-drm"
Skipping "/dev/dri/card6", driven by "nvidia-drm"
Skipping "/dev/dri/card5", driven by "nvidia-drm"
Skipping "/dev/dri/card4", driven by "nvidia-drm"
Skipping "/dev/dri/card3", driven by "nvidia-drm"
Skipping "/dev/dri/card2", driven by "nvidia-drm"
Skipping "/dev/dri/card1", driven by "nvidia-drm"
Skipping "/dev/dri/card0", driven by "ast"
Skipping "/dev/dri/card8", driven by "nvidia-drm"
Skipping "/dev/dri/card7", driven by "nvidia-drm"
Skipping "/dev/dri/card6", driven by "nvidia-drm"
Skipping "/dev/dri/card5", driven by "nvidia-drm"
Skipping "/dev/dri/card4", driven by "nvidia-drm"
Skipping "/dev/dri/card3", driven by "nvidia-drm"
Skipping "/dev/dri/card2", driven by "nvidia-drm"
Skipping "/dev/dri/card1", driven by "nvidia-drm"
Skipping "/dev/dri/card0", driven by "ast"
Skipping "/dev/dri/card8", driven by "nvidia-drm"
Skipping "/dev/dri/card7", driven by "nvidia-drm"
Skipping "/dev/dri/card6", driven by "nvidia-drm"
Skipping "/dev/dri/card5", driven by "nvidia-drm"
Skipping "/dev/dri/card4", driven by "nvidia-drm"
Skipping "/dev/dri/card3", driven by "nvidia-drm"
Skipping "/dev/dri/card2", driven by "nvidia-drm"
Skipping "/dev/dri/card1", driven by "nvidia-drm"
Skipping "/dev/dri/card0", driven by "ast"
Does it require offloading? no
last cards number = 9
Has amd? no
Has intel? no
Has nvidia? yes
How many cards? 9
Has the system changed? No
main_arch_path x86_64-linux-gnu, other_arch_path i386-linux-gnu
Current alternative: /usr/lib/nvidia-352/ld.so.conf
Current core alternative: (null)
Is nvidia enabled? yes
Is fglrx enabled? no
Is mesa enabled? no
Is pxpress enabled? no
Is prime enabled? no
Is nvidia available? yes
Is fglrx available? no
Is fglrx-core available? no
Is mesa available? yes
Is pxpress available? no
Is prime available? yes

现在是


dj@Ubuntu14:~$ sudo gpu-manager
[sudo] password for dj:
last_boot_file: /var/lib/ubuntu-drivers-common/last_gfx_boot
new_boot_file: /var/lib/ubuntu-drivers-common/last_gfx_boot
/etc/modprobe.d is not a file
grep dmesg status 256
dmesg status 256 == 0? No
/etc/modprobe.d is not a file
/etc/modprobe.d is not a file
/etc/modprobe.d is not a file
Is nvidia loaded? yes
Was nvidia unloaded? no
Is nvidia blacklisted? no
Is fglrx loaded? no
Was fglrx unloaded? no
Is fglrx blacklisted? no
Is intel loaded? no
Is radeon loaded? no
Is radeon blacklisted? no
Is nouveau loaded? no
Is nouveau blacklisted? yes
Is fglrx kernel module available? no
Is nvidia kernel module available? yes
Vendor/Device Id: 10de:13c0
BusID "PCI:4@0:0:0"
Is boot vga? no
Vendor/Device Id: 10de:13c0
BusID "PCI:5@0:0:0"
Is boot vga? no
Vendor/Device Id: 10de:13c0
BusID "PCI:8@0:0:0"
Is boot vga? no
Vendor/Device Id: 10de:13c0
BusID "PCI:9@0:0:0"
Is boot vga? no
Vendor/Device Id: 1a03:2000
BusID "PCI:12@0:0:0"
Is boot vga? yes
Vendor/Device Id: 10de:13c0
BusID "PCI:131@0:0:0"
Is boot vga? no
Vendor/Device Id: 10de:13c0
BusID "PCI:132@0:0:0"
Is boot vga? no
Vendor/Device Id: 10de:13c0
BusID "PCI:135@0:0:0"
Is boot vga? no
Vendor/Device Id: 10de:13c0
BusID "PCI:136@0:0:0"
Is boot vga? no
Skipping "/dev/dri/card8", driven by "nvidia-drm"
Skipping "/dev/dri/card7", driven by "nvidia-drm"
Skipping "/dev/dri/card6", driven by "nvidia-drm"
Skipping "/dev/dri/card5", driven by "nvidia-drm"
Skipping "/dev/dri/card4", driven by "nvidia-drm"
Skipping "/dev/dri/card3", driven by "nvidia-drm"
Skipping "/dev/dri/card2", driven by "nvidia-drm"
Skipping "/dev/dri/card1", driven by "nvidia-drm"
Skipping "/dev/dri/card0", driven by "ast"
Skipping "/dev/dri/card8", driven by "nvidia-drm"
Skipping "/dev/dri/card7", driven by "nvidia-drm"
Skipping "/dev/dri/card6", driven by "nvidia-drm"
Skipping "/dev/dri/card5", driven by "nvidia-drm"
Skipping "/dev/dri/card4", driven by "nvidia-drm"
Skipping "/dev/dri/card3", driven by "nvidia-drm"
Skipping "/dev/dri/card2", driven by "nvidia-drm"
Skipping "/dev/dri/card1", driven by "nvidia-drm"
Skipping "/dev/dri/card0", driven by "ast"
Skipping "/dev/dri/card8", driven by "nvidia-drm"
Skipping "/dev/dri/card7", driven by "nvidia-drm"
Skipping "/dev/dri/card6", driven by "nvidia-drm"
Skipping "/dev/dri/card5", driven by "nvidia-drm"
Skipping "/dev/dri/card4", driven by "nvidia-drm"
Skipping "/dev/dri/card3", driven by "nvidia-drm"
Skipping "/dev/dri/card2", driven by "nvidia-drm"
Skipping "/dev/dri/card1", driven by "nvidia-drm"
Skipping "/dev/dri/card0", driven by "ast"
Does it require offloading? no
last cards number = 9
Has amd? no
Has intel? no
Has nvidia? yes
How many cards? 9
Has the system changed? No
main_arch_path x86_64-linux-gnu, other_arch_path i386-linux-gnu
update-alternatives: error: no alternatives for x86_64-linux-gnu_gfxcore_conf
Current alternative: /usr/lib/nvidia-352/ld.so.conf
Current core alternative: (null)
Is nvidia enabled? yes
Is fglrx enabled? no
Is mesa enabled? no
Is pxpress enabled? no
Is prime enabled? no
Is nvidia available? yes
Is fglrx available? no
Is fglrx-core available? no
Is mesa available? yes
Is pxpress available? no
Is prime available? yes


热文推荐
猜你喜欢
友情链接: 医学资料大全 农林牧渔 幼儿教育心得 小学教育 中学 高中 职业教育 成人教育 大学资料 求职职场 职场文档 总结汇报