无法控制 NVIDIA 风扇速度

无法控制 NVIDIA 风扇速度

NVIDIA X 服务器设置

在 NVIDIA X 服务器设置中显示:Failed to set new Fan Speed 从终端我尝试了以下命令:

nvidia-settings -a GPUFanControlState=1 -a GPUTargetFanSpeed=60

这表明错误

  Attribute 'GPUFanControlState' (GTX1660:1[gpu:0]) assigned value 1.


ERROR: Error assigning value 60 to attribute 'GPUTargetFanSpeed' (GTX1660:1[fan:0]) as specified in
       assignment 'GPUTargetFanSpeed=60' (Unknown Error).


ERROR: Error assigning value 60 to attribute 'GPUTargetFanSpeed' (GTX1660:1[fan:1]) as specified in
       assignment 'GPUTargetFanSpeed=60' (Unknown Error).

nvidia-smi细节:

Wed Jun  1 11:49:20 2022       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 510.73.05    Driver Version: 510.73.05    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  On |                  N/A |
| 26%   37C    P8    15W / 125W |    360MiB /  6144MiB |      1%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1100      G   /usr/lib/xorg/Xorg                 35MiB |
|    0   N/A  N/A      1616      G   /usr/lib/xorg/Xorg                116MiB |
|    0   N/A  N/A      1741      G   /usr/bin/gnome-shell               38MiB |
|    0   N/A  N/A      2096      G   /usr/lib/firefox/firefox          159MiB |
|    0   N/A  N/A      3355      G   /usr/bin/nvidia-settings            0MiB |
+-----------------------------------------------------------------------------+

答案1

通过编辑文件解决了这个问题:/./etc/X11/Xwrapper.config 步骤:

  1. cd /./etc/X11/
  2. sudo -s[因为你需要 root 权限]
  3. gedit Xwrapper.config &
  4. needs_root_rights=yes在 之前添加该行allowed_users=console
  5. 重新启动计算机

因此Xwrapper.config文件将是:

# Xwrapper.config (Debian X Window System server wrapper configuration file)
#
# This file was generated by the post-installation script of the
# xserver-xorg-legacy package using values from the debconf database.
#
# See the Xwrapper.config(5) manual page for more information.
#
# This file is automatically updated on upgrades of the xserver-xorg-legacy
# package *only* if it has not been modified since the last upgrade of that
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command as root:
#   dpkg-reconfigure xserver-xorg-legacy
needs_root_rights=yes
allowed_users=console

相关内容