猜猜我的笔记本电脑不使用我的 nvidia gpu

猜猜我的笔记本电脑不使用我的 nvidia gpu

嗯,我的电脑硬件还不错。但它在过去已经有7年的历史了,受到了很大的损坏。当它开始在 Windows 上崩溃并且冻结时间比平时更多时,我认为是时候使用 Linux 了。首先是 Ubuntu,然后是 pearOS、elementaryOS、Pardus。所有这些都更好,但并不像我预期的那样。然后我意识到损害并不是唯一的问题。因此,在尝试使用 .run 安装程序安装 Nvidia 驱动程序后,我开始寻找这个问题的答案:


  • 我怎么知道我的 GPU 是否被默认使用?

  • 如果它没有被用作默认值,我该如何将其设置为默认值?

  • 我怎样才能在我想要的时候只在程序中使用这个GPU(比如用GPU玩游戏,当CPU操作其他所有事情时)?


并且有一些信息:

我的笔记本电脑型号 => Lenovo Yoga 500-80r5

lspci输出:

00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers (rev 08)
00:02.0 VGA compatible controller: Intel Corporation Skylake GT2 [HD Graphics 520] (rev 07)
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
00:15.0 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #0 (rev 21)
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21)
00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21)
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #1 (rev f1)
00:1c.4 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #5 (rev f1)
00:1c.5 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #6 (rev f1)
00:1f.0 ISA bridge: Intel Corporation Sunrise Point-LP LPC Controller (rev 21)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
01:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 940M] (rev a2)
02:00.0 Network controller: Intel Corporation Dual Band Wireless-AC 3165 Plus Bluetooth (rev 99)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

LSPCI | grep VGA输出:

00:02.0 VGA compatible controller: Intel Corporation Skylake GT2 [HD Graphics 520] (rev 07)

英伟达-SMI输出:

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 510.60.02    Driver Version: 510.60.02    CUDA Version: 11.6     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   42C    P8    N/A /  N/A |      3MiB /  2048MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A       947      G   /usr/lib/xorg/Xorg                  2MiB |
+-----------------------------------------------------------------------------+

答案1

我怎么知道我的 GPU 是否被默认使用?

看着/var/log/Xorg.*.log

如果它没有被用作默认值,我该如何将其设置为默认值?

安装正确的驱动程序组合,和/或编写xorg.conf.

我怎样才能在我想要的时候只在程序中使用这个GPU(比如用GPU玩游戏,当CPU操作其他所有事情时)?

极其困难。

相关内容