Wayland session: Internal display is black after sleep

Bug #1971149 reported by Zingam
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Incomplete
Undecided
Unassigned
mutter (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

I have a laptop with Intel 630 and NVIDIA 1050 Ti, I have connected an external display via HDMI. I have set this external display as primary. I also chose a Wayland session. My Ubuntu 22.04 has all the latest updates as of today.

When my laptop sleeps after I re-login the internal display (connected to Intel 630 AFAIK) is black. It appears enabled in the settings and if I change it to be the primary it lights up.

I don't remember seeing this in an X.org session.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: xorg 1:7.7+23ubuntu2
ProcVersionSignature: Ubuntu 5.15.0-27.28-generic 5.15.30
Uname: Linux 5.15.0-27-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
.proc.driver.nvidia.capabilities.gpu0: Error: path was not a regular file.
.proc.driver.nvidia.capabilities.mig: Error: path was not a regular file.
.proc.driver.nvidia.gpus.0000.01.00.0: Error: path was not a regular file.
.proc.driver.nvidia.registry: Binary: ""
.proc.driver.nvidia.suspend: suspend hibernate resume
.proc.driver.nvidia.suspend_depth: default modeset uvm
.proc.driver.nvidia.version:
 NVRM version: NVIDIA UNIX x86_64 Kernel Module 510.60.02 Wed Mar 16 11:24:05 UTC 2022
 GCC version:
ApportVersion: 2.20.11-0ubuntu82
Architecture: amd64
CasperMD5CheckResult: pass
CompositorRunning: None
CurrentDesktop: ubuntu:GNOME
Date: Mon May 2 15:29:43 2022
DistUpgraded: Fresh install
DistroCodename: jammy
DistroVariant: ubuntu
ExtraDebuggingInterest: Yes, if not too technical
GraphicsCard:
 Intel Corporation HD Graphics 630 [8086:591b] (rev 04) (prog-if 00 [VGA controller])
   Subsystem: Dell HD Graphics 630 [1028:0798]
 NVIDIA Corporation GP107M [GeForce GTX 1050 Ti Mobile] [10de:1c8c] (rev a1) (prog-if 00 [VGA controller])
   Subsystem: Dell GP107M [GeForce GTX 1050 Ti Mobile] [1028:0798]
InstallationDate: Installed on 2022-05-01 (0 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220419)
MachineType: Dell Inc. Inspiron 15 7000 Gaming
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.15.0-27-generic root=UUID=19e3ad11-d1ce-49ce-8809-80fc68612eb3 ro quiet splash vt.handoff=7
SourcePackage: xorg
Symptom: display
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 08/30/2021
dmi.bios.release: 1.15
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 1.15.0
dmi.board.name: 065C71
dmi.board.vendor: Dell Inc.
dmi.board.version: X02
dmi.chassis.type: 10
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvr1.15.0:bd08/30/2021:br1.15:svnDellInc.:pnInspiron157000Gaming:pvr:rvnDellInc.:rn065C71:rvrX02:cvnDellInc.:ct10:cvr:sku0798:
dmi.product.family: Inspiron
dmi.product.name: Inspiron 15 7000 Gaming
dmi.product.sku: 0798
dmi.sys.vendor: Dell Inc.
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.110-1ubuntu1
version.libgl1-mesa-dri: libgl1-mesa-dri 22.0.1-1ubuntu2
version.libgl1-mesa-glx: libgl1-mesa-glx N/A
version.nvidia-graphics-drivers: nvidia-graphics-drivers-* N/A
version.xserver-xorg-core: xserver-xorg-core 2:21.1.3-2ubuntu2
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:19.1.0-2build3
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20210115-1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.17-2build1

Revision history for this message
Zingam (registrirayme) wrote :
summary: - Internal display is black after sleep
+ Wayland session: Internal display is black after sleep
affects: ubuntu → xorg (Ubuntu)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks for the bug report.

The kernel log in CurrentDmesg.txt suggests the i915 graphics driver is having trouble resuming from sleep. We would like to see the whole log so please run this command after resuming:

  journalctl -b0 > journal.txt

and attach the resulting text file here.

affects: xorg (Ubuntu) → mutter (Ubuntu)
Changed in linux (Ubuntu):
status: New → Incomplete
Changed in mutter (Ubuntu):
status: New → Incomplete
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Note to self - might be HDMI bug 1968040

Revision history for this message
Jorge Pérez Lara (jorgesgk) wrote (last edit ):

I'm facing a similar issue. I'm also using Wayland and a Nvidia card. Let me attach the log.

Edit: Nope, apparently my problem comes from the screen being black but not suspended (while playing some audio). Suspending the laptop (by closing the lid or pressing the POWER buttom) and then waking it up solves the problem.

Let me attach you the log.

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

Jorge, please open a new bug from the affected machine by running:

  ubuntu-bug gnome-shell

Revision history for this message
Jorge Pérez Lara (jorgesgk) wrote :

Here you have

Revision history for this message
Jorge Pérez Lara (jorgesgk) wrote :

Thank you Daniel, I just did (bug #1971674)

Revision history for this message
Zingam (registrirayme) wrote :

Some additional information + the included log.

1. During "sleep" the internal display appears to be powered off but the external is blank but powered on (which means it glows in the dark).
2. I tried to reproduce the behavior by "suspending". When I resumed both displays turned on but instead of a mouse cursor there was a huge white rectangle on the login screen. After I clicked, moved it around the normal cursor appeared.

Revision history for this message
Zingam (registrirayme) wrote :

This maybe unrelated but I'll write it here too:

Since 22.04 the mouse movement on my external monitor feels laggy, jerky, while on the internal display it feels ok. I think on Ubuntu 20.04 there was not such an issue. I use Windows (same configuration) and macOS too with this monitor and they are smooth.

After performing the above sleep experiment I think the mouse movement got smoother. Now only my external monitor is turned on.

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

Thanks.

Comment #8 confirms this is a duplicate of bug 1968040.
Workaround: Add MUTTER_DEBUG_ENABLE_ATOMIC_KMS=0 to /etc/environment. Although you only need that while using Wayland sessions...

Comment #9 is being tracked in bug 1970291.
Workaround: Select a Xorg session on the login screen instead of Wayland.

Revision history for this message
ExploreWiki (explorewiki) wrote (last edit ):

I have a similar problem using an external HDMI monitor connected to a laptop.

It happens with the blank screen after a period of inactivity (without using the screen lock).

After the screen has gone blank due to a period of inactivity, I move the mouse or press a key on the keyboard to wake up both screens. However, 1 of 3 things will happen:

1. The laptop's screen will wake up but the external monitor doesn't wake up.
2. The external monitor will wake up but the laptop's screen doesn't wake up.
3. Both screens will wake up as they should.

To get both screens to wake up, I right click on the active screen and click "Display Settings". Click on "Mirror" then back to "Join", then "Apply" then "Revert Settings". The blank screen then realizes it is supposed to be on and it wakes up. The other option is to unplug and re-plug the HDMI cable in, but I got tired of doing this.

OS: Ubuntu 22.10
Graphics: Mesa Intel® HD Graphics 5500 (BDW GT2)
Windowing System: Wayland
Processor: Intel® Core™ i7-5500U × 4

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.