Bug 1220816 - Laptop fails to enter S2Idle sleep after upgrading to kernel version 6.7.6. (Lenovo Ideapad 5 pro 14ARH7)
Summary: Laptop fails to enter S2Idle sleep after upgrading to kernel version 6.7.6. (...
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Kernel (show other bugs)
Version: Current
Hardware: x86-64 openSUSE Tumbleweed
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: openSUSE Kernel Bugs
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-02 12:37 UTC by Michal Walach
Modified: 2024-03-05 11:07 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---
jslaby: needinfo? (misawalach00)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Walach 2024-03-02 12:37:16 UTC
I have a laptop Lenovo Ideapad 5 Pro 14ARH7.
Specifications:
    CPU: AMD Ryzen 6800HS Creator Edition
    GPU: AMD Radeom R680M integrated graphics
    RAM: 16GB LPDDR5
    SSD: 1TB NVME M.2


Ever since upgrading to linux kernel 6.7.6, my laptop is unable to fall asleep. Doesn't matter if I press "sleep" in KDE Plasma, type systemctl suspend to terminal or press the power button. The result is the same.
What happens is the screen goes black, fans keep spinning, LED Indicator indicates laptop is still awake. Laptop produces heat.

There is one way to prevent this from happening, and that is to connect an USB-C hub to the laptop. I have an USB-C hub with an HDMI port, ethernet, 2xUSB-A and 1xUSB-C. If this hub is connected to the laptop while the laptop is trying to enter sleep mode, then it is successful. If no hub is connected, entering sleep fails.

The kernel does not seem to respond to Magic Sysrq. Pressing ALT + Printscreen + b does not shut down the laptop.
The laptop only supports S2Idle sleep states.

Reverting to kernel 6.7.5 solves this issue. Zypper stores previous kernel version when upgrading so I'm quite certain it's the kernel and not something else.

Here is a log from journalctl of the laptop going to sleep and waking up with the hub plugged in:

bře 02 13:11:13 localhost.localdomain nscd[1429]: 1429 sleduje se soubor „/etc/nsswitch.conf“ (6)
bře 02 13:11:13 localhost.localdomain nscd[1429]: 1429 sleduje se adresář „/etc“ (2)
bře 02 13:11:13 localhost.localdomain nscd[1429]: 1429 sleduje se soubor „/etc/resolv.conf“ (8)
bře 02 13:11:13 localhost.localdomain systemd-hostnamed[5365]: Hostname set to <localhost.localdomain> (transient)
bře 02 13:11:13 localhost.localdomain nscd[1429]: 1429 sleduje se adresář „/etc“ (2)
bře 02 13:11:13 localhost.localdomain systemd[1]: Reached target Sleep.
bře 02 13:11:13 localhost.localdomain dns-dnsmasq.sh[5403]: <debug> NETWORKMANAGER_DNS_FORWARDER is not set to "dnsmasq" in /etc/sysconfig/network/config -> exit
bře 02 13:11:14 localhost.localdomain systemd[1]: Starting System Suspend...
bře 02 13:11:14 localhost.localdomain systemd-sleep[5419]: INFO: Skip running /usr/lib/systemd/system-sleep/grub2.sleep for suspend
bře 02 13:11:14 localhost.localdomain systemd-sleep[5391]: Entering sleep state 'suspend'...
bře 02 13:11:14 localhost.localdomain kernel: PM: suspend entry (s2idle)
bře 02 13:11:14 localhost.localdomain dns-dnsmasq.sh[5432]: <debug> NETWORKMANAGER_DNS_FORWARDER is not set to "dnsmasq" in /etc/sysconfig/network/config -> exit
bře 02 13:11:14 localhost.localdomain kernel: Filesystems sync: 0.012 seconds
bře 02 13:11:20 localhost.localdomain kernel: Freezing user space processes
bře 02 13:11:20 localhost.localdomain kernel: Freezing user space processes completed (elapsed 0.017 seconds)
bře 02 13:11:20 localhost.localdomain kernel: OOM killer disabled.
bře 02 13:11:20 localhost.localdomain kernel: Freezing remaining freezable tasks
bře 02 13:11:20 localhost.localdomain kernel: Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
bře 02 13:11:20 localhost.localdomain kernel: printk: Suspending console(s) (use no_console_suspend to debug)
bře 02 13:11:20 localhost.localdomain kernel: queueing ieee80211 work while going to suspend
bře 02 13:11:20 localhost.localdomain kernel: ACPI: EC: interrupt blocked
bře 02 13:11:20 localhost.localdomain kernel: ACPI: EC: interrupt unblocked
bře 02 13:11:20 localhost.localdomain kernel: [drm] PCIE GART of 1024M enabled (table at 0x000000F47FC00000).
bře 02 13:11:20 localhost.localdomain kernel: amdgpu 0000:04:00.0: amdgpu: SMU is resuming...
bře 02 13:11:20 localhost.localdomain kernel: amdgpu 0000:04:00.0: amdgpu: SMU is resumed successfully!
bře 02 13:11:20 localhost.localdomain kernel: amdgpu 0000:04:00.0: [drm] *ERROR* Error queueing DMUB command: status=4
bře 02 13:11:20 localhost.localdomain kernel: nvme nvme0: 16/0/0 default/read/poll queues
bře 02 13:11:20 localhost.localdomain kernel: usb 9-1.5: reset high-speed USB device number 3 using xhci_hcd
bře 02 13:11:20 localhost.localdomain kernel: usb 9-1.5: PM: dpm_run_callback(): usb_dev_resume+0x0/0x20 [usbcore] returns -5
bře 02 13:11:20 localhost.localdomain kernel: usb 9-1.5: PM: failed to resume async: error -5
bře 02 13:11:20 localhost.localdomain kernel: [drm] VCN decode and encode initialized successfully(under DPG Mode).
bře 02 13:11:20 localhost.localdomain kernel: [drm] JPEG decode initialized successfully.
bře 02 13:11:20 localhost.localdomain kernel: amdgpu 0000:04:00.0: amdgpu: ring gfx_0.0.0 uses VM inv eng 0 on hub 0
bře 02 13:11:20 localhost.localdomain kernel: amdgpu 0000:04:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0
bře 02 13:11:20 localhost.localdomain kernel: amdgpu 0000:04:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0
bře 02 13:11:20 localhost.localdomain kernel: amdgpu 0000:04:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 5 on hub 0
bře 02 13:11:20 localhost.localdomain kernel: amdgpu 0000:04:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 6 on hub 0
bře 02 13:11:20 localhost.localdomain kernel: amdgpu 0000:04:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 7 on hub 0
bře 02 13:11:20 localhost.localdomain kernel: amdgpu 0000:04:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 8 on hub 0
bře 02 13:11:20 localhost.localdomain kernel: amdgpu 0000:04:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 9 on hub 0
bře 02 13:11:20 localhost.localdomain kernel: amdgpu 0000:04:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 10 on hub 0
bře 02 13:11:20 localhost.localdomain kernel: amdgpu 0000:04:00.0: amdgpu: ring kiq_0.2.1.0 uses VM inv eng 11 on hub 0
bře 02 13:11:20 localhost.localdomain kernel: amdgpu 0000:04:00.0: amdgpu: ring sdma0 uses VM inv eng 12 on hub 0
bře 02 13:11:20 localhost.localdomain kernel: amdgpu 0000:04:00.0: amdgpu: ring vcn_dec_0 uses VM inv eng 0 on hub 8
bře 02 13:11:20 localhost.localdomain kernel: amdgpu 0000:04:00.0: amdgpu: ring vcn_enc_0.0 uses VM inv eng 1 on hub 8
bře 02 13:11:20 localhost.localdomain kernel: amdgpu 0000:04:00.0: amdgpu: ring vcn_enc_0.1 uses VM inv eng 4 on hub 8
bře 02 13:11:20 localhost.localdomain kernel: amdgpu 0000:04:00.0: amdgpu: ring jpeg_dec uses VM inv eng 5 on hub 8
bře 02 13:11:20 localhost.localdomain kernel: OOM killer enabled.
bře 02 13:11:20 localhost.localdomain kernel: Restarting tasks ... 
bře 02 13:11:20 localhost.localdomain kernel: usb 9-1.5: USB disconnect, device number 3
bře 02 13:11:20 localhost.localdomain kernel: done.
bře 02 13:11:20 localhost.localdomain kernel: random: crng reseeded on system resumption
bře 02 13:11:20 localhost.localdomain dns-dnsmasq.sh[5450]: <debug> NETWORKMANAGER_DNS_FORWARDER is not set to "dnsmasq" in /etc/sysconfig/network/config -> exit
bře 02 13:11:20 localhost.localdomain unix_chkpwd[5513]: password check failed for user (yorimirus)
bře 02 13:11:20 localhost.localdomain kscreenlocker_greet[5280]: pam_unix(kde:auth): authentication failure; logname=yorimirus uid=1000 euid=1000 tty= ruser= rhost=  user=yorimirus
bře 02 13:11:20 localhost.localdomain kernel: usb 9-1.5: new high-speed USB device number 4 using xhci_hcd
bře 02 13:11:20 localhost.localdomain systemd-sleep[5391]: System returned from sleep state.
bře 02 13:11:20 localhost.localdomain kernel: PM: suspend exit
bře 02 13:11:20 localhost.localdomain systemd-sleep[5565]: INFO: Skip running /usr/lib/systemd/system-sleep/grub2.sleep for suspend
bře 02 13:11:20 localhost.localdomain systemd[1]: systemd-suspend.service: Deactivated successfully.
bře 02 13:11:20 localhost.localdomain kernel: usb 9-1.5: New USB device found, idVendor=2109, idProduct=8888, bcdDevice= 0.01
bře 02 13:11:20 localhost.localdomain kernel: usb 9-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
bře 02 13:11:20 localhost.localdomain kernel: usb 9-1.5: Product: USB Billboard Device   
bře 02 13:11:20 localhost.localdomain kernel: usb 9-1.5: Manufacturer: VIA Labs, Inc.         
bře 02 13:11:20 localhost.localdomain kernel: usb 9-1.5: SerialNumber: 0000000000000001
bře 02 13:11:20 localhost.localdomain systemd[1]: Finished System Suspend.
bře 02 13:11:20 localhost.localdomain systemd[1]: Stopped target Sleep.
bře 02 13:11:20 localhost.localdomain systemd[1]: Reached target Suspend.
bře 02 13:11:20 localhost.localdomain systemd[1]: Stopped target Suspend.
bře 02 13:11:20 localhost.localdomain systemd-logind[1669]: Operation 'sleep' finished.
bře 02 13:11:20 localhost.localdomain ModemManager[1710]: <info>  [sleep-monitor-systemd] system is resuming
bře 02 13:11:20 localhost.localdomain NetworkManager[1723]: <info>  [1709381480.8502] manager: sleep: wake requested (sleeping: yes  enabled: yes)
bře 02 13:11:20 localhost.localdomain kdeconnectd[3150]: Error sending UDP packet: QAbstractSocket::NetworkError
bře 02 13:11:20 localhost.localdomain bluetoothd[1712]: Failed to set mode: Failed (0x03)
bře 02 13:11:20 localhost.localdomain NetworkManager[1723]: <info>  [1709381480.8505] device (enp5s0f4u1u3): state change: unavailable -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
bře 02 13:11:20 localhost.localdomain kded5[2821]: kf.bluezqt: PendingCall Error: "Failed"
bře 02 13:11:20 localhost.localdomain NetworkManager[1723]: <info>  [1709381480.8549] device (wlp1s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
bře 02 13:11:20 localhost.localdomain NetworkManager[1723]: <info>  [1709381480.8660] device (enp5s0f4u1u3): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
bře 02 13:11:20 localhost.localdomain NetworkManager[1723]: <info>  [1709381480.8699] device (p2p-dev-wlp1s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
bře 02 13:11:20 localhost.localdomain NetworkManager[1723]: <info>  [1709381480.8700] manager: NetworkManager state is now DISCONNECTED
bře 02 13:11:20 localhost.localdomain NetworkManager[1723]: <info>  [1709381480.9249] device (wlp1s0): supplicant interface state: internal-starting -> disconnected
bře 02 13:11:20 localhost.localdomain NetworkManager[1723]: <info>  [1709381480.9250] device (p2p-dev-wlp1s0): state change: unavailable -> unmanaged (reason 'removed', sys-iface-state: 'removed')
bře 02 13:11:20 localhost.localdomain NetworkManager[1723]: <info>  [1709381480.9253] Wi-Fi P2P device controlled by interface wlp1s0 created
bře 02 13:11:20 localhost.localdomain NetworkManager[1723]: <info>  [1709381480.9254] manager: (p2p-dev-wlp1s0): new 802.11 Wi-Fi P2P device (/org/freedesktop/NetworkManager/Devices/5)
bře 02 13:11:20 localhost.localdomain NetworkManager[1723]: <info>  [1709381480.9255] device (p2p-dev-wlp1s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
bře 02 13:11:20 localhost.localdomain NetworkManager[1723]: <info>  [1709381480.9257] device (wlp1s0): state change: unavailable -> disconnected (reason 'supplicant-available', sys-iface-state: 'managed')
bře 02 13:11:20 localhost.localdomain NetworkManager[1723]: <info>  [1709381480.9259] device (p2p-dev-wlp1s0): state change: unavailable -> disconnected (reason 'none', sys-iface-state: 'managed')
bře 02 13:11:23 localhost.localdomain NetworkManager[1723]: <info>  [1709381483.1938] policy: auto-activating connection 'Walachova_4G' (7db97e30-ef03-41d1-b555-74b2e8028e2b)
bře 02 13:11:23 localhost.localdomain NetworkManager[1723]: <info>  [1709381483.1942] device (wlp1s0): Activation: starting connection 'Walachova_4G' (7db97e30-ef03-41d1-b555-74b2e8028e2b)



When no usb hub is connected, this is the output:

bře 02 13:11:13 localhost.localdomain nscd[1429]: 1429 sleduje se soubor „/etc/nsswitch.conf“ (6)
bře 02 13:11:13 localhost.localdomain nscd[1429]: 1429 sleduje se adresář „/etc“ (2)
bře 02 13:11:13 localhost.localdomain nscd[1429]: 1429 sleduje se soubor „/etc/resolv.conf“ (8)
bře 02 13:11:13 localhost.localdomain systemd-hostnamed[5365]: Hostname set to <localhost.localdomain> (transient)
bře 02 13:11:13 localhost.localdomain nscd[1429]: 1429 sleduje se adresář „/etc“ (2)
bře 02 13:11:13 localhost.localdomain systemd[1]: Reached target Sleep.
bře 02 13:11:13 localhost.localdomain dns-dnsmasq.sh[5403]: <debug> NETWORKMANAGER_DNS_FORWARDER is not set to "dnsmasq" in /etc/sysconfig/network/config -> exit
bře 02 13:11:14 localhost.localdomain systemd[1]: Starting System Suspend...
bře 02 13:11:14 localhost.localdomain systemd-sleep[5419]: INFO: Skip running /usr/lib/systemd/system-sleep/grub2.sleep for suspend
bře 02 13:11:14 localhost.localdomain systemd-sleep[5391]: Entering sleep state 'suspend'...
bře 02 13:11:14 localhost.localdomain kernel: PM: suspend entry (s2idle)
Comment 1 Jiri Slaby 2024-03-05 08:09:14 UTC
Is 6.7.7 better? It contains bbfaf2aea7164.
Comment 2 Michal Walach 2024-03-05 09:36:42 UTC
It didn't work yesterday but it seems to work now. I assume the today's kernel-amdgpu package update fixed it? Anyways, marked as resolved.
Comment 3 Michal Walach 2024-03-05 09:48:11 UTC
There seems to be an issue where pressing suspend in the KDE Plasma menu or pressing the power button suspends the device properly but closing the lid still fails and causes the device to be unresponsive. Might not be related to this issue though.
Comment 4 Jiri Slaby 2024-03-05 11:07:59 UTC
(In reply to Michal Walach from comment #3)
> There seems to be an issue where pressing suspend in the KDE Plasma menu or
> pressing the power button suspends the device properly but closing the lid
> still fails and causes the device to be unresponsive. Might not be related
> to this issue though.

Yes, that's exactly the symptom described in:
https://gitlab.freedesktop.org/drm/amd/-/issues/3132

and bbfaf2aea7164 should fix that.