External monitor turns off for short period of times / until moving mouse

Bug #1822854 reported by Julian Andres Klode
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Triaged
Low
Unassigned

Bug Description

In disco; I have this issue where my external monitor (a ThinkVision P24h-10) connected to my ThinkPad T480s turns off for short times while actively working on the system. I noticed that if I don't move my mouse at all while it's off, it stays off.

The T480s is connected to the monitor via USB-C; the monitor provides DP, USB, and Power over that connection. When the display turns off, USB devices continue working.

I have attached /sys/debug/dri/0 output from when the monitor was off (a) vs on (b).

Other related bits:
* This also happens on HDMI, but much less often
* There are no log messages when the display turns on/off in the journal.

Revision history for this message
Julian Andres Klode (juliank) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected disco
description: updated
Revision history for this message
Julian Andres Klode (juliank) wrote : CRDA.txt

apport information

Revision history for this message
Julian Andres Klode (juliank) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Julian Andres Klode (juliank) wrote : IwConfig.txt

apport information

Revision history for this message
Julian Andres Klode (juliank) wrote : Lspci.txt

apport information

Revision history for this message
Julian Andres Klode (juliank) wrote : Lsusb.txt

apport information

Revision history for this message
Julian Andres Klode (juliank) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Julian Andres Klode (juliank) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Julian Andres Klode (juliank) wrote : ProcEnviron.txt

apport information

Revision history for this message
Julian Andres Klode (juliank) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Julian Andres Klode (juliank) wrote : ProcModules.txt

apport information

Revision history for this message
Julian Andres Klode (juliank) wrote : PulseList.txt

apport information

Revision history for this message
Julian Andres Klode (juliank) wrote : RfKill.txt

apport information

Revision history for this message
Julian Andres Klode (juliank) wrote : UdevDb.txt

apport information

Revision history for this message
Julian Andres Klode (juliank) wrote : WifiSyslog.txt

apport information

description: updated
Revision history for this message
Julian Andres Klode (juliank) wrote :
Revision history for this message
Julian Andres Klode (juliank) wrote :
Revision history for this message
Julian Andres Klode (juliank) wrote :

Interesting (?) difference between the i915 debug files:

--- display off
+++ display on
- Active context: [0] user_handle 0 hw_id 0, prio 0, ban score 0 (unbannable) guilty 0 active 0
+ ELSP[0]: pid 12429, ban score 0, seqno 5:010cd84c, prio 0, emitted 0ms, start 00e21000, head 00003c50, tail 00003cd8
+ Active context: Xorg[12429] user_handle 1 hw_id 5, prio 0, ban score 0 guilty 0 active 0

Revision history for this message
Julian Andres Klode (juliank) wrote :
Revision history for this message
Julian Andres Klode (juliank) wrote :

Also, FYI: There are no log messages when the display turns on/off in the journal.

description: updated
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
Daniel van Vugt (vanvugt) wrote :

I don't think this is going to be a gnome-shell or mutter bug. But in case it is, please test some other desktop environments to verify.

Changed in gnome-shell (Ubuntu):
status: New → Incomplete
Revision history for this message
Julian Andres Klode (juliank) wrote :

It might be a kernel bug related to get/iommu which I had enabled to test with accelerated graphics in VMs. I think that the Kabylake are not really supported for that yet. I turned those off now.

Switching desktop environments would be hard. I can't work in a different de! My assumption was that maybe it was gnome powering down the monitor because it wrongly thought I was inactive or something.

IIRC, the same problem occurs in Wayland sessions, so it's at least not an X bug.

Revision history for this message
Hui Wang (hui.wang) wrote :

@Julian,

Could you please tell the detailed steps to reproduce this problem? It looks like "you enabled the test with accelerated graphics in VMs", does it introduce this issue?

Revision history for this message
Julian Andres Klode (juliank) wrote :

I had added i915.enable_gvt=1 intel_iommu=on on the kernel commandline to enable Intel GVT-g, and connected an external monitor (with USB devices attached, and supplying power to the laptop) via USB C.

It _seems_ that dropping the options makes it stable again, unless there were some more unrelated changes during the reboot, or I just did not hit it yet (though that seems unlikely).

summary: External monitor turns off for short period of times / until moving
- mouse
+ mouse when using kernel options i915.enable_gvt=1 intel_iommu=on
no longer affects: gnome-shell (Ubuntu)
Revision history for this message
Julian Andres Klode (juliank) wrote : Re: External monitor turns off for short period of times / until moving mouse when using kernel options i915.enable_gvt=1 intel_iommu=on

Marking this as Triaged / Low, as it seems to be only caused by these unusual options.

Changed in linux (Ubuntu):
importance: Undecided → Low
status: Confirmed → Triaged
Revision history for this message
Julian Andres Klode (juliank) wrote :

Just happened without those options. But I'm not sure if it's a kernel bug, or a hardware/cable bug. Gotta investigate more I guess. It certainly happened less, the last two days have been issue free, but maybe I unplugged more and the cable got cleaner or something.

summary: External monitor turns off for short period of times / until moving
- mouse when using kernel options i915.enable_gvt=1 intel_iommu=on
+ mouse
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.