nvidia
(glxinfo mesa-utils)
nvidiaNVIDIA
GPUIntelGPU
PPA
sudo add-apt-repository ppa:graphics-drivers
nvidia Ubuntu
Ubuntu-drivers devices
recommended
4.重启系统并验证
Ubuntu自带的nouveau驱动是否运行:
sudo apt-mark hold nvidia-390
系统配置
将配置修改成
在文件末尾添加
https://wiki.archlinux.org/index.php/NVIDIA_Optimus
If X.Org X server version 1.17.2 or higher is installed ([2])
/etc/X11/xorg.conf
Section "Module"
EndSection
Section "Device"
EndSection
Option "AllowEmptyInitialConfiguration"
Centos
1nouveau
/lib/modprobe.d/dist-blacklist.conf
nvidiafb
#blacklist nvidiafb
然后添加以下语句:
blacklist nouveau
options nouveau modeset=0
2initramfs image
mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.bak
dracut /boot/initramfs-$(uname -r).img $(uname -r)
1.
Yum install nvidia-detect
2.
3.
Centos 采用源码安装
/lib/modprobe.d/dist-blacklist.conf
nvidiafb注释掉。
然后添加以下语句:
reboot
如果没有显示相关的内容,说明已禁用。
./NVIDIA-Linux-x86_64-346.47.run
accept
xorg.conf,选择yes
系统配置
[daemon]
AutomaticLoginEnable=True
AutomaticLogin=root
vi /etc/profile
export DISPLAY=:0.0