Bug 29926

Summary: Hang with black screen after resuming from suspend, regression in kernel 5.15.{15,16}
Product: Mageia Reporter: P R <pmr>
Component: RPM PackagesAssignee: Kernel and Drivers maintainers <kernel>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: Normal CC: fri
Version: 8   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: kernel-desktop-5.15.16-1.mga8-1-1.mga8 CVE:
Status comment:

Description P R 2022-01-22 15:34:48 CET
Description of problem:

After an update to kernel 5.15.15-desktop-1.mga8
(with a normal urpmi --auto-update)
a problem with entering the sleep mode emerged. 

After triggering entering the sleep/suspend mode (any method: choosing the "Sleep" menu point / closing the lid / leaving inactive) the screen becomes black but the system remains active.

It is impossible neither to force the sleep mode nor to wake up - a restart is necessary.

No change after an upgrade to 5.15.16-desktop-1.mga8
 

Version-Release number of selected component (if applicable):

kernel-desktop-5.15.15-1.mga8-1-1.mga8
kernel-desktop-5.15.16-1.mga8-1-1.mga8


[root@pmrnote pmr]# inxi -v 2
System:    Host: pmrnote Kernel: 5.15.16-desktop-1.mga8 x86_64 bits: 64 Desktop: KDE Plasma 5.20.4 Distro: Mageia 8 mga8 
Machine:   Type: Laptop System: LENOVO product: 80E3 v: Lenovo G50-45 serial: 1081964203931 
           Mobo: LENOVO model: Lancer 5B2 serial: PF0HH3LY UEFI [Legacy]: LENOVO v: A2CN44WW(V2.12) date: 01/18/2016 
Battery:   ID-1: BAT1 charge: 13.3 Wh condition: 13.3/31.7 Wh (42%) 
CPU:       Info: Quad Core AMD A6-6310 APU with AMD Radeon R4 Graphics [MCP] speed: 1216 MHz min/max: 1000/1800 MHz 
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Mullins [Radeon R4/R5 Graphics] driver: amdgpu v: kernel 
           Device-2: Logitech type: USB driver: uvcvideo 
           Device-3: Realtek Lenovo EasyCamera type: USB driver: uvcvideo 
           Display: x11 server: Mageia X.org 1.20.14 driver: amdgpu,v4l resolution: 1: 1366x768~60Hz 2: 1920x1200~60Hz 
           OpenGL: renderer: AMD KABINI (DRM 3.42.0 5.15.16-desktop-1.mga8 LLVM 11.0.1) v: 4.6 Mesa 21.3.4 
Network:   Device-1: Realtek RTL8723BE PCIe Wireless Network Adapter driver: rtl8723be 
           Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169 
Drives:    Local Storage: total: 1.31 TiB used: 849.09 GiB (63.3%) 
Info:      Processes: 261 Uptime: 2h 06m Memory: 14.62 GiB used: 3.24 GiB (22.1%) Shell: Bash inxi: 3.2.01 

How reproducible:

Steps to Reproduce:
1. Trigger entering the sleep/suspend mode, using any method:
- choose the "Sleep" menu point,
- closing the lid,
- leave inactive.
Comment 1 Morgan Leijström 2022-01-22 18:59:14 CET
Thank you for reporting

Does suspend-resume still work if you are booted on an elder kernel?

Are you sure the system is running, i.e test that by playing audio, suspend and resume ...this may not work anyway, but if you hear sound you know :)
Or ping the machine, or...

Source RPM: kernel-desktop-5.15.15-1.mga8-1-1.mga8 => kernel-desktop-5.15.16-1.mga8-1-1.mga8
CC: (none) => fri
Summary: Freezing after entering the sleep mode after a kernel update => Black screen after resuming from suspend, kernel 5.15.{15,16}

Comment 2 P R 2022-01-22 19:41:12 CET
(In reply to Morgan Leijström from comment #1)

> Does suspend-resume still work if you are booted on an elder kernel?

Unfortunately, I have removed older kernels before catching the bug.

> Are you sure the system is running, i.e test that by playing audio, suspend
> and resume ...this may not work anyway, but if you hear sound you know :)
> Or ping the machine, or...

It is active in the sense that activity lamp lights permanently (not just flushes as in a sleep mode) and fan can be heard. It is not possible to SSH, ping etc.

/var/log/messages dump from the time around the suspend attempt and following turning on:

