openSUSE Tumbleweed安装NVIDIA显卡驱动(NVIDIA SUSE Prime)

安装过程

  1. 添加 Nvdia 软件源

Leap

zypper addrepo --refresh 'https://download.nvidia.com/opensuse/leap/$releasever' NVIDIA

Tumbleweed

zypper addrepo --refresh https://download.nvidia.com/opensuse/tumbleweed NVIDIA
  1. 安装驱动
zypper in x11-video-nvidiaG05
  1. 安装SUSE Prime 显卡切换工具
  • 首先

删除 /etc/X11/xorg.conf 文件。然后查看所有位于 /etc/X11/xorg.conf.d 下的文件,确保其中不包含任何关于 ServerLayout、Device 和 Screen 的配置文件。

  • 安装 suse-prime:
zypper install suse-prime

使用

要在intel显卡和NVIDIA显卡之间转换,可以运行:

sudo prime-select nvidia

或者

sudo prime-select intel

然后注销并重新登录以应用显卡变更

验证

要确证你使用的是哪一张显卡,你可以通过命令确认:

glxinfo | grep -i render | grep -Ei "intel|nvidia"

版权声明:本文为weixin_44214243原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。