我正在使用Ubuntu20.04在我的笔记本电脑与戴尔显示器。我的Nvidia驱动程序版本是465.27与GeForce 3070卡。当我关闭笔记本电脑的盖子时,我的外部显示器变得非常慢。
我读了几篇文章:
Ubuntu20.04,当我关闭盖子时,计算机一直在关闭,我已经检查了logind.conf,设置为挂起
而且,我尝试了所有的解决方案,但仍然不起作用。当我关闭笔记本电脑的盖子,外部显示器仍然变得非常缓慢。
$ nvidia-smi
Fri Oct 8 13:03:13 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 465.27 Driver Version: 465.27 CUDA Version: 11.3 |
|-------------------------------+----------------------+----------------------+
| 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 |
| N/A 51C P3 24W / N/A | 105MiB / 7982MiB | 17% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1116 G /usr/lib/xorg/Xorg 34MiB |
| 0 N/A N/A 2005 G /usr/lib/xorg/Xorg 69MiB |
+-----------------------------------------------------------------------------+
下面是我的/etc/systemd/logind.conf
[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
HandleLidSwitch=ignore
#HandleLidSwitchExternalPower=suspend
HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
LidSwitchIgnoreInhibited=no
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192
提前谢谢。
发布于 2021-12-25 04:32:47
通过在/etc/UPower/UPower.conf中设置IgnoreLid=true来解决这个问题,谢谢!
https://askubuntu.com/questions/1368177
复制相似问题