#如何查看显卡型号
- lspci | grep -i vga
-
- #----output------
- 01:00.0 VGA compatible controller: NVIDIA Corporation Device 1f06 (rev a1)
根据 Device 后的 值 进入网站查询
pci-ids.ucw.cz/mods/PC/10de?action=help?help=pci
#根据显卡型号,下载对应系统的驱动
#安装驱动步骤
- #ubuntu2004安装nv驱动
- #更新软件列表
- sudo apt-get update
- #安装依赖
- sudo apt-get install -y g++
- sudo apt-get install -y gcc
- sudo apt-get install -y make
- #禁用nouveau
- echo "blacklist nouveau">>/etc/modprobe.d/blacklist.conf
- echo "options nouveau modeset=0" >>/etc/modprobe.d/blacklist.conf
- #配置生效
- sudo update-initramfs -u
- #重启
- sudo reboot
- #检查nouveau是否禁用成功,无输出则是成功禁用
- lsmod | grep nouveau
- #停止可视化桌面
- sudo telinit 3
- #开始安装驱动,先下载驱动,英伟达官网下载对应的run
- wget https://10.60.154.112:8443/update/nv550.run
- chmod +x nv550.run
- sudo sh ./nv550.run --no-opengl-files
- #安装提示
- 1.The distribution-provided pre-install script failed! Are you sure you want to continue?
- 选择continue installation
-
- 2.Would you like to register the kernel module souces with DKMS? This will allow DKMS to automatically build a new module, if you install a different kernel later?
- 选择 No 继续。
-
- 3.,选项是:install without signing
-
- 4.问题:Nvidia's 32-bit compatibility libraries?
- 选择 No 继续。
- 5.Would you like to run the nvidia-xconfigutility to automatically update your x configuration so that the NVIDIA x driver will be used when you restart x? Any pre-existing x confile will be backed up.
- 选择 no 继续
- 6.reboot
- 7.验证功能
- nvidia-smi
- nvidia-settings
- lshw -c video
- configureure: 有driver字样
- 8.远程测试是否可以走上硬编,如有问题,可以替换C端测试
- 安装结束后输入sudo service lightdm start 或者 sudo service gdm3 start 重启x-window服务,即可自动进入登陆界面,不行的话,输入sudo reboot重启,再看看。
- (重启后不行,尝试在bios中去掉安全启动设置,改成 secure boot:disable)
- 驱动安装好后,终端输入nvidia-smi 检查是否装好
-
- 9.卸载驱动
- sudo apt-get remove --purge nvidia-*
- #irq/122-aerdv 100% cpu
- vi /etc/default/grub
- 增加:pci=nomsi pci=noaer pcie_aspm=off
- GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on kvm.ignore_msrs=1 vfio-pci.ids=10de:2684,10de:22ba vfio_iommu_type1.allow_unsafe_interrupts=1 modprode.blacklist=nvidiafb,nouveau iommu=pt vfio vfio_mdev vfio_pci pci=nomsi pci=noaer pcie_aspm=off"