You are not logged in.

#1 2025-01-21 10:01:11

str1ngd
Member
Registered: 2021-07-11
Posts: 27

Arch Linux freezes for ~20 (?) seconds after waking from suspension

I've had this issue for a while now and it seems to originate since I switched to KDE. Sometimes, when I close my laptop lid and open it, the laptop is frozen for what seems to be about 20 seconds. After this happens, it will freeze every time I wake it after suspension till I restart my system. The dmesg is pretty interesting as it seems to run out of memory? There is a 20 second difference between messages and it mentions how it started the OOM killer.

[  614.657963] ACPI: EC: interrupt blocked
[  666.862801] ACPI: EC: interrupt unblocked
[  666.913660] [drm] PCIE GART of 1024M enabled.
[  666.913675] [drm] PTB located at 0x000000F41FC00000
[  666.913705] amdgpu 0000:04:00.0: amdgpu: SMU is resuming...
[  666.915593] amdgpu 0000:04:00.0: amdgpu: dpm has been disabled
[  666.916759] amdgpu 0000:04:00.0: amdgpu: SMU is resumed successfully!
[  666.946003] nvme nvme0: 16/0/0 default/read/poll queues
[  667.123633] amdgpu 0000:04:00.0: [drm] Alt mode has timed out after 201 ms
[  667.156942] usb 1-3: reset full-speed USB device number 2 using xhci_hcd
[  667.209750] amdgpu 0000:04:00.0: amdgpu: ring gfx uses VM inv eng 0 on hub 0
[  667.209756] amdgpu 0000:04:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0
[  667.209760] amdgpu 0000:04:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0
[  667.209763] amdgpu 0000:04:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 5 on hub 0
[  667.209767] amdgpu 0000:04:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 6 on hub 0
[  667.209770] amdgpu 0000:04:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 7 on hub 0
[  667.209772] amdgpu 0000:04:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 8 on hub 0
[  667.209775] amdgpu 0000:04:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 9 on hub 0
[  667.209777] amdgpu 0000:04:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 10 on hub 0
[  667.209780] amdgpu 0000:04:00.0: amdgpu: ring kiq_0.2.1.0 uses VM inv eng 11 on hub 0
[  667.209782] amdgpu 0000:04:00.0: amdgpu: ring sdma0 uses VM inv eng 0 on hub 8
[  667.209784] amdgpu 0000:04:00.0: amdgpu: ring vcn_dec uses VM inv eng 1 on hub 8
[  667.209787] amdgpu 0000:04:00.0: amdgpu: ring vcn_enc0 uses VM inv eng 4 on hub 8
[  667.209789] amdgpu 0000:04:00.0: amdgpu: ring vcn_enc1 uses VM inv eng 5 on hub 8
[  667.209791] amdgpu 0000:04:00.0: amdgpu: ring jpeg_dec uses VM inv eng 6 on hub 8
[  686.915396] OOM killer enabled.
[  686.915403] Restarting tasks ... done.
[  686.916374] random: crng reseeded on system resumption
[  686.917408] PM: suspend exit

Offline

#2 2025-01-21 22:16:02

seth
Member
Registered: 2012-09-03
Posts: 60,828

Re: Arch Linux freezes for ~20 (?) seconds after waking from suspension

The OOM killer isn't started (or triggered) but enabled - that's normal for S2/3 cycles.


25s would be the dbus timeout, but it's more likely that the kwin compositor (wayland or X11? Does it matter) loses its textures for vram decay (though amdgpu should™ store them automatically and if there's an nvidia GPU that's now enabled by default as well)
Please post your complete system journal for a boot covering such stalls:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

If you're running KDE on X11, try to suspend the compositor (SHIFT+Alt+F12) before the suspend.

Do you use a DM? SDDM? GDM?

Offline

#3 2025-01-22 08:34:35

str1ngd
Member
Registered: 2021-07-11
Posts: 27

Re: Arch Linux freezes for ~20 (?) seconds after waking from suspension

seth wrote:

The OOM killer isn't started (or triggered) but enabled - that's normal for S2/3 cycles.


25s would be the dbus timeout, but it's more likely that the kwin compositor (wayland or X11? Does it matter) loses its textures for vram decay (though amdgpu should™ store them automatically and if there's an nvidia GPU that's now enabled by default as well)
Please post your complete system journal for a boot covering such stalls:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

If you're running KDE on X11, try to suspend the compositor (SHIFT+Alt+F12) before the suspend.

Do you use a DM? SDDM? GDM?

Hello thanks for replying. Here are the boot logs from the command you gave me: http://0x0.st/8H5-.txt

I run KDE on Wayland only, and I do use a display manager but it's a very simple one called "emptty" which only runs inside of the tty.

Offline

#4 2025-01-22 15:08:22

seth
Member
Registered: 2012-09-03
Posts: 60,828

Re: Arch Linux freezes for ~20 (?) seconds after waking from suspension

