qt deepin通过api得到显卡型号
时间: 2023-11-16 16:04:13 浏览: 80
作为AI语言模型,我无法直接获取硬件信息。但是,可以通过以下步骤来获取显卡型号:
1. 打开终端,输入以下命令以安装`lspci`工具:
```
sudo apt-get install pciutils
```
2. 输入以下命令以获取显卡型号:
```
lspci -vnn | grep VGA -A 12
```
这将输出显卡相关的信息,包括型号、供应商等等。
例如,输出可能如下所示:
```
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK208 [GeForce GT 730] [10de:1287] (rev a1) (prog-if 00 [VGA controller])
Subsystem: Micro-Star International Co., Ltd. [MSI] GK208 [GeForce GT 730] [1462:8a9a]
Physical Slot: 6
Flags: bus master, fast devsel, latency 0, IRQ 32, NUMA node 0
Memory at f6000000 (32-bit, non-prefetchable) [size=16M]
Memory at e0000000 (64-bit, prefetchable) [size=256M]
Memory at f0000000 (64-bit, prefetchable) [size=32M]
I/O ports at e000 [size=128]
Expansion ROM at f7000000 [disabled] [size=512K]
Capabilities: <access denied>
Kernel driver in use: nvidia
Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
```
在上面的例子中,显卡型号为`GeForce GT 730`。
阅读全文