It kind if sounds like the system is in partial sleep mode, or trying to get there. And that would make sense because when the bug occurs the lid is closed and you've disconnected the only other screen. So you're kind of asking for screen hotplugging (or switching back to it on the KVM) to wake the system. When you put it that way it's kind of not a bug, if the theory is right...
Can you please run 'gnome-tweaks' and check that: Gnome Tweaks > Power > Suspend when laptop lid is closed = OFF ? ** Package changed: xorg (Ubuntu) => ubuntu ** Changed in: ubuntu Status: New => Incomplete -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xorg in Ubuntu. https://bugs.launchpad.net/bugs/1873510 Title: Blank screen when hotplugging monitors connected through DisplayPort dock Status in Ubuntu: Incomplete Bug description: Hi, I run Ubuntu 18.04 on a Dell Precision 7540. Most of the time I use this through a Dell WD19DC dock. The dock is connected to a Trendnet TK-240DP KVM Switch. If I have the laptop clamshell closed, like I normally do, and switch my KVM to the other computer, and then switch back, my monitors stay enter power saving mode. Most of the time, I am able to recover the screens by pressing Control-Alt-F3, waiting a few seconds, and then pressing Control-Alt-F2. The problem does not happen if the clamshell is left open. Part of the problem is that this is a cheaper KVM, and from the laptop's perspective the screens are disconnected when the computer is switched. Changing a few small things makes the problem not occur: * Opening the clamshell when switching the KVM. Interestingly, if the clamshell is open during either the switch away OR the switch back, the screen recovers. * Manually removing the displays one at a time does not reliably trigger the problem. Though I have witnessed the problem occur once or twice when removing a single display. I am attaching three nvidia bug report logs: 1. nvidia-bug-report-before.log.gz is after a clean boot when I have not used the KVM. 2. nvidia-bug-report-blank.log.gz is after switching the KVM to the other computer and back. During this time, both screens are black. The log was taken over ssh. 3. nvidia-bug-report-workaround.log.gz is after I have recovered the screen after using Ctrl-Alt-F3 followed by Ctrl-Alt-F2. This problem happens when prime-select is set to intel or nvidia. These logs are when it was set to intel. Any advice would be greatly appreciated. ProblemType: Bug DistroRelease: Ubuntu 18.04 Package: xorg 1:7.7+19ubuntu7.1 Uname: Linux 5.5.0-050500rc6-generic x86_64 .tmp.unity_support_test.0: ApportVersion: 2.20.9-0ubuntu7.14 Architecture: amd64 BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log' CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins' CompositorRunning: None CurrentDesktop: Unity:Unity7:ubuntu Date: Fri Apr 17 13:57:43 2020 DistUpgraded: Fresh install DistroCodename: bionic DistroVariant: ubuntu DkmsStatus: nvidia, 440.82, 4.15.0-1079-oem, x86_64: installed nvidia, 440.82, 5.0.0-1047-oem-osp1, x86_64: installed nvidia, 440.82, 5.5.0-050500rc6-generic, x86_64: installed ExtraDebuggingInterest: Yes, including running git bisection searches GraphicsCard: Intel Corporation Device [8086:3e9b] (rev 02) (prog-if 00 [VGA controller]) Subsystem: Dell Device [1028:0926] NVIDIA Corporation Device [10de:1f36] (rev a1) (prog-if 00 [VGA controller]) Subsystem: Dell Device [1028:0926] InstallationDate: Installed on 2020-01-03 (104 days ago) InstallationMedia: Ubuntu 18.04.3 LTS "Bionic Beaver" - Release amd64 (20190805) MachineType: Dell Inc. Precision 7540 ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-5.5.0-050500rc6-generic root=UUID=7f01cb01-e7df-4259-9d7a-ae37a19f363b ro quiet splash dis_ucode_ldr vt.handoff=1 SourcePackage: xorg Symptom: display Title: Xorg freeze UpgradeStatus: No upgrade log present (probably fresh install) dmi.bios.date: 03/12/2020 dmi.bios.vendor: Dell Inc. dmi.bios.version: 1.8.2 dmi.board.name: 0499T7 dmi.board.vendor: Dell Inc. dmi.board.version: A00 dmi.chassis.type: 10 dmi.chassis.vendor: Dell Inc. dmi.modalias: dmi:bvnDellInc.:bvr1.8.2:bd03/12/2020:svnDellInc.:pnPrecision7540:pvr:rvnDellInc.:rn0499T7:rvrA00:cvnDellInc.:ct10:cvr: dmi.product.family: Precision dmi.product.name: Precision 7540 dmi.product.sku: 0926 dmi.sys.vendor: Dell Inc. version.compiz: compiz 1:0.9.13.1+18.04.20180302-0ubuntu1 version.libdrm2: libdrm2 2.4.99-1ubuntu1~18.04.2 version.libgl1-mesa-dri: libgl1-mesa-dri 19.2.8-0ubuntu0~18.04.3 version.libgl1-mesa-glx: libgl1-mesa-glx 19.2.8-0ubuntu0~18.04.3 version.xserver-xorg-core: xserver-xorg-core N/A version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A version.xserver-xorg-video-ati: xserver-xorg-video-ati N/A version.xserver-xorg-video-intel: xserver-xorg-video-intel N/A version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau N/A To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+bug/1873510/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp