我最近买了一台新的笔记本电脑,并在上面安装了openSUSE Tumble杂草。笔记本电脑有一个英特尔核心i5处理器与集成图形和NVIDIA 3050 Ti。我的目标是将Xorg配置为在集成GPU上运行,并在不需要时禁用NVIDIA GPU (以节省电力,因为它消耗6瓦左右)。为此,我使用prime-select通过运行命令sudo prime-select offload来设置卸载模式。
然而,我遇到了一个问题,Xorg仍然运行在NVIDIA GPU上。当我检查nvidia-smi的输出时,我收到了以下信息:
Sun May 28 10:00:02 2023
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.116.04 Driver Version: 525.116.04 CUDA Version: 12.0 |
|-------------------------------+----------------------+----------------------+
| 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 6W / 30W | 5MiB / 4096MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 3246 G /usr/bin/Xorg.bin 4MiB |
+-----------------------------------------------------------------------------+此外,当我检查任务管理器时,它指出Xorg不应该在NVIDIA GPU上运行。我检查了位于xorg.conf上的/etc/X11/xorg.conf文件,它包含以下配置:
Section "ServerLayout"
Identifier "layout"
Screen "intel"
Option "AllowNVIDIAGPUScreens"
EndSection
Section "Device"
Identifier "intel"
Driver "modesetting"
BusID "PCI:0:2:0"
EndSection
Section "Screen"
Identifier "intel"
Device "intel"
EndSection
Section "ServerFlags"
Option "AutoAddGPU" "false"
EndSection
# needed for NVIDIA PRIME Render Offload
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
EndSection如果没有必要的信息,我很抱歉。如果你需要更多的细节,请告诉我。这是我第一次使用显卡,所以任何的指导都将不胜感激。
发布于 2023-05-31 07:45:21
哦,耶西斯。我解决了!我只是将GPUDevice "intel"添加到xorg.conf文件中!现在没有进程运行在NVIDIA GPU上!它不会进入低功率状态,但我想我会解决的。
我在日志中看到它使用nvidia作为GPUDevice。
编辑:多亏了本教程:https://wiki.archlinux.org/title/PRIME,我终于让PRIME卸载工作了
https://unix.stackexchange.com/questions/747400
复制相似问题