[i915] external monitor goes black for several seconds at a time, randomly

Bug #1929209 reported by Christopher Barrington-Leigh
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Medium
Unassigned
mutter (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

At times it is completely debilitating; at other times it does not happen for hours.
The physical connections are clean and solid.

 I guess the attachments will show that I'm using Intel graphics hardware. The monitor is a very popular Samsung one.

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: xorg 1:7.7+19ubuntu14
ProcVersionSignature: Ubuntu 5.4.0-73.82-generic 5.4.106
Uname: Linux 5.4.0-73-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.17
Architecture: amd64
BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
CasperMD5CheckResult: skip
CompositorRunning: None
CurrentDesktop: ubuntu:GNOME
Date: Thu May 20 16:56:04 2021
DistUpgraded: 2020-06-01 15:46:34,953 ERROR got error from PostInstallScript ./xorg_fix_proprietary.py (g-exec-error-quark: Failed to execute child process “./xorg_fix_proprietary.py” (No such file or directory) (8))
DistroCodename: focal
DistroVariant: ubuntu
DkmsStatus: virtualbox, 6.1.16, 5.4.0-73-generic, x86_64: installed
EcryptfsInUse: Yes
ExtraDebuggingInterest: Yes, if not too technical
GraphicsCard:
 Intel Corporation HD Graphics 5500 [8086:1616] (rev 09) (prog-if 00 [VGA controller])
   Subsystem: Lenovo HD Graphics 5500 [17aa:5036]
InstallationDate: Installed on 2019-01-24 (847 days ago)
InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64 (20181017.3)
MachineType: LENOVO 20BXCTO1WW
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.4.0-73-generic root=UUID=a6081f39-700f-4698-bda4-464e53d9d229 ro quiet splash vt.handoff=7
SourcePackage: xorg
Symptom: display
UpgradeStatus: Upgraded to focal on 2020-06-01 (353 days ago)
dmi.bios.date: 09/13/2017
dmi.bios.vendor: LENOVO
dmi.bios.version: JBET66WW (1.30 )
dmi.board.asset.tag: Not Available
dmi.board.name: 20BXCTO1WW
dmi.board.vendor: LENOVO
dmi.board.version: SDK0J40697 WIN
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: None
dmi.modalias: dmi:bvnLENOVO:bvrJBET66WW(1.30):bd09/13/2017:svnLENOVO:pn20BXCTO1WW:pvrThinkPadT450s:rvnLENOVO:rn20BXCTO1WW:rvrSDK0J40697WIN:cvnLENOVO:ct10:cvrNone:
dmi.product.family: ThinkPad T450s
dmi.product.name: 20BXCTO1WW
dmi.product.sku: LENOVO_MT_20BX_BU_Think_FM_ThinkPad T450s
dmi.product.version: ThinkPad T450s
dmi.sys.vendor: LENOVO
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.102-1ubuntu1~20.04.1
version.libgl1-mesa-dri: libgl1-mesa-dri 20.2.6-0ubuntu0.20.04.1
version.libgl1-mesa-glx: libgl1-mesa-glx 20.2.6-0ubuntu0.20.04.1
version.xserver-xorg-core: xserver-xorg-core 2:1.20.9-2ubuntu1.2~20.04.2
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:19.1.0-1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20200226-1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.16-1

Revision history for this message
Christopher Barrington-Leigh (cpbl) wrote :
description: updated
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks for the bug report. Issues like this are almost always caused by a bad cable, bad connection, or by using intermediate adapters. So ideally please try a new cable.

Also, next time the problem happens please then run:

  journalctl -b0 > journal.txt

and attach the resulting text file here.

affects: xorg (Ubuntu) → linux (Ubuntu)
Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Christopher Barrington-Leigh (cpbl) wrote :

(Recently,) it only happens when I make something full-screen on the external monitor. I do not think this is a hardware (which is brand new) problem.
Just now I made a browser full screen and it immediately strted happening every several seconds for a couple of seconds at a time. I've attached the journal

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks for the log. There doesn't seem to be anything relevant there, at least not for the past few days. So it seems like the kernel isn't aware of the problem.

Indeed this looks like a bad cable or bad connection somewhere. Especially if fullscreening a window triggered the problem -- that suggests there's a bandwidth limit being exceeded, caused by a hardware problem. Most likely the cable or one of its connections, but there's a slim chance the monitor itself or even the laptop is faulty and unable to maintain a stable link at 4K 60Hz.

P.S. The monitor is not "a very popular Samsung one". It appears to be an Acer B326HK.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Ah, it appears you've tried both an Acer B326HK (Xrandr.txt) and a Samsung U32J59x (XorgLog.txt). If you experience similar problems with both then it suggests the problem is not the monitor but the cable, connectors, adapters (if any) or the laptop.

description: updated
Revision history for this message
Christopher Barrington-Leigh (cpbl) wrote :

Thank you so much, Daniel!
The Samsung is new. I'll try some swapping to isolate any hardware problem.

Revision history for this message
Christopher Barrington-Leigh (cpbl) wrote (last edit ):

You mentioned "intermediate adapters". I'm using a Lenovo Ultradock between my laptop and the monitor.
 This causes no trouble on my Acer B326HK, which is just as high-res, but the new Samsung monitor continues to do the blackout thing. It's not strictly reproducible so far (fullscreening does not always cause any problem, and is not required to cause the problem).

Happily, I have two ultradocks. It happens with both! And the brand new HDMI cable looks fine.

I cannot try without the ultradock because my laptop does not have an HDMI port.

No one else has reported this problem, though if it's a hardware fault with the monitor (my interpretation) then it might be rare. I have recently upgraded to 21.04 and Wayland.

I am wondering:
Should I buy an adapter from HDMI to VGA, if such a thing exist?

You would be generous to give this any more attention. Thank you!

Changed in linux (Ubuntu):
status: Incomplete → New
summary: - external monitor goes black for several seconds at a time, randomly
+ [i915] external monitor goes black for several seconds at a time,
+ randomly
tags: added: i915 multimonitor
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Christopher Barrington-Leigh (cpbl) wrote :

No one else has joined this bug, but it has continued to make life with my expensive monitor extremely annoying.

And despite suggestions above, I am certain this is not a hardware problem.

Here is new proof:
 yesterday, I initiated an upgrade (do-release-upgrade) to 22.04 from 21.10 from the command line.
By chance, I tried full-screening a video while the upgrade was in progress. Amazingly, it worked flawlessly the entire duration of the upgrade! ! !
 As soon as it was done and rebooted, I tried playing that video again and it did the black-screen / device searching every 3 seconds or so, as it always has.

So, how can I reproduce the thing that the upgrade did?! It said something at the beginning about disabling screen lock or something like that, but I have tried turning off all such things in my settings already.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I ran into the same bug on the weekend as I tried to upgrade my monitor. In my case it was that Intel GPUs could not sustain a stable signal to a high-end monitor. Even though my setup was within range of HBR3, I could only maintain a stable DisplayPort HBR3 signal plugged it into an Nvidia card, not with Intel. With Intel the monitor would go black during large or rapid screen changes.

Three possible workarounds come to mind:

  * Use DisplayPort or USB-C if available. They're more likely to achieve high bandwidth than HDMI, typically.

  * Use a lower refresh rate (worked in my case).

  * Ask developers to implement the "max bpc" connector property exposed by the i915 kernel driver.

That last one is already available in Xorg via:

  xrandr --output NAME --set "max bpc" 8

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

See also bug 1975872

tags: added: bandwidth
Changed in linux (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Christopher Barrington-Leigh (cpbl) wrote :

Wow, I think this line (comment #10 from @vanvugt)

xrandr --output NAME --set "max bpc" 8

works for me!

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

If it's still unreliable then try 6 instead of 8, but 8 should look better.

Changed in mutter (Ubuntu):
assignee: nobody → Daniel van Vugt (vanvugt)
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Jacob Nollette (jacobnollette) wrote :

Any other fixes? xrandr isn't working, with Wayland; Running 22.10 on my machine, and this is problematic with 4k or ultrawide displays especially

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I feel your pain, having suffered the same issue just a few seconds ago. Although there's a chance we're seeing the same symptoms with different root causes so please be sure to open your own bug by running:

  ubuntu-bug linux

Start by testing different display cables/connection types.

Changed in mutter (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

"Fix released" for mutter 43.0 only because a workaround was added, which you can configure in ~/.config/monitors.xml as

      <monitor>
        ...
        <maxbpc>8</maxbpc>
      </monitor>

But it may not help everyone. It didn't solve my issues. And so the bug is still open for the Linux kernel.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

My issue with Intel 12th gen regularly losing display signal *appears* to be fixed by using kernel 6.1. Fingers crossed it stays fixed.

Revision history for this message
Dipanjan (chakraborty-dipanjan) wrote :

Any fixes for this yet? I have started to experience this in the last few days for Ubuntu 20.04 LTS. The only change was that the laptop battery was replaced. However, this problem does not occur on my dual-boot Windows 10, so this is probably not a hardware issue.

Revision history for this message
Alex (alex85) wrote :

Same issue with external monitor in Ubuntu 20.04 LTS, Fedora 39 (KDE plasma) and I observed it with many other distributions (e.g. Lubuntu 23.10). With exactly same setup, Windows 10 Pro on my lenovo T470s with external monitor does not give any issues, so, not a HW problem. Tried xset -dpms, sxet s off did not really solved the problem.. better say this WA did not help at all.

Revision history for this message
Daniel van Vugt (vanvugt) wrote (last edit ):

My previous comments one year ago were probably premature. And on top of that I'm now using a different primary desktop (also Intel 12th gen, now kernel 6.2) that periodically has a similar bug. My next plan is to try replacing the USB-C cable with an expensive Apple Thunderbolt cable.

Changed in mutter (Ubuntu):
status: Fix Released → Confirmed
tags: added: jammy
Changed in mutter (Ubuntu):
assignee: Daniel van Vugt (vanvugt) → nobody
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

It's been almost a week since I switched to an Apple Thunderbolt 4 Pro cable and no signal loss so far.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.