Jan 22 00:26:03 pmrnote plasmashell[16714]: file:///usr/share/plasma/plasmoids/org.kde.plasma.kicker/contents/ui/ItemListDialog.qml:51: TypeError: Cannot read property 'separatorCount' of null
Jan 22 00:26:03 pmrnote plasmashell[16714]: trying to show an empty dialog
Jan 22 00:27:35 pmrnote syslog-ng[1100]: syslog-ng starting up; version='3.30.1'
Jan 22 00:26:04 pmrnote ModemManager[1037]: <info>  [sleep-monitor] system is about to suspend
Jan 22 00:26:04 pmrnote systemd[1]: Reached target Sleep.
Jan 22 00:26:04 pmrnote systemd[1]: Starting Suspend...
Jan 22 00:26:04 pmrnote systemd-sleep[21944]: Suspending system...
Jan 22 00:26:04 pmrnote kernel: PM: suspend entry (deep)
Jan 22 00:27:28 pmrnote kernel: Linux version 5.15.16-desktop-1.mga8 (iurt@rabbit.mageia.org) (gcc (Mageia 10.3.0-2.mga8) 10.3.0, GNU ld (GNU Binutils) 2.36.1) #1 SMP Thu Jan 20 16:28:36 UTC 2022
Jan 22 00:27:28 pmrnote kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-5.15.16-desktop-1.mga8 root=UUID=9e0f6702-064e-445e-9554-00e9c5af6884 ro splash quiet noiswmd audit=0 radeon.bapm=1 vga=791
Jan 22 00:27:28 pmrnote kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
Jan 22 00:27:28 pmrnote kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
Jan 22 00:27:28 pmrnote kernel: x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
Jan 22 00:27:28 pmrnote kernel: x86/fpu: xstate_offset[2]:  576, xstate_sizes[2]:  256
Jan 22 00:27:28 pmrnote kernel: x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format.
Comment 3 Morgan Leijström 2022-01-22 20:24:23 CET
(In reply to P R from comment #2)
> Unfortunately, I have removed older kernels before catching the bug.

You can install an elder kernel again.

It would be valuable to have logs from working suspend and resume to compare with.


> It is active in the sense that activity lamp lights permanently (not just
> flushes as in a sleep mode) and fan can be heard. It is not possible to SSH,
> ping etc.

So powered on, but basically dead (kernel panic whatever)

Summary: Black screen after resuming from suspend, kernel 5.15.{15,16} => Hang with black screen after resuming from suspend, kernel 5.15.{15,16}

Comment 4 P R 2022-01-22 21:04:06 CET
(In reply to Morgan Leijström from comment #3)
> (In reply to P R from comment #2)
> You can install an elder kernel again.
> 
> It would be valuable to have logs from working suspend and resume to compare
> with.

Have installed again.
With 5.15.11-desktop-3.mga8 it works flawless.

/var/log/messages dump from the time around the suspend and wake up:

Jan 22 20:55:57 pmrnote chronyd[1045]: Selected source 213.199.225.40 (pool.ntp.org)
Jan 22 20:55:58 pmrnote chronyd[1045]: Can't synchronise: no majority
Jan 22 20:55:58 pmrnote chronyd[1045]: Source 213.199.225.40 replaced with 193.70.94.182 (pool.ntp.org)
Jan 22 20:55:58 pmrnote chronyd[1045]: Selected source 89.25.168.137 (pool.ntp.org)
Jan 22 20:55:59 pmrnote su[18459]: (to root) pmr on pts/0
Jan 22 20:56:44 pmrnote plasmashell[17123]: file:///usr/share/plasma/plasmoids/org.kde.plasma.kicker/contents/ui/ItemListDialog.qml:51: TypeError: Cannot read property 'separatorCount' of null
Jan 22 20:56:44 pmrnote plasmashell[17123]: trying to show an empty dialog
Jan 22 20:56:45 pmrnote plasmashell[17123]: file:///usr/share/plasma/plasmoids/org.kde.plasma.kicker/contents/ui/ItemListDialog.qml:51: TypeError: Cannot read property 'separatorCount' of null
Jan 22 20:56:45 pmrnote plasmashell[17123]: trying to show an empty dialog
Jan 22 20:57:03 pmrnote ModemManager[1001]: <info>  [sleep-monitor] system is about to suspend
Jan 22 20:57:03 pmrnote systemd[1]: Reached target Sleep.
Jan 22 20:57:03 pmrnote systemd[1]: Starting Suspend...
Jan 22 20:57:03 pmrnote kernel: PM: suspend entry (deep)
Jan 22 20:57:03 pmrnote systemd-sleep[22111]: Suspending system...
Jan 22 20:57:54 pmrnote kernel: Filesystems sync: 0.006 seconds
Jan 22 20:57:54 pmrnote kernel: Freezing user space processes ... (elapsed 0.003 seconds) done.
Jan 22 20:57:54 pmrnote kernel: OOM killer disabled.
Jan 22 20:57:54 pmrnote kernel: Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Jan 22 20:57:54 pmrnote kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Jan 22 20:57:54 pmrnote kernel: wlp1s0: deauthenticating from 50:c7:bf:33:96:eb by local choice (Reason: 3=DEAUTH_LEAVING)
Jan 22 20:57:54 pmrnote kernel: sd 0:0:0:0: [sda] Synchronizing SCSI cache
Jan 22 20:57:54 pmrnote kernel: sd 1:0:0:0: [sdb] Synchronizing SCSI cache
Jan 22 20:57:54 pmrnote kernel: sd 0:0:0:0: [sda] Stopping disk
Jan 22 20:57:54 pmrnote kernel: sd 1:0:0:0: [sdb] Stopping disk
Jan 22 20:57:54 pmrnote kernel: r8169 0000:02:00.0 enp2s0: Link is Down
Jan 22 20:57:54 pmrnote kernel: ACPI: EC: interrupt blocked
Jan 22 20:57:54 pmrnote kernel: ACPI: PM: Preparing to enter system sleep state S3
Jan 22 20:57:54 pmrnote kernel: ACPI: EC: event blocked
Jan 22 20:57:54 pmrnote kernel: ACPI: EC: EC stopped
Jan 22 20:57:54 pmrnote kernel: ACPI: PM: Saving platform NVS memory
Jan 22 20:57:54 pmrnote kernel: Disabling non-boot CPUs ...
Jan 22 20:57:54 pmrnote kernel: smpboot: CPU 1 is now offline
Jan 22 20:57:54 pmrnote kernel: smpboot: CPU 2 is now offline
Jan 22 20:57:54 pmrnote kernel: smpboot: CPU 3 is now offline
Jan 22 20:57:54 pmrnote kernel: ACPI: PM: Low-level resume complete
Jan 22 20:57:54 pmrnote kernel: ACPI: EC: EC started
Jan 22 20:57:54 pmrnote kernel: ACPI: PM: Restoring platform NVS memory
Jan 22 20:57:54 pmrnote kernel: LVT offset 0 assigned for vector 0x400
Jan 22 20:57:54 pmrnote kernel: Enabling non-boot CPUs ...
Jan 22 20:57:54 pmrnote kernel: x86: Booting SMP configuration:
Jan 22 20:57:54 pmrnote kernel: smpboot: Booting Node 0 Processor 1 APIC 0x1
Jan 22 20:57:54 pmrnote kernel: microcode: CPU1: patch_level=0x07030105
Jan 22 20:57:54 pmrnote kernel: ACPI: \_PR_.C001: Found 2 idle states
Jan 22 20:57:54 pmrnote kernel: CPU1 is up
Jan 22 20:57:54 pmrnote kernel: smpboot: Booting Node 0 Processor 2 APIC 0x2
Jan 22 20:57:54 pmrnote kernel: microcode: CPU2: patch_level=0x07030105
Jan 22 20:57:54 pmrnote kernel: ACPI: \_PR_.C002: Found 2 idle states
Jan 22 20:57:54 pmrnote kernel: CPU2 is up
Jan 22 20:57:54 pmrnote kernel: smpboot: Booting Node 0 Processor 3 APIC 0x3
Jan 22 20:57:54 pmrnote kernel: microcode: CPU3: patch_level=0x07030105
Jan 22 20:57:54 pmrnote kernel: ACPI: \_PR_.C003: Found 2 idle states
Jan 22 20:57:54 pmrnote kernel: CPU3 is up
Jan 22 20:57:54 pmrnote kernel: ACPI: PM: Waking up from system sleep state S3
Jan 22 20:57:54 pmrnote kernel: ACPI: EC: interrupt unblocked
Jan 22 20:57:54 pmrnote kernel: ACPI: EC: event unblocked
Comment 5 Morgan Leijström 2022-01-22 21:16:34 CET
Thank you

Handing over to kernel maintainers

Summary: Hang with black screen after resuming from suspend, kernel 5.15.{15,16} => Hang with black screen after resuming from suspend, regression in kernel 5.15.{15,16}
Assignee: bugsquad => kernel

Comment 6 P R 2022-02-06 19:25:43 CET
After an update to
kernel-desktop-5.15.18-2.mga8-1-1.mga8
seems that suspending/resuming started to work properly again.
Comment 7 Morgan Leijström 2022-02-06 21:49:45 CET
Lucky you :)
Thus closing this.
Please reopen if you see the same problem again.

Resolution: (none) => FIXED
Status: NEW => RESOLVED