Score:1

external monitor extremely slow with Ubuntu 20.04

cn flag

I am using Ubuntu 20.04 on my laptop attached with a Dell monitor. My Nvidia driver version is 465.27 with a GeForce 3070 card. My external monitor becomes extremely slow when I close the laptop lid.

I read several posts:

Ubuntu 20.04, computer keeps shutting down when I close the lid, I've already checked logind.conf, settings are set to suspend

20.04 on external monitor (2560x1600) extremely slow

Keep Ubuntu Server running on a laptop with the lid closed?

Ubuntu graphics performance slow with external monitor AND notebook lid closed

And, I tried all the solutions but still not working. When I close the laptop lid, the external monitor still becomes very slow.

$ 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 |
+---------------------------------------------+

Below is my /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

Thanks in advance.

galexite avatar
pk flag
Do you have the integrated GPU (i.e. your Intel Evo, HD or AMD Ryzen graphics) disabled? Some ports on laptops are connected directly to the integrated GPU to facilitate seemless switching from the dedicated graphics chip to save power.
Score:0
cn flag

solved it by setting IgnoreLid=true in /etc/UPower/UPower.conf, thanks!

Reference: How can I tell Ubuntu to do nothing when I close my laptop lid?

Compholio avatar
jp flag
Thank you so much for this, I found a lot of resources saying to edit `/etc/systemd/logind.conf` and that did not fix my problem - editing `/etc/UPower/UPower.conf` is the only thing that has worked.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.