全程root
用户运行, 本次的闭源驱动最新版是430
- 1、安装闭源驱动
$ pacman -S nvidia nvidia-utils nvidia-settings
- 2、查看n卡的BusID
$ lspci | egrep 'VGA|3D'
出现如下格式:
----------------------------------------------------------------------
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Desktop)
01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Ti Mobile] (rev a1)
- 3、自动生成配置文件
$ nvidia-xconfig
- 4、启动脚本配置
LightDM
$ nano /etc/lightdm/display_setup.sh
----------------------------------------------------------------------
#!/bin/sh
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
----------------------------------------------------------------------
$ chmod +x /etc/lightdm/display_setup.sh
$ nano /etc/lightdm/lightdm.conf
----------------