jan 21 11:05:20 per-albin kernel: PM: suspend entry (s2idle)
jan 21 11:10:01 per-albin kernel: PM: suspend exit
jan 21 11:10:57 per-albin kscreenlocker_greet[5120]: qt.qpa.wayland: Could not create EGL surface (EGL error 0x3000)
jan 21 11:10:57 per-albin kscreenlocker_greet[5120]: Failed to write to the pipe: Bad file descriptor.
jan 21 11:10:58 per-albin kwin_wayland[779]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
jan 21 11:10:58 per-albin kwin_wayland[779]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
jan 21 11:10:58 per-albin kwin_wayland[779]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
jan 21 11:10:58 per-albin kwin_wayland[779]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
jan 21 11:10:59 per-albin kwin_wayland[779]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
jan 21 11:10:59 per-albin kwin_wayland[779]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
jan 21 11:10:59 per-albin kwin_wayland[779]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
jan 21 11:10:59 per-albin kwin_wayland[779]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
jan 21 11:10:59 per-albin kwin_wayland[779]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
jan 21 11:10:59 per-albin kwin_wayland[779]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
jan 21 11:10:59 per-albin kwin_wayland[779]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
jan 21 11:10:59 per-albin kwin_wayland[779]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
jan 21 11:10:59 per-albin kwin_wayland[779]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
jan 21 11:10:59 per-albin kwin_wayland[779]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
jan 21 10:50:57 per-albin plasmashell[1039]: qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x0
jan 21 10:52:44 per-albin plasmashell[1039]: qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x0
jan 21 10:56:15 per-albin kscreenlocker_greet[3242]: qt.qpa.wayland: Could not create EGL surface (EGL error 0x3000)
jan 21 10:56:23 per-albin krunner[3486]: qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x0
jan 21 10:56:23 per-albin krunner[3486]: qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x0
jan 21 10:56:23 per-albin krunner[3486]: qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x0
jan 21 11:10:57 per-albin kscreenlocker_greet[5120]: qt.qpa.wayland: Could not create EGL surface (EGL error 0x3000)
jan 21 11:11:17 per-albin plasmashell[1039]: qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x0
jan 21 11:13:45 per-albin plasmashell[1039]: qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x0
jan 21 11:13:45 per-albin plasmashell[1039]: qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x0
jan 21 11:13:45 per-albin plasmashell[1039]: qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x0
jan 21 11:13:45 per-albin plasmashell[1039]: qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x0
jan 21 11:13:45 per-albin plasmashell[1039]: qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x0
jan 21 11:13:45 per-albin plasmashell[1039]: qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x0
jan 21 11:13:45 per-albin plasmashell[1039]: qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x0
jan 21 11:13:47 per-albin plasmashell[1039]: qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x0
jan 21 13:06:41 per-albin kscreenlocker_greet[6553]: qt.qpa.wayland: Could not create EGL surface (EGL error 0x3000)
jan 21 13:11:29 per-albin plasmashell[1039]: qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x0
jan 21 13:12:08 per-albin plasmashell[1039]: qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x0
jan 21 13:26:30 per-albin kscreenlocker_greet[8916]: qt.qpa.wayland: Could not create EGL surface (EGL error 0x3000)
jan 21 13:37:21 per-albin gimp-2.10[10485]: GeglBuffer* gimp_pickable_contiguous_region_by_seed(GimpPickable*, gboolean, gfloat, gboolean, GimpSelectCriterion, gboolean, gint, gint): foo took 0.0968 seconds
jan 21 13:37:21 per-albin gimp-2.10[10485]: using gegl copy
jan 21 15:59:58 per-albin kscreenlocker_greet[11803]: qt.qpa.wayland: Could not create EGL surface (EGL error 0x3000)
jan 22 09:31:05 per-albin kscreenlocker_greet[19087]: qt.qpa.wayland: Could not create EGL surface (EGL error 0x3000)
jan 21 11:04:31 per-albin kwin_wayland[779]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
jan 21 11:04:31 per-albin kwin_wayland[779]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
jan 21 11:04:31 per-albin kwin_wayland[779]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
jan 21 11:04:31 per-albin kwin_wayland[779]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
jan 21 11:04:31 per-albin kwin_wayland[779]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
jan 21 11:04:31 per-albin kwin_wayland[779]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
jan 21 11:04:31 per-albin kwin_wayland[779]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
jan 21 11:05:07 per-albin kwin_wayland[779]: kwin_core: Cannot grant a token to KWin::ClientConnection(0x58adfdec4e70)
jan 21 11:10:01 per-albin kwin_wayland[779]: kwin_wayland_drm: Pageflip timed out! This is a kernel bug
jan 21 11:10:58 per-albin kwin_wayland[779]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
jan 21 11:10:58 per-albin kwin_wayland[779]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
jan 21 11:10:58 per-albin kwin_wayland[779]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
jan 21 11:10:58 per-albin kwin_wayland[779]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)

There's definitively sth. up w/ kwin_wayland and the EGL context.
Do you get the same behavuir w/ KDE/X11?

Next to that there're ongoing issues w/ later mesa release and AMD Vega chips: https://bbs.archlinux.org/viewtopic.php … 1#p2215851

Offline

#5 2025-01-23 13:12:10

str1ngd
Member
Registered: 2021-07-11
Posts: 27

Re: Arch Linux freezes for ~20 (?) seconds after waking from suspension

Hello sorry for the late reply but I have no idea how to reproduce the issue when after I restart, it just kind of appears on it's own as far as I know.
The issue started after I switched to using Wayland sessions on KDE I believe, but if I switch to a X11 session while the issue is present on the system it seems to do the exact same thing. If I do it while logged in a tty, it simply freezes the console and spits out the dmesg (I have my log level to debug on my kernel)

Last edited by str1ngd (2025-01-23 16:06:42)

Offline

#6 2025-01-23 16:04:13

seth
Member
Registered: 2012-09-03
Posts: 60,828

Re: Arch Linux freezes for ~20 (?) seconds after waking from suspension

Please avoid bloating the thread with pointless full quotes, thanks.
(Especially sucht that record funny typos like "behavuir" … roll)

If I do it while logged in a tty

You mean without any GUI login?

Otherwise you might want to try the patched mesa version discussed in the linked thread.

Offline

Board footer

Powered by FluxBB