You are not logged in.

#1 2021-02-27 00:25:58

rudolf_schlepke
Member
From: Ukraine
Registered: 2021-02-27
Posts: 20
Website

Hibernation not working with Ryzen 4700U [linux-5.11]

This happened after the upgrade to the newer 5.11 linux kernel. Laptop won't hibernate anymore.
Symptoms are: after systemctl hibernate system proceeds to start the hibernation process (screen, keyboard backlight shutdown), but then lights up again, becoming extremely sluggish with a screenful of graphical artifacts before the login page appears.
Way to circumvent at the moment: roll back to 5.10.16.

I'm guessing that the important bit of the log excerpt below is kernel: amdgpu 0000:03:00.0: amdgpu: Mode2 reset failed! message, which does not appear under older kernel version.

Journal logs:

-- Journal begins at Sat 2021-02-20 07:50:15 UTC, ends at Sat 2021-02-27 00:12:48 UTC. --
Feb 26 22:38:04 gsd-usb-protect[1130]: Error calling USBGuard DBus to change the protection after a screensaver event: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.usbguard1 was not provided by any .service files
Feb 26 22:38:04 systemd[1]: Reached target Sleep.
Feb 26 22:38:04 systemd[1]: Starting Hibernate...
Feb 26 22:38:04 systemd-sleep[1574]: Suspending system...
Feb 26 22:38:04 kernel: PM: hibernation: hibernation entry
Feb 26 22:38:13 kernel: Filesystems sync: 0.004 seconds
Feb 26 22:38:13 kernel: Freezing user space processes ... (elapsed 0.002 seconds) done.
Feb 26 22:38:13 kernel: OOM killer disabled.
Feb 26 22:38:13 kernel: PM: hibernation: Marking nosave pages: [mem 0x00000000-0x00000fff]
Feb 26 22:38:13 kernel: PM: hibernation: Marking nosave pages: [mem 0x000a0000-0x000fffff]
Feb 26 22:38:13 kernel: PM: hibernation: Marking nosave pages: [mem 0x09d02000-0x09ffffff]
Feb 26 22:38:13 kernel: PM: hibernation: Marking nosave pages: [mem 0x0a200000-0x0a20ffff]
Feb 26 22:38:13 kernel: PM: hibernation: Marking nosave pages: [mem 0xc85ed000-0xc861bfff]
Feb 26 22:38:13 kernel: PM: hibernation: Marking nosave pages: [mem 0xca626000-0xca626fff]
Feb 26 22:38:13 kernel: PM: hibernation: Marking nosave pages: [mem 0xcb270000-0xcd1fefff]
Feb 26 22:38:13 kernel: PM: hibernation: Marking nosave pages: [mem 0xce000000-0xffffffff]
Feb 26 22:38:13 kernel: PM: hibernation: Basic memory bitmaps created
Feb 26 22:38:13 kernel: PM: hibernation: Preallocating image memory
Feb 26 22:38:13 kernel: PM: hibernation: Allocated 411111 pages for snapshot
Feb 26 22:38:13 kernel: PM: hibernation: Allocated 1644444 kbytes in 0.58 seconds (2835.24 MB/s)
Feb 26 22:38:13 kernel: Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Feb 26 22:38:13 kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Feb 26 22:38:13 kernel: ------------[ cut here ]------------
Feb 26 22:38:13 kernel: WARNING: CPU: 2 PID: 1574 at drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c:2569 dc_link_set_backlight_level+0x8a/0xf0 [amdgpu]
Feb 26 22:38:13 kernel: Modules linked in: rfcomm ccm cmac algif_hash algif_skcipher af_alg bnep uvcvideo btusb videobuf2_vmalloc btrtl videobuf2_memops btbcm videobuf2_v4l2 btintel videobuf2_common joydev intel_rapl_msr intel_rapl_common mousedev bluetooth videodev mc asus_nb_wmi asus_wmi hid_multitouch sparse_keymap wmi_bmof edac_mce_amd ecdh_generic ecc kvm_amd kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel snd_hda_codec_realtek crypto_simd cryptd glue_helper snd_hda_codec_generic rapl snd_hda_codec_hdmi ledtrig_audio snd_hda_intel snd_intel_dspcfg soundwire_intel soundwire_generic_allocation soundwire_cadence iwlmvm snd_hda_codec pcspkr snd_hda_core snd_hwdep mac80211 libarc4 soundwire_bus iwlwifi snd_soc_core snd_compress ac97_bus snd_pcm_dmaengine snd_pcm cfg80211 k10temp snd_timer snd sp5100_tco ccp soundcore rfkill i2c_piix4 tpm_crb wmi mac_hid tpm_tis tpm_tis_core tpm video rng_core amd_pmc i2c_hid acpi_cpufreq pinctrl_amd sg fuse crypto_user bpf_preload
Feb 26 22:38:13 kernel:  ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 crc32c_intel serio_raw xhci_pci xhci_pci_renesas amdgpu drm_ttm_helper ttm gpu_sched i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops cec drm agpgart
Feb 26 22:38:13 kernel: CPU: 2 PID: 1574 Comm: systemd-sleep Not tainted 5.11.1-arch1-1 #1
Feb 26 22:38:13 kernel: Hardware name: ASUSTeK COMPUTER INC. VivoBook_ASUSLaptop X421IA_M433IA/X421IA, BIOS X421IA.305 07/27/2020
Feb 26 22:38:13 kernel: RIP: 0010:dc_link_set_backlight_level+0x8a/0xf0 [amdgpu]
Feb 26 22:38:13 kernel: Code: 88 03 00 00 31 c0 48 8d 96 f0 01 00 00 48 8b 0a 48 85 c9 74 06 48 3b 59 08 74 20 83 c0 01 48 81 c2 d0 04 00 00 83 f8 06 75 e3 <0f> 0b 45 31 e4 5b 44 89 e0 5d 41 5c 41 5d 41 5e c3 48 98 48 69 c0
Feb 26 22:38:13 kernel: RSP: 0018:ffffb8af02253c98 EFLAGS: 00010246
Feb 26 22:38:13 kernel: RAX: 0000000000000006 RBX: ffff999cc6d69800 RCX: 0000000000000000
Feb 26 22:38:13 kernel: RDX: ffff999d10441ed0 RSI: ffff999d10440000 RDI: 0000000000000000
Feb 26 22:38:13 kernel: RBP: ffff999ccc960000 R08: 0000000000000048 R09: ffff999cc27c6960
Feb 26 22:38:13 kernel: R10: ffff999cc27c6300 R11: 0000000001320122 R12: 0000000000005001
Feb 26 22:38:13 kernel: R13: 0000000000000000 R14: 00000000000050ed R15: ffff999cc65f3260
Feb 26 22:38:13 kernel: FS:  00007f8e88c4aec0(0000) GS:ffff999fbf680000(0000) knlGS:0000000000000000
Feb 26 22:38:13 kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Feb 26 22:38:13 kernel: CR2: 000055919e0736f6 CR3: 0000000144356000 CR4: 0000000000350ee0
Feb 26 22:38:13 kernel: Call Trace:
Feb 26 22:38:13 kernel:  amdgpu_dm_backlight_update_status+0xb4/0xc0 [amdgpu]
Feb 26 22:38:13 kernel:  backlight_suspend+0x6a/0x80
Feb 26 22:38:13 kernel:  ? brightness_store+0x80/0x80
Feb 26 22:38:13 kernel:  dpm_run_callback+0x4c/0x150
Feb 26 22:38:13 kernel:  __device_suspend+0x11c/0x4d0
Feb 26 22:38:13 kernel:  dpm_suspend+0xef/0x230
Feb 26 22:38:13 kernel:  hibernation_snapshot+0xb4/0x480
Feb 26 22:38:13 kernel:  hibernate.cold+0x8b/0x206
Feb 26 22:38:13 kernel:  state_store+0xcb/0xd0
Feb 26 22:38:13 kernel:  kernfs_fop_write_iter+0x124/0x1b0
Feb 26 22:38:13 kernel:  new_sync_write+0x159/0x1f0
Feb 26 22:38:13 kernel:  vfs_write+0x1fc/0x2a0
Feb 26 22:38:13 kernel:  ksys_write+0x67/0xe0
Feb 26 22:38:13 kernel:  do_syscall_64+0x33/0x40
Feb 26 22:38:13 kernel:  entry_SYSCALL_64_after_hwframe+0x44/0xa9
Feb 26 22:38:13 kernel: RIP: 0033:0x7f8e895be0f7
Feb 26 22:38:13 kernel: Code: 0d 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 51 c3 48 83 ec 28 48 89 54 24 18 48 89 74 24
Feb 26 22:38:13 kernel: RSP: 002b:00007ffef4e73e08 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
Feb 26 22:38:13 kernel: RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f8e895be0f7
Feb 26 22:38:13 kernel: RDX: 0000000000000005 RSI: 00007ffef4e73ef0 RDI: 0000000000000004
Feb 26 22:38:13 kernel: RBP: 00007ffef4e73ef0 R08: 0000557eb9df3bf0 R09: 00007f8e896540c0
Feb 26 22:38:13 kernel: R10: 00007f8e89653fc0 R11: 0000000000000246 R12: 0000000000000005
Feb 26 22:38:13 kernel: R13: 0000557eb9def3c0 R14: 0000000000000005 R15: 00007f8e89690700
Feb 26 22:38:13 kernel: ---[ end trace 378ea75048e9a181 ]---
Feb 26 22:38:13 kernel: amdgpu: cp queue preemption time out.
Feb 26 22:38:13 kernel: amdgpu 0000:03:00.0: amdgpu: MODE2 reset
Feb 26 22:38:13 kernel: amdgpu 0000:03:00.0: amdgpu: failed send message: GfxDeviceDriverReset (30)         param: 0x00000002 response 0xffffffc2
Feb 26 22:38:13 kernel: amdgpu 0000:03:00.0: amdgpu: Mode2 reset failed!
Feb 26 22:38:13 kernel: PM: pci_pm_freeze(): amdgpu_pmops_freeze+0x0/0x40 [amdgpu] returns -62
Feb 26 22:38:13 kernel: PM: dpm_run_callback(): pci_pm_freeze+0x0/0xb0 returns -62
Feb 26 22:38:13 kernel: PM: Device 0000:03:00.0 failed to freeze async: error -62
Feb 26 22:38:13 kernel: usb usb1: root hub lost power or was reset
Feb 26 22:38:13 kernel: usb usb2: root hub lost power or was reset
Feb 26 22:38:13 kernel: usb usb3: root hub lost power or was reset
Feb 26 22:38:13 kernel: usb usb4: root hub lost power or was reset
Feb 26 22:38:13 kernel: pci 0000:00:00.2: can't derive routing for PCI INT A
Feb 26 22:38:13 kernel: pci 0000:00:00.2: PCI INT A: no GSI
Feb 26 22:38:13 kernel: nvme nvme0: Shutdown timeout set to 8 seconds
Feb 26 22:38:13 kernel: nvme nvme0: 12/0/0 default/read/poll queues
Feb 26 22:38:13 kernel: ata1: SATA link down (SStatus 0 SControl 300)
Feb 26 22:38:13 kernel: ata2: SATA link down (SStatus 0 SControl 300)
Feb 26 22:38:13 kernel: usb 3-3: reset high-speed USB device number 3 using xhci_hcd
Feb 26 22:38:13 kernel: usb 3-4: reset full-speed USB device number 4 using xhci_hcd
Feb 26 22:38:13 kernel: usb 3-2: reset full-speed USB device number 2 using xhci_hcd
Feb 26 22:38:13 kernel: acpi LNXPOWER:08: Turning OFF
Feb 26 22:38:13 kernel: acpi LNXPOWER:07: Turning OFF
Feb 26 22:38:13 kernel: acpi LNXPOWER:05: Turning OFF
Feb 26 22:38:13 kernel: PM: hibernation: Basic memory bitmaps freed
Feb 26 22:38:13 kernel: OOM killer enabled.
Feb 26 22:38:13 kernel: Restarting tasks ... 
Feb 26 22:38:13 kernel: Bluetooth: hci0: Firmware revision 0.0 build 26 week 3 2021
Feb 26 22:38:13 kernel: done.
Feb 26 22:38:13 kernel: PM: hibernation: hibernation exit
Feb 26 22:38:13 kernel: audit: type=1131 audit(1614379093.862:88): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 26 22:38:13 audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 26 22:38:13 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hibernate comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Feb 26 22:38:13 rtkit-daemon[579]: The canary thread is apparently starving. Taking action.
Feb 26 22:38:13 systemd[1]: Starting Load/Save RF Kill Switch Status...
Feb 26 22:38:13 rtkit-daemon[579]: Demoting known real-time threads.
Feb 26 22:38:13 systemd[1]: NetworkManager-dispatcher.service: Succeeded.
Feb 26 22:38:13 rtkit-daemon[579]: Successfully demoted thread 1040 of process 965.
Feb 26 22:38:13 upowerd[571]: treating change event as add on /sys/devices/pci0000:00/0000:00:08.1/0000:03:00.4/usb3/3-4
Feb 26 22:38:13 rtkit-daemon[579]: Successfully demoted thread 1033 of process 965.
Feb 26 22:38:13 systemd-sleep[1574]: Failed to suspend system. System resumed again: Timer expired
Feb 26 22:38:13 rtkit-daemon[579]: Successfully demoted thread 965 of process 965.
Feb 26 22:38:13 upowerd[571]: treating change event as add on /sys/devices/pci0000:00/0000:00:08.1/0000:03:00.4/usb3/3-2
Feb 26 22:38:13 rtkit-daemon[579]: Demoted 3 threads.
Feb 26 22:38:13 systemd[1]: systemd-hibernate.service: Main process exited, code=exited, status=1/FAILURE
Feb 26 22:38:13 bluetoothd[485]: Endpoint unregistered: sender=:1.59 path=/MediaEndpoint/A2DPSink/sbc
Feb 26 22:38:13 systemd[1]: systemd-hibernate.service: Failed with result 'exit-code'.
Feb 26 22:38:13 bluetoothd[485]: Endpoint unregistered: sender=:1.59 path=/MediaEndpoint/A2DPSource/sbc
Feb 26 22:38:13 systemd[1]: Failed to start Hibernate.
Feb 26 22:38:13 systemd[1]: Dependency failed for Hibernate.
Feb 26 22:38:13 systemd[1]: hibernate.target: Job hibernate.target/start failed with result 'dependency'.
Feb 26 22:38:13 systemd[1]: Stopped target Bluetooth.
Feb 26 22:38:13 systemd[1]: Stopped target Sleep.
Feb 26 22:38:13 systemd-logind[365]: Operation 'sleep' finished.
Feb 26 22:38:13 kernel: audit: type=1130 audit(1614379093.866:89): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hibernate comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Feb 26 22:38:13 upowerd[571]: treating change event as add on /sys/devices/pci0000:00/0000:00:08.1/0000:03:00.4/usb3/3-4
Feb 26 22:38:13 systemd[1]: Reached target Bluetooth.
Feb 26 22:38:13 NetworkManager[364]: <info>  [1614379093.8731] manager: sleep: wake requested (sleeping: yes  enabled: yes)
Feb 26 22:38:13 NetworkManager[364]: <info>  [1614379093.8732] device (wlp1s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Feb 26 22:38:13 systemd[803]: Reached target Bluetooth.
Feb 26 22:38:13 systemd[1]: Started Load/Save RF Kill Switch Status.
Feb 26 22:38:13 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 26 22:38:13 NetworkManager[364]: <info>  [1614379093.8756] device (p2p-dev-wlp1s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Feb 26 22:38:13 NetworkManager[364]: <info>  [1614379093.8760] manager: NetworkManager state is now DISCONNECTED
Feb 26 22:38:13 kernel: audit: type=1130 audit(1614379093.869:90): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 26 22:38:13 upowerd[571]: treating change event as add on /sys/devices/pci0000:00/0000:00:08.1/0000:03:00.4/usb3/3-2
Feb 26 22:38:13 NetworkManager[364]: <info>  [1614379093.9325] device (wlp1s0): supplicant interface state: internal-starting -> disconnected
Feb 26 22:38:13 NetworkManager[364]: <info>  [1614379093.9326] device (p2p-dev-wlp1s0): state change: unavailable -> unmanaged (reason 'removed', sys-iface-state: 'removed')
Feb 26 22:38:13 NetworkManager[364]: <info>  [1614379093.9335] Wi-Fi P2P device controlled by interface wlp1s0 created
Feb 26 22:38:13 NetworkManager[364]: <info>  [1614379093.9340] manager: (p2p-dev-wlp1s0): new 802.11 Wi-Fi P2P device (/org/freedesktop/NetworkManager/Devices/4)
Feb 26 22:38:13 NetworkManager[364]: <info>  [1614379093.9344] device (p2p-dev-wlp1s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Feb 26 22:38:13 NetworkManager[364]: <info>  [1614379093.9352] device (wlp1s0): state change: unavailable -> disconnected (reason 'supplicant-available', sys-iface-state: 'managed')
Feb 26 22:38:13 NetworkManager[364]: <info>  [1614379093.9363] device (p2p-dev-wlp1s0): state change: unavailable -> disconnected (reason 'none', sys-iface-state: 'managed')
Feb 26 22:38:13 NetworkManager[364]: <warn>  [1614379093.9458] sup-iface[4fc8c69176f16050,1,wlp1s0]: call-p2p-cancel: failed with P2P cancel failed
Feb 26 22:38:13 gnome-shell[862]: Removing a network device that was not added
Feb 26 22:38:14 bluetoothd[485]: Endpoint registered: sender=:1.59 path=/MediaEndpoint/A2DPSink/sbc
Feb 26 22:38:14 bluetoothd[485]: Endpoint registered: sender=:1.59 path=/MediaEndpoint/A2DPSource/sbc
Feb 26 22:38:14 kernel: [drm] Fence fallback timer expired on ring sdma0
Feb 26 22:38:15 kernel: [drm] Fence fallback timer expired on ring sdma0
Feb 26 22:38:15 kernel: [drm] Fence fallback timer expired on ring sdma0
Feb 26 22:38:16 kernel: [drm] Fence fallback timer expired on ring sdma0
Feb 26 22:38:16 kernel: [drm] Fence fallback timer expired on ring sdma0
Feb 26 22:38:17 kernel: [drm] Fence fallback timer expired on ring sdma0
Feb 26 22:38:17 kernel: [drm] Fence fallback timer expired on ring sdma0
Feb 26 22:38:17 wpa_supplicant[496]: wlp1s0: CTRL-EVENT-REGDOM-CHANGE init=DRIVER type=COUNTRY alpha2=UA
Feb 26 22:38:17 NetworkManager[364]: <info>  [1614379097.7324] policy: auto-activating connection 'Kozak_5G' (c1026667-77cd-4037-a409-75ce7e66d689)
Feb 26 22:38:17 NetworkManager[364]: <info>  [1614379097.7333] device (wlp1s0): Activation: starting connection 'Kozak_5G' (c1026667-77cd-4037-a409-75ce7e66d689)
Feb 26 22:38:17 NetworkManager[364]: <info>  [1614379097.7335] device (wlp1s0): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
Feb 26 22:38:17 NetworkManager[364]: <info>  [1614379097.7341] manager: NetworkManager state is now CONNECTING
Feb 26 22:38:17 NetworkManager[364]: <info>  [1614379097.7356] device (wlp1s0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Feb 26 22:38:17 NetworkManager[364]: <info>  [1614379097.7363] device (wlp1s0): Activation: (wifi) access point 'Kozak_5G' has security, but secrets are required.
Feb 26 22:38:17 NetworkManager[364]: <info>  [1614379097.7363] device (wlp1s0): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed')
Feb 26 22:38:17 NetworkManager[364]: <info>  [1614379097.7371] sup-iface[4fc8c69176f16050,1,wlp1s0]: wps: type pbc start...
Feb 26 22:38:17 NetworkManager[364]: <info>  [1614379097.7414] device (wlp1s0): state change: need-auth -> prepare (reason 'none', sys-iface-state: 'managed')
Feb 26 22:38:17 NetworkManager[364]: <info>  [1614379097.7424] device (wlp1s0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Feb 26 22:38:17 NetworkManager[364]: <info>  [1614379097.7429] device (wlp1s0): Activation: (wifi) connection 'Kozak_5G' has security, and secrets exist.  No new secrets needed.
Feb 26 22:38:17 NetworkManager[364]: <info>  [1614379097.7429] Config: added 'ssid' value 'Kozak_5G'
Feb 26 22:38:17 NetworkManager[364]: <info>  [1614379097.7430] Config: added 'scan_ssid' value '1'
Feb 26 22:38:17 NetworkManager[364]: <info>  [1614379097.7430] Config: added 'bgscan' value 'simple:30:-70:86400'
Feb 26 22:38:17 NetworkManager[364]: <info>  [1614379097.7430] Config: added 'key_mgmt' value 'WPA-PSK WPA-PSK-SHA256 FT-PSK'
Feb 26 22:38:17 NetworkManager[364]: <info>  [1614379097.7430] Config: added 'auth_alg' value 'OPEN'
Feb 26 22:38:17 NetworkManager[364]: <info>  [1614379097.7430] Config: added 'psk' value '<hidden>'
Feb 26 22:38:17 wpa_supplicant[496]: wlp1s0: SME: Trying to authenticate with 88:c3:97:e0:4a:dd (SSID='Kozak_5G' freq=5180 MHz)
Feb 26 22:38:17 kernel: wlp1s0: authenticate with 88:c3:97:e0:4a:dd
Feb 26 22:38:17 NetworkManager[364]: <info>  [1614379097.7647] device (wlp1s0): supplicant interface state: disconnected -> authenticating
Feb 26 22:38:17 NetworkManager[364]: <info>  [1614379097.7647] device (p2p-dev-wlp1s0): supplicant management interface state: disconnected -> authenticating
Feb 26 22:38:17 kernel: wlp1s0: send auth to 88:c3:97:e0:4a:dd (try 1/3)
Feb 26 22:38:17 wpa_supplicant[496]: wlp1s0: Trying to associate with 88:c3:97:e0:4a:dd (SSID='Kozak_5G' freq=5180 MHz)
Feb 26 22:38:17 kernel: wlp1s0: authenticated
Feb 26 22:38:17 kernel: wlp1s0: associate with 88:c3:97:e0:4a:dd (try 1/3)
Feb 26 22:38:17 NetworkManager[364]: <info>  [1614379097.8556] device (wlp1s0): supplicant interface state: authenticating -> associating
Feb 26 22:38:17 NetworkManager[364]: <info>  [1614379097.8556] device (p2p-dev-wlp1s0): supplicant management interface state: authenticating -> associating
Feb 26 22:38:17 kernel: wlp1s0: RX AssocResp from 88:c3:97:e0:4a:dd (capab=0x31 status=0 aid=3)
Feb 26 22:38:17 kernel: wlp1s0: associated
Feb 26 22:38:17 wpa_supplicant[496]: wlp1s0: Associated with 88:c3:97:e0:4a:dd
Feb 26 22:38:17 wpa_supplicant[496]: wlp1s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
Feb 26 22:38:17 NetworkManager[364]: <info>  [1614379097.8922] device (wlp1s0): supplicant interface state: associating -> associated
Feb 26 22:38:17 NetworkManager[364]: <info>  [1614379097.8923] device (p2p-dev-wlp1s0): supplicant management interface state: associating -> associated
Feb 26 22:38:18 kernel: [drm] Fence fallback timer expired on ring sdma0
Feb 26 22:38:18 kernel: [drm] Fence fallback timer expired on ring sdma0
Feb 26 22:38:18 systemd[1]: systemd-rfkill.service: Succeeded.
Feb 26 22:38:18 audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 26 22:38:18 kernel: audit: type=1131 audit(1614379098.879:91): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 26 22:38:19 NetworkManager[364]: <info>  [1614379099.0242] device (wlp1s0): supplicant interface state: associated -> 4way_handshake
Feb 26 22:38:19 NetworkManager[364]: <info>  [1614379099.0243] device (p2p-dev-wlp1s0): supplicant management interface state: associated -> 4way_handshake
Feb 26 22:38:19 wpa_supplicant[496]: wlp1s0: WPA: Key negotiation completed with 88:c3:97:e0:4a:dd [PTK=CCMP GTK=TKIP]
Feb 26 22:38:19 wpa_supplicant[496]: wlp1s0: CTRL-EVENT-CONNECTED - Connection to 88:c3:97:e0:4a:dd completed [id=0 id_str=]
Feb 26 22:38:19 kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlp1s0: link becomes ready
Feb 26 22:38:19 wpa_supplicant[496]: wlp1s0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-57 noise=9999 txrate=234000
Feb 26 22:38:19 NetworkManager[364]: <info>  [1614379099.0517] device (wlp1s0): supplicant interface state: 4way_handshake -> completed
Feb 26 22:38:19 NetworkManager[364]: <info>  [1614379099.0517] device (wlp1s0): Activation: (wifi) Stage 2 of 5 (Device Configure) successful. Connected to wireless network "Kozak_5G"
Feb 26 22:38:19 NetworkManager[364]: <info>  [1614379099.0518] device (p2p-dev-wlp1s0): supplicant management interface state: 4way_handshake -> completed
Feb 26 22:38:19 NetworkManager[364]: <info>  [1614379099.0520] device (wlp1s0): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed')
Feb 26 22:38:19 NetworkManager[364]: <info>  [1614379099.0526] dhcp4 (wlp1s0): activation: beginning transaction (timeout in 45 seconds)
Feb 26 22:38:19 kernel: [drm] Fence fallback timer expired on ring sdma0

Offline

#2 2021-02-27 12:59:40

rudolf_schlepke
Member
From: Ukraine
Registered: 2021-02-27
Posts: 20
Website

Re: Hibernation not working with Ryzen 4700U [linux-5.11]

Laptop does not support S3 suspend, only S2. Settings for logind.conf and sleep.conf:

/etc/systemd/logind.conf

[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#UserStopDelaySec=10
HandlePowerKey=hibernate
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
HandleLidSwitch=suspend-then-hibernate
HandleLidSwitchExternalPower=suspend-then-hibernate
#HandleLidSwitchDocked=ignore
#HandleRebootKey=reboot
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#RebootKeyIgnoreInhibited=no
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RuntimeDirectoryInodes=400k
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192

/etc/systemd/sleep.conf

[Sleep]
#AllowSuspend=yes
#AllowHibernation=yes
#AllowSuspendThenHibernate=yes
AllowHybridSleep=no
#SuspendMode=
#SuspendState=mem standby freeze
#HibernateMode=platform shutdown
#HibernateState=disk
#HybridSleepMode=suspend platform shutdown
#HybridSleepState=disk
HibernateDelaySec=30min

Offline

#3 2021-02-28 08:00:42

quite
Member
Registered: 2013-02-15
Posts: 24

Re: Hibernation not working with Ryzen 4700U [linux-5.11]

Same here regarding hibernate and downgrading. Thinkpad T14s with Ryzen 4750U.

Offline

#4 2021-03-06 15:49:21

nunopenim
Member
From: Portugal
Registered: 2021-03-06
Posts: 22

Re: Hibernation not working with Ryzen 4700U [linux-5.11]

Having the same issue using a Vivobook S15, with the Ryzen 4700U on a (very) fresh Arch install.

I used Arch before, and when I installed it this afternoon, it was on 5.11.2, with no possibility to downgrade. Ended up installing linux-lts kernel instead, which solved the issue, if any user in the same situation as me and that cannot downgrade.


Check my GitHub here: github.com/nunopenim

I apologize in advance if some of my comments or replies don't make any sense, English is not my main language, although I try! Thank you for understanding, you can also point out stuff I misspell or just doesn't sound right.

Offline

#5 2021-03-07 20:13:47

rudolf_schlepke
Member
From: Ukraine
Registered: 2021-02-27
Posts: 20
Website

Re: Hibernation not working with Ryzen 4700U [linux-5.11]

nunopenim wrote:

Having the same issue using a Vivobook S15, with the Ryzen 4700U on a (very) fresh Arch install.

I used Arch before, and when I installed it this afternoon, it was on 5.11.2, with no possibility to downgrade. Ended up installing linux-lts kernel instead, which solved the issue, if any user in the same situation as me and that cannot downgrade.

Yes, using LTS kernel also resolves the issue. Still having an issue with resume from suspend on my VivoBook S14 though, but that manifests on both kernels.

Offline

#6 2021-03-08 11:48:09

nunopenim
Member
From: Portugal
Registered: 2021-03-06
Posts: 22

Re: Hibernation not working with Ryzen 4700U [linux-5.11]

rudolf_schlepke wrote:

Yes, using LTS kernel also resolves the issue. Still having an issue with resume from suspend on my VivoBook S14 though, but that manifests on both kernels.

In the S15, this is caused by only having s2idle sleep, and no longer deep sleep (S3). It was supposedly better implemented in 5.11 (due to some AMD patches introduced), but I don't think it was that different.


Check my GitHub here: github.com/nunopenim

I apologize in advance if some of my comments or replies don't make any sense, English is not my main language, although I try! Thank you for understanding, you can also point out stuff I misspell or just doesn't sound right.

Offline

#7 2021-03-09 17:17:03

johnjohnlys
Member
From: Taiwan
Registered: 2020-04-28
Posts: 11

Re: Hibernation not working with Ryzen 4700U [linux-5.11]

Having a Swift 3 4700U, S3 worked perfectly until 5.10.10 (enabled with ACPI hack). In 5.11, S3 100% fails, so I partially downgrade to 5.10.10 from pacman cache, everything works fine now.

Offline

#8 2021-03-09 18:00:29

nunopenim
Member
From: Portugal
Registered: 2021-03-06
Posts: 22

Re: Hibernation not working with Ryzen 4700U [linux-5.11]

johnjohnlys wrote:

Having a Swift 3 4700U, S3 worked perfectly until 5.10.10 (enabled with ACPI hack). In 5.11, S3 100% fails, so I partially downgrade to 5.10.10 from pacman cache, everything works fine now.

What about S4 in 5.11? It's our main issue here. Also, pardon me for my ignorance, but what is this ACPI hack you are talking about? I am wondering if I could use it with my laptop that only supports AMD's s2idle


Check my GitHub here: github.com/nunopenim

I apologize in advance if some of my comments or replies don't make any sense, English is not my main language, although I try! Thank you for understanding, you can also point out stuff I misspell or just doesn't sound right.

Offline

#9 2021-03-09 21:55:47

rudolf_schlepke
Member
From: Ukraine
Registered: 2021-02-27
Posts: 20
Website

Re: Hibernation not working with Ryzen 4700U [linux-5.11]

nunopenim wrote:

Also, pardon me for my ignorance, but what is this ACPI hack you are talking about? I am wondering if I could use it with my laptop that only supports AMD's s2idle

This is mostly Lenovo+Ubuntu related, but you can check this out: https://github.com/jrandiny/yoga-slim7-ubuntu#suspend

Offline

#10 2021-03-12 07:48:08

nunopenim
Member
From: Portugal
Registered: 2021-03-06
Posts: 22

Re: Hibernation not working with Ryzen 4700U [linux-5.11]

rudolf_schlepke wrote:

This is mostly Lenovo+Ubuntu related, but you can check this out: https://github.com/jrandiny/yoga-slim7-ubuntu#suspend

Oh I see... Thank you, seems kinda useful.


Check my GitHub here: github.com/nunopenim

I apologize in advance if some of my comments or replies don't make any sense, English is not my main language, although I try! Thank you for understanding, you can also point out stuff I misspell or just doesn't sound right.

Offline

#11 2021-03-13 15:23:58

strikingcheesecake
Member
From: South
Registered: 2021-03-13
Posts: 3

Re: Hibernation not working with Ryzen 4700U [linux-5.11]

quite wrote:

Same here regarding hibernate and downgrading. Thinkpad T14s with Ryzen 4750U.

Same issues for me. Thinkpad P14s , Ryzen 4750U. Happens on Kernel 5.10 - lts , and 5.11 .


-------------------------
I'm from the Sun OS era...:) |A mother | semi-geek
Currently re-learning Linux
__________________

Offline

#12 2021-03-21 22:06:21

rudolf_schlepke
Member
From: Ukraine
Registered: 2021-02-27
Posts: 20
Website

Re: Hibernation not working with Ryzen 4700U [linux-5.11]

Tested on 5.11.7 - the issue persists.
Errors are a bit different now:

Mar 21 21:46:03 systemd[1]: Starting Hibernate...
Mar 21 21:46:03 systemd-sleep[2239]: Suspending system...
Mar 21 21:46:03 kernel: PM: hibernation: hibernation entry
Mar 21 21:46:13 kernel: Filesystems sync: 0.003 seconds
Mar 21 21:46:13 kernel: Freezing user space processes ... (elapsed 0.002 seconds) done.
Mar 21 21:46:13 kernel: OOM killer disabled.
Mar 21 21:46:13 kernel: PM: hibernation: Marking nosave pages: [mem 0x00000000-0x00000fff]
Mar 21 21:46:13 kernel: PM: hibernation: Marking nosave pages: [mem 0x000a0000-0x000fffff]
Mar 21 21:46:13 kernel: PM: hibernation: Marking nosave pages: [mem 0x09d02000-0x09ffffff]
Mar 21 21:46:13 kernel: PM: hibernation: Marking nosave pages: [mem 0x0a200000-0x0a20ffff]
Mar 21 21:46:13 kernel: PM: hibernation: Marking nosave pages: [mem 0xc85ed000-0xc861bfff]
Mar 21 21:46:13 kernel: PM: hibernation: Marking nosave pages: [mem 0xca626000-0xca626fff]
Mar 21 21:46:13 kernel: PM: hibernation: Marking nosave pages: [mem 0xcb270000-0xcd1fefff]
Mar 21 21:46:13 kernel: PM: hibernation: Marking nosave pages: [mem 0xce000000-0xffffffff]
Mar 21 21:46:13 kernel: PM: hibernation: Basic memory bitmaps created
Mar 21 21:46:13 kernel: PM: hibernation: Preallocating image memory
Mar 21 21:46:13 kernel: PM: hibernation: Allocated 717313 pages for snapshot
Mar 21 21:46:13 kernel: PM: hibernation: Allocated 2869252 kbytes in 0.79 seconds (3631.96 MB/s)
Mar 21 21:46:13 kernel: Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Mar 21 21:46:13 kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Mar 21 21:46:13 kernel: amdgpu: cp queue preemption time out.
Mar 21 21:46:13 kernel: amdgpu 0000:03:00.0: amdgpu: MODE2 reset
Mar 21 21:46:13 kernel: amdgpu 0000:03:00.0: amdgpu: failed send message: GfxDeviceDriverReset (30)         param: 0x00000002 response 0xffffffc2
Mar 21 21:46:13 kernel: amdgpu 0000:03:00.0: amdgpu: Mode2 reset failed!
Mar 21 21:46:13 kernel: PM: pci_pm_freeze(): amdgpu_pmops_freeze+0x0/0x40 [amdgpu] returns -62
Mar 21 21:46:13 kernel: PM: dpm_run_callback(): pci_pm_freeze+0x0/0xb0 returns -62
Mar 21 21:46:13 kernel: PM: Device 0000:03:00.0 failed to freeze async: error -62
Mar 21 21:46:13 kernel: usb usb1: root hub lost power or was reset
Mar 21 21:46:13 kernel: usb usb3: root hub lost power or was reset
Mar 21 21:46:13 kernel: usb usb2: root hub lost power or was reset
Mar 21 21:46:13 kernel: usb usb4: root hub lost power or was reset
Mar 21 21:46:13 kernel: pci 0000:00:00.2: can't derive routing for PCI INT A
Mar 21 21:46:13 kernel: pci 0000:00:00.2: PCI INT A: no GSI
Mar 21 21:46:13 kernel: nvme nvme0: Shutdown timeout set to 8 seconds
Mar 21 21:46:13 kernel: nvme nvme0: 12/0/0 default/read/poll queues
Mar 21 21:46:13 kernel: ata2: SATA link down (SStatus 0 SControl 300)
Mar 21 21:46:13 kernel: ata1: SATA link down (SStatus 0 SControl 300)
Mar 21 21:46:13 kernel: usb 3-2: reset full-speed USB device number 2 using xhci_hcd
Mar 21 21:46:13 kernel: usb 3-3: reset high-speed USB device number 3 using xhci_hcd
Mar 21 21:46:13 kernel: usb 3-4: reset full-speed USB device number 4 using xhci_hcd
Mar 21 21:46:13 kernel: acpi LNXPOWER:08: Turning OFF
Mar 21 21:46:13 kernel: acpi LNXPOWER:07: Turning OFF
Mar 21 21:46:13 kernel: acpi LNXPOWER:05: Turning OFF
Mar 21 21:46:13 kernel: PM: hibernation: Basic memory bitmaps freed
Mar 21 21:46:13 kernel: OOM killer enabled.
Mar 21 21:46:13 kernel: Restarting tasks ... 
Mar 21 21:46:13 kernel: Bluetooth: hci0: Firmware revision 0.0 build 121 week 7 2021
Mar 21 21:46:13 kernel: done.
Mar 21 21:46:13 kernel: PM: hibernation: hibernation exit
Mar 21 21:46:13 kernel: audit: type=1130 audit(1616363173.379:129): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hibernate comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Mar 21 21:46:13 kernel: audit: type=1130 audit(1616363173.382:130): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Mar 21 21:46:13 kernel: audit: type=1131 audit(1616363173.385:131): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Mar 21 21:46:13 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hibernate comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Mar 21 21:46:13 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Mar 21 21:46:13 audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Mar 21 21:46:13 rtkit-daemon[580]: The canary thread is apparently starving. Taking action.
Mar 21 21:46:13 upowerd[576]: treating change event as add on /sys/devices/pci0000:00/0000:00:08.1/0000:03:00.4/usb3/3-2
Mar 21 21:46:13 rtkit-daemon[580]: Demoting known real-time threads.
Mar 21 21:46:13 systemd[1]: Starting Load/Save RF Kill Switch Status...
Mar 21 21:46:13 rtkit-daemon[580]: Successfully demoted thread 1039 of process 967.
Mar 21 21:46:13 systemd[1]: Stopped target Bluetooth.
Mar 21 21:46:13 rtkit-daemon[580]: Successfully demoted thread 1030 of process 967.
Mar 21 21:46:13 systemd-sleep[2239]: Failed to suspend system. System resumed again: Timer expired
Mar 21 21:46:13 rtkit-daemon[580]: Successfully demoted thread 967 of process 967.
Mar 21 21:46:13 upowerd[576]: treating change event as add on /sys/devices/pci0000:00/0000:00:08.1/0000:03:00.4/usb3/3-2
Mar 21 21:46:13 rtkit-daemon[580]: Demoted 3 threads.
Mar 21 21:46:13 systemd[1]: systemd-hibernate.service: Main process exited, code=exited, status=1/FAILURE
Mar 21 21:46:13 bluetoothd[475]: Endpoint unregistered: sender=:1.59 path=/MediaEndpoint/A2DPSink/sbc
Mar 21 21:46:13 systemd[1]: systemd-hibernate.service: Failed with result 'exit-code'.
Mar 21 21:46:13 bluetoothd[475]: Endpoint unregistered: sender=:1.59 path=/MediaEndpoint/A2DPSource/sbc
Mar 21 21:46:13 systemd[1]: Failed to start Hibernate.
Mar 21 21:46:13 systemd[1]: Dependency failed for Hibernate.
Mar 21 21:46:13 systemd[1]: hibernate.target: Job hibernate.target/start failed with result 'dependency'.
Mar 21 21:46:13 systemd[1]: Reached target Bluetooth.
Mar 21 21:46:13 systemd[1]: Stopped target Sleep.
Mar 21 21:46:13 systemd[807]: Reached target Bluetooth.
Mar 21 21:46:13 systemd[1]: Started Load/Save RF Kill Switch Status.
Mar 21 21:46:13 systemd-logind[374]: Operation 'sleep' finished.
Mar 21 21:46:13 upowerd[576]: treating change event as add on /sys/devices/pci0000:00/0000:00:08.1/0000:03:00.4/usb3/3-4
Mar 21 21:46:13 systemd[1]: NetworkManager-dispatcher.service: Succeeded.
Mar 21 21:46:13 NetworkManager[372]: <info>  [1616363173.3891] manager: sleep: wake requested (sleeping: yes  enabled: yes)
Mar 21 21:46:13 NetworkManager[372]: <info>  [1616363173.3892] device (wlp1s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Mar 21 21:46:13 NetworkManager[372]: <info>  [1616363173.3904] device (p2p-dev-wlp1s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Mar 21 21:46:13 NetworkManager[372]: <info>  [1616363173.3908] manager: NetworkManager state is now DISCONNECTED
Mar 21 21:46:13 google-chrome.desktop[1395]: [1388:1409:0321/234613.404990:ERROR:connection_factory_impl.cc(428)] Failed to connect to MCS endpoint with error -106
Mar 21 21:46:13 upowerd[576]: treating change event as add on /sys/devices/pci0000:00/0000:00:08.1/0000:03:00.4/usb3/3-4
Mar 21 21:46:13 NetworkManager[372]: <info>  [1616363173.4553] device (wlp1s0): supplicant interface state: internal-starting -> disconnected
Mar 21 21:46:13 NetworkManager[372]: <info>  [1616363173.4554] device (p2p-dev-wlp1s0): state change: unavailable -> unmanaged (reason 'removed', sys-iface-state: 'removed')
Mar 21 21:46:13 NetworkManager[372]: <info>  [1616363173.4560] Wi-Fi P2P device controlled by interface wlp1s0 created
Mar 21 21:46:13 NetworkManager[372]: <info>  [1616363173.4564] manager: (p2p-dev-wlp1s0): new 802.11 Wi-Fi P2P device (/org/freedesktop/NetworkManager/Devices/4)
Mar 21 21:46:13 NetworkManager[372]: <info>  [1616363173.4566] device (p2p-dev-wlp1s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Mar 21 21:46:13 NetworkManager[372]: <info>  [1616363173.4573] device (wlp1s0): state change: unavailable -> disconnected (reason 'supplicant-available', sys-iface-state: 'managed')
Mar 21 21:46:13 NetworkManager[372]: <info>  [1616363173.4580] device (p2p-dev-wlp1s0): state change: unavailable -> disconnected (reason 'none', sys-iface-state: 'managed')
Mar 21 21:46:13 NetworkManager[372]: <warn>  [1616363173.4668] sup-iface[2e6bde8a5dc36ff6,1,wlp1s0]: call-p2p-cancel: failed with P2P cancel failed
Mar 21 21:46:13 bluetoothd[475]: Endpoint registered: sender=:1.59 path=/MediaEndpoint/A2DPSink/sbc
Mar 21 21:46:13 bluetoothd[475]: Endpoint registered: sender=:1.59 path=/MediaEndpoint/A2DPSource/sbc
Mar 21 21:46:13 kernel: [drm] Fence fallback timer expired on ring sdma0

Offline

#13 2021-03-28 15:28:25

lil_tux
Member
Registered: 2021-03-28
Posts: 1

Re: Hibernation not working with Ryzen 4700U [linux-5.11]

Hello there, I'm probably in the same boat with my 4700U being S3 incompatible since 5.11 (including 5.12 rcs).

There're IMHO several different issues in this thread: Those where hibernation is broken. Those where suspend/resume did in fact work with 5.10 (and before) and not anymore with 5.11 (like mine) and those that probably never worked, not even with 5.10 (like strikingcheesecake's machine). And of those that had working suspend with 5.10 it's still the question if S0ix or S3 was used. Thus it would be needed to know what `cat /sys/power/mem_sleep` brings up (the default will be denoted in brackets).

Personally I tried S0ix last year and it drained the battery almost completely in about 4 hours. I went for patching the ACPI table to enable the S3 support (like johnjohnlys), which then worked flawlessly. It fails with 5.11, as this now defaults to doing 's2idle' if it is supported, even if 'deep' mem_sleep is selected (`cat /sys/power/mem_sleep` -> 's2idle [deep]'), which then will hang the GPU and trigger its reset (that doesn't recover until restart). I opened a drm/amd issue for the problem with _S3_ breakage in 5.11 [1]. Please refrain from using it for non-S3 symptoms. As a workaround one can use the attached patch to enable checking for configured S3 (tested) or probably remove S0ix-Support from the ACPI table (untested but should work according to the code).

Heiko

[1] https://gitlab.freedesktop.org/drm/amd/-/issues/1553

Offline

#14 2021-03-31 14:49:48

nunopenim
Member
From: Portugal
Registered: 2021-03-06
Posts: 22

Re: Hibernation not working with Ryzen 4700U [linux-5.11]

rudolf_schlepke wrote:

Tested on 5.11.7 - the issue persists.
Errors are a bit different now:

Interesting, with 5.11.8 I shared the amdgpu messages and some of the systemd messages too. As right now I need most stability, I have not yet tested 5.11.10 or 5.11.11 (if it already is out). I stayed on the 5.10-LTS kernel for now. Hopefully 5.12 reverts what 5.11 had that broke this (I assume some AMD patch, no clue...). Maybe I am also doing things wrong and there is a newer way for kernel 5.11.


Check my GitHub here: github.com/nunopenim

I apologize in advance if some of my comments or replies don't make any sense, English is not my main language, although I try! Thank you for understanding, you can also point out stuff I misspell or just doesn't sound right.

Offline

#15 2021-04-05 19:08:43

nunopenim
Member
From: Portugal
Registered: 2021-03-06
Posts: 22

Re: Hibernation not working with Ryzen 4700U [linux-5.11]

Okay, as of today, I finally decided to test 5.11.11 and hibernation is working fine. No lags or anything after a reboot. I still did not test s2idle, but I have lived without it before, so it doesn't really bother me that it doesn't work. Current logs show way less stuff, compared to rudolf's 5.11.7 log:

Apr 05 20:02:34 nuno-laptop gnome-shell[1063]: An active wireless connection, in infrastructure mode, involves no access point?
Apr 05 20:02:36 nuno-laptop gnome-shell[1418]: [1411:1433:0405/200236.419279:ERROR:connection_factory_impl.cc(428)] Failed to connect to MCS endpoint with error -106
Apr 05 20:02:38 nuno-laptop gsd-usb-protect[1247]: Error calling USBGuard DBus to change the protection after a screensaver event: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.usbguard1 was not provided by any .service files
Apr 05 20:03:20 nuno-laptop /usr/lib/gdm-x-session[945]: (II) AMDGPU(0): EDID vendor "NCP", prod id 70
Apr 05 20:03:20 nuno-laptop /usr/lib/gdm-x-session[945]: (II) AMDGPU(0): Printing DDC gathered Modelines:
Apr 05 20:03:20 nuno-laptop /usr/lib/gdm-x-session[945]: (II) AMDGPU(0): Modeline "1920x1080"x0.0  138.50  1920 1968 2000 2080  1080 1083 1088 1111 +hsync -vsync (66.6 kHz eP)
Apr 05 20:03:20 nuno-laptop systemd[929]: Stopped target Bluetooth.
Apr 05 20:03:20 nuno-laptop systemd[929]: Reached target Bluetooth.
Apr 05 20:03:20 nuno-laptop gnome-shell[1063]: Removing a network device that was not added
Apr 05 20:03:24 nuno-laptop dbus-daemon[964]: [session uid=1000 pid=964] Activating service name='org.freedesktop.FileManager1' requested by ':1.18' (uid=1000 pid=1063 comm="/usr/bin/gnome-shell ")
Apr 05 20:03:24 nuno-laptop org.freedesktop.FileManager1[2768]: Initializing nautilus-dropbox 2020.03.04
Apr 05 20:03:24 nuno-laptop dbus-daemon[964]: [session uid=1000 pid=964] Successfully activated service 'org.freedesktop.FileManager1'
Apr 05 20:03:24 nuno-laptop gnome-shell[1063]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a).
Apr 05 20:03:24 nuno-laptop gnome-shell[1063]: Window manager warning: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11).
Apr 05 20:03:24 nuno-laptop gnome-shell[1063]: Window manager warning: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12).
Apr 05 20:03:24 nuno-laptop gnome-shell[1063]: Window manager warning: Overwriting existing binding of keysym 32 with keysym 32 (keycode b).
Apr 05 20:03:24 nuno-laptop gnome-shell[1063]: Window manager warning: Overwriting existing binding of keysym 33 with keysym 33 (keycode c).
Apr 05 20:03:24 nuno-laptop gnome-shell[1063]: Window manager warning: Overwriting existing binding of keysym 34 with keysym 34 (keycode d).
Apr 05 20:03:24 nuno-laptop gnome-shell[1063]: Window manager warning: Overwriting existing binding of keysym 35 with keysym 35 (keycode e).
Apr 05 20:03:24 nuno-laptop gnome-shell[1063]: Window manager warning: Overwriting existing binding of keysym 36 with keysym 36 (keycode f).
Apr 05 20:03:24 nuno-laptop gnome-shell[1063]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10).
Apr 05 20:03:24 nuno-laptop gsd-usb-protect[1247]: Error calling USBGuard DBus to change the protection after a screensaver event: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.usbguard1 was not provided by any .service files
Apr 05 20:03:40 nuno-laptop gnome-shell[1418]: [1411:1411:0405/200340.603789:ERROR:page_load_metrics_update_dispatcher.cc(170)] Invalid first_paint 0.573 s for first_image_paint 0.557 s
Apr 05 20:03:46 nuno-laptop gnome-shell[1418]: [1411:1411:0405/200346.424590:ERROR:page_load_metrics_update_dispatcher.cc(170)] Invalid first_paint 0.573 s for first_image_paint 0.557 s
Apr 05 20:03:47 nuno-laptop gnome-shell[1418]: [1411:1411:0405/200347.495718:ERROR:page_load_metrics_update_dispatcher.cc(170)] Invalid first_paint 0.573 s for first_image_paint 0.557 s
Apr 05 20:03:49 nuno-laptop gnome-shell[1418]: [1411:1411:0405/200349.422672:ERROR:page_load_metrics_update_dispatcher.cc(170)] Invalid first_paint 0.573 s for first_image_paint 0.557 s

But nothing to alarming to me besides the AMDGPU stuff and USB stuff being highlighted in yellow in the journal command. Will test s2idle and report back!

EDIT: Interesting, s2idle still does not work, but this time it came back from "sleep" and is working fine. No lags or anything. Log is similar to my hibernation log, which is strange:

Apr 05 20:08:54 nuno-laptop gnome-shell[1063]: An active wireless connection, in infrastructure mode, involves no access point?
Apr 05 20:08:56 nuno-laptop gnome-shell[1418]: [1411:1433:0405/200856.811500:ERROR:connection_factory_impl.cc(428)] Failed to connect to MCS endpoint with error -106
Apr 05 20:08:59 nuno-laptop gsd-usb-protect[1247]: Error calling USBGuard DBus to change the protection after a screensaver event: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.usbguard1 was not provided by any .service files
Apr 05 20:09:36 nuno-laptop /usr/lib/gdm-x-session[945]: (II) event2  - AT Translated Set 2 keyboard: SYN_DROPPED event - some input events have been lost.
Apr 05 20:09:36 nuno-laptop /usr/lib/gdm-x-session[945]: (II) AMDGPU(0): EDID vendor "NCP", prod id 70
Apr 05 20:09:36 nuno-laptop /usr/lib/gdm-x-session[945]: (II) AMDGPU(0): Printing DDC gathered Modelines:
Apr 05 20:09:36 nuno-laptop /usr/lib/gdm-x-session[945]: (II) AMDGPU(0): Modeline "1920x1080"x0.0  138.50  1920 1968 2000 2080  1080 1083 1088 1111 +hsync -vsync (66.6 kHz eP)
Apr 05 20:09:36 nuno-laptop gnome-shell[1063]: Removing a network device that was not added
Apr 05 20:09:41 nuno-laptop gnome-shell[1063]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a).
Apr 05 20:09:41 nuno-laptop gnome-shell[1063]: Window manager warning: Overwriting existing binding of keysym 32 with keysym 32 (keycode b).
Apr 05 20:09:41 nuno-laptop gnome-shell[1063]: Window manager warning: Overwriting existing binding of keysym 33 with keysym 33 (keycode c).
Apr 05 20:09:41 nuno-laptop gnome-shell[1063]: Window manager warning: Overwriting existing binding of keysym 34 with keysym 34 (keycode d).
Apr 05 20:09:41 nuno-laptop gnome-shell[1063]: Window manager warning: Overwriting existing binding of keysym 35 with keysym 35 (keycode e).
Apr 05 20:09:41 nuno-laptop gnome-shell[1063]: Window manager warning: Overwriting existing binding of keysym 36 with keysym 36 (keycode f).
Apr 05 20:09:41 nuno-laptop gnome-shell[1063]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10).
Apr 05 20:09:41 nuno-laptop gnome-shell[1063]: Window manager warning: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11).
Apr 05 20:09:41 nuno-laptop gnome-shell[1063]: Window manager warning: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12).
Apr 05 20:09:41 nuno-laptop gsd-usb-protect[1247]: Error calling USBGuard DBus to change the protection after a screensaver event: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.usbguard1 was not provided by any .service files

Anyway, suspend not working is not a deal breaker to me, as hibernation is fine.

Last edited by nunopenim (2021-04-05 19:13:03)


Check my GitHub here: github.com/nunopenim

I apologize in advance if some of my comments or replies don't make any sense, English is not my main language, although I try! Thank you for understanding, you can also point out stuff I misspell or just doesn't sound right.

Offline

#16 2021-04-08 02:31:25

DeletedUser210604
Banned
Registered: 2021-04-07
Posts: 5

Re: Hibernation not working with Ryzen 4700U [linux-5.11]

placeholder

Last edited by DeletedUser210604 (2021-05-14 12:44:24)

Offline

#17 2021-04-08 16:37:01

nunopenim
Member
From: Portugal
Registered: 2021-03-06
Posts: 22

Re: Hibernation not working with Ryzen 4700U [linux-5.11]

temp-cb wrote:

I'm facing a similar issue - https://bbs.archlinux.org/viewtopic.php?id=265276

Ever since I upgraded to 5.11, I'm unable to suspend properly. The laptop goes into suspend, but when I wake it up, the screen shows strange static colors and is totally unresponsive. I have to force shutdown the laptop to get it working again.

This was my issue with hibernation, but everything seems fine now. I assume some fix that works on some models and others it doesn't. Maybe, if you have a compatible machine, you could try some ACPI patches that were linked here in a few posts above

Last edited by nunopenim (2021-04-08 16:38:12)


Check my GitHub here: github.com/nunopenim

I apologize in advance if some of my comments or replies don't make any sense, English is not my main language, although I try! Thank you for understanding, you can also point out stuff I misspell or just doesn't sound right.

Offline

#18 2021-04-13 13:15:51

korikori
Member
Registered: 2020-09-30
Posts: 10

Re: Hibernation not working with Ryzen 4700U [linux-5.11]

There are several topics dealing with similar issues, so I apologize if you've already read this:

The issue with resuming from suspend on 5.11.x and later kernels is discussed here: https://bugs.archlinux.org/task/69764. The most common workaround has been to fall back to linux-lts. There is a patch in that bug report that I can confirm works, but requires kernel compilaton.

Unfortunately, in addition to this bug, the most recent 5.11 and 5.10 versions all suffer from another issue - the S3 sleep mode is not available at all (even with the ACPI tables patch).  I downgraded to 5.10.25 via https://archive.archlinux.org/packages/l/linux-lts/ to resolve this.

Offline

#19 2021-07-12 16:18:31

LinuxFan84
Member
Registered: 2021-07-12
Posts: 6

Re: Hibernation not working with Ryzen 4700U [linux-5.11]

I got the same problem. Hibernation isn't working with Ryzen 7 4700U (Lenovo Ideapad 5 15ARE05) because of some problem with restoring the AMDGPU. I have tried several distros. As its a kernel problem there is no difference.

The sleep mode S3 is available by default without patching anything. So this is fine. I tried several kernels. 5.10 lts 5.11, xanmod, liquorix ect. meanwhile im on new released 5.13 but unfortunately all of them fail.
They laptop turns off but once i start it again there is a problem with the AMDGPU -> error ring sdma0, after this error the kernel tries to reset the gpu but fails and suddently stucks. Only a hard reset is possible.

I had chance to make hibernation run by using Debian Bullseye (distro doesnt matter) with packages: tuned, preload and tuned profile -> throughput. With this config the state got saved and on starting, it really started. All was fine for a while. I recognised up to 100 kthread kworker unbound entries on ps aux immediately after starting. Sometimes there was a problem with the nvme0 -> it suddently got remounted with read-only because of an error. Sometimes there was another error -> on every command i received some message regarding missing libs LD_PRELOAD or something like that.

My kernel parameter line is: "quiet ipv6.disable=1 apparmor=0 resume=/dev/mapper/hostname--vg-swap usbcore.autosuspend=-1 nvme_core.default_ps_max_latency_us=5500 snd_rn_pci_acp3x.dmic_acpi_check=0 acpiphp.disable=1 acpi_backlight=vendor"

Offline

#20 2021-07-12 19:25:02

korikori
Member
Registered: 2020-09-30
Posts: 10

Re: Hibernation not working with Ryzen 4700U [linux-5.11]

Hi LinuxFan84, check out this thread and this one reply specifically: https://bbs.archlinux.org/viewtopic.php … 3#p1979473 It's a great writeup on the status of the problem. As far as I understand it, we are waiting on a lot of patches about this to be merged in 5.14, but this thread has PKGBUILDs and even compiled kernels with the patches applied that you can test now.

Offline

Board footer

Powered by FluxBB