当前位置: 首页>Python>正文

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

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; donode="/dev/nvidia$i"rm -f $nodemknod $node c 195 $i  || echo "mknod \"$node\""chmod 0660 $node      || echo "chmod \"$node\""chown :video $node    || echo "chown \"$node\""
donenode="/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

https://www.zydui.com/af7a3VG8CAwJSBlQ.html
>

相关文章:

  • 显卡驱动有问题怎么办
  • 显示器驱动和显卡驱动
  • 显卡驱动一直提示重启
  • amd显卡驱动程序
  • win10卸载显卡驱动
  • 电脑为什么会有两个显卡驱动
  • 显卡驱动显示安装成功但是没有
  • 显卡驱动停止响应
  • Pytorch中的contiguous理解
  • 英雄聯盟陣營
  • python英雄對戰代碼_用 Python 分析了 1982 場英雄聯盟數據,開局前預測游戲對局勝負!...
  • 兩個嵌套for循環的執行順序
  • C# for循環的執行順序
  • C語言for循環語句的執行順序
  • Python編程PTA題解——字符轉換,提取
  • C練習記錄8——數字字符轉換成相對應的數值
  • 上古卷軸5python_如何評價游戲《上古卷軸5:天際》大型擴展MOD「突破天際」?...
  • 后羿 12 ‖ 對箭
  • 街霸對決最新服務器機柜銷售,街霸對決終于定檔,下個月就可以玩到,這次希望能抽到春麗!...
  • 暴雪風云錄·淺談暴雪的創業歷程
  • python獲取命令行參數 flags_命令行參數--tf.app.flags和python argparse
  • 機器中的幽靈:人工智能在金融市場的影響、風險及監管
  • 什么已配置?為什么在Mac上運行?
  • mdnsresponder_什么是mDNSResponder,為什么它可以在Mac上運行?
  • 趕集網入車行,縱向垂直看好市場
  • visual studio2019團隊資源管理器的使用
  • 被塵封的故事技能點bug_魔獸世界:獵人(射擊)新天賦與技能實測
  • 蘋果黑解升級后顯示無服務器,果粉怒了!升級iOS 12.1.3后,這款iPhone徹底無服務了...
  • 安裝C4D報錯 找不到libmmd.dll文件
  • c4d python_【C4D開發】C4D中的python生成器
  • C4DR19安裝的時候進度條卡到一半就不動了|折騰了4小時-【已解決】
  • lol8月21號服務器維護,《LOL》8月21日測試服 更新維護內容
  • caxa齒輪零件圖_齒輪油泵-各零件圖
  • 各職業藍色套裝屬性和掉落地點
  • 焦慮和迷茫的2020年!
  • 經典的網絡爆笑語錄
  • 關于程序員的59條搞笑但卻真實無比的編程語錄
  • 2019年5月22日 AY 程序員調侃語錄