I have a really irritating issue where my external monitors randomly goes black for a few seconds and then returns. This happens every other minute, but sometimes i can sit for 30 minutes before it happens again. It affects both my external monitors, usually the one i am currently working on.

This is my setup:

Samsung 27" + Acer 24" monitors -> TESmart Dual Monitor KVM via HDMI -> Thinkpad Pro Dock via HDMI/DisplayPort -> Lenovo Thinkpad T440p Ubuntu 20.04 LTS.

The KVM is also connected to my Windows 10 desktop, but i have never experienced any issues on that, which is why I'm thinking it may be an Ubuntu issue.

What I've tried so far without results:

  1. Changing refresh rates on both screens to 60, 59,94 and 50hz

  2. Made sure all cables are properly connected

  3. Updated to latest firmware on Thinkpad Pro Dock

  4. Switched between XORG and Wayland, and changed refresh rates on both

  5. Enabled / disabled fractional scaling

  6. Updated the system with apt-get update/upgrade

Here is a paste of graphics troubleshooting from :

Thank you very much!

edit:

The occurrence rate of this issue seems to be correlated to the battery percentage on my laptop. Maybe this can point somebody to a solution?

3

3 Answers

Try to set no_turbo to 0.

% cat /sys/devices/system/cpu/intel_pstate/no_turbo 

to see if cpu's turbo is enabled (enabled: 0, disabled:1). To disable it type

echo "1" | sudo tee /sys/devices/system/cpu/intel_pstate/no_turbo 

It worked for me, but I don't know if it is a permanent change, since I changed it just in the current session. Hope it works for you too.

UPDATE: No more random black screen on second monitor (HDMI) since then!

Deleting monitors.xml fixed that issue for me. Please create a backup before deleting the file and then try:

rm ~/.config/monitors.xml 

Oddly enough logging off after that wasn't enough for me, it required a reboot. I tried the procedure twice to confirm.

A few more details: I had this issue after updating from Ubuntu 20.04 to Ubuntu 22.04. The monitor went black every few seconds, especially when I switched between windows, scrolled down in firefox or watched a video with mpv player. After creating a new user I noticed the issue was fixed, which led me to play around with ~/.local and ~/.config.

2

This discussion on github contained a workaround that worked for me

As for a fix, there is a suggested fix in there but I don't think it works.

Either way, the workaround is to set your output audio device to something other than your internal speaker, either by plugging in headphones/headset to the audio jack, or selecting HDMI/Displayport as the output audio device.

Strangely enough the problem still occurs for me when opening the pulseaudio volume controls, but it seems that the random occurrences while web browsing don't happen anymore.

The cause of the problem seems related to the Intel audio device, and it's affecting the display only because the Intel audio device is interacting with HDMI in some way. When it happens coincides with a video being on a webpage, which occur regularly (ie, even in ads sometimes).

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy