Ubuntu 不使用独立 GPU 作为主要显卡

Ubuntu 不使用独立 GPU 作为主要显卡

我的笔记本电脑无法通过独立 GPU 运行图形,只能通过集成 GPU 运行图形。我已经尝试了一些方法来纠正这个问题,但到目前为止还没有成功。我运行的是 Ubuntu 18.04.02LT。

眼镜:

我拥有一台 DELL 15 XPS9570,它配备了带集成显卡的 Intel i7-8750H 和 GTX1050Ti Mobile。

我尝试过的东西:

$ sudo lshw -C display
*-display                 
       description: 3D controller
       product: GP107M [GeForce GTX 1050 Ti Mobile]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: irq:146 memory:ec000000-ecffffff memory:c0000000-cfffffff memory:d0000000-d1ffffff ioport:3000(size=128) memory:ed000000-ed07ffff
  *-display
       description: VGA compatible controller
       product: Intel Corporation
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0
       resources: irq:143 memory:eb000000-ebffffff memory:80000000-8fffffff ioport:4000(size=64) memory:c0000-dffff

我已使用以下方法清除并重新安装了最新的驱动程序:

$ sudo apt purge 
$ sudo apt install nvidia-driver-430

检查我所拥有的驱动程序版本是否是实际安装的版本...

$ nvidia-smi
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 430.14       Driver Version: 430.14       CUDA Version: 10.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 105...  Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   37C    P8    N/A /  N/A |      0MiB /  4042MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

然后我读到了这个 prime 工具,我可以用它来切换我的计算机使用的图形处理器,称为 prime。

我尝试安装 PRIME - 一个工具,显然您可以使用它从 GPU 切换到集成显卡,反之亦然......

在安装 Prime 之前,我清除了 bumblebee,它显然不能与 Prime 一起工作:

$sudo apt-get purge bumblebee

但 ...

软件包“bumblebee”未安装,因此未删除所以我安装了 Prime,并安装了 Prime 的当前版本:

$ sudo apt install nvidia-prime
$ dpkg -l nvidia-prime

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name               Version        Architecture   Description
+++-==================-==============-==============-==========================================
ii  nvidia-prime       0.8.8.2        all            Tools to enable NVIDIA's Prime

我还尝试安装 prime-indicator-plus 工具:

$ sudo add-apt-repository ppa:nilarimogard/webupd8
$ sudo apt update
$ sudo apt install prime-indicator-plus
$ sudo reboot 

主要指标加东西不起作用。 nvidia 工具没有出现在我的栏中...但无论如何。

我可以:

$ sudo prime-select nvidia
Info: selecting the nvidia profile

项目清单

但如果我输入破折号“关于”,然后转到“详细信息”,它会显示显卡 Intel UHD 显卡 630。

然后我读到我可以在 Nvidia X 服务器窗口上手动完成此操作。好吧,我打开 Nvidia X-Server。

当我打开 Nvidia X-Server 时,这个东西就会出现。或者更好的是,它不会出现......

X-server 很讨厌

x-服务器看起来有问题......

事实上当我这样做时:

$sudo apt-get install --reinstall xserver-xorg

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 xserver-xorg : Depends: xserver-xorg-core (>= 2:1.17.2-2)
E: Unable to correct problems, you have held broken packages.

现在我被困住了。我不知道如何解决这个问题。或者即使这个 X 服务器的事情与我的问题有任何关联。

PS:在我的另一个带有 Windows 独立 GPU 的硬盘上,它在最大设置下以几乎 70 fps 的速度运行 Dotes 1440p。很美丽...

相关内容