https://bugs.kde.org/show_bug.cgi?id=480367

            Bug ID: 480367
           Summary: Desktop sluggish/laggy after resume from suspend
    Classification: Plasma
           Product: kwin
           Version: 5.27.10
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kwin-bugs-n...@kde.org
          Reporter: wou...@wouterbijlsma.nl
  Target Milestone: ---

Suspending (sleeping) a Lenovo Yoga Slim 7 (14APU8) laptop with Ryzen 7640S /
Radeon 760M results in poor graphics KDE desktop performance after resuming
from sleep.

Recently s2idle (modern standby) has been fixed for this laptop, which requires
an ACPI SSDT workaround to be able to suspend, see [1] for more information.
The performance problem after suspending appears to be KDE specific and not
related to the original ACPI issue in this laptop.

Description of the problem:
  * Computer functions normal after suspend, but all graphics interactions are
sluggish as if running at ~20fps, even just moving the mouse cursor
  * Occurs both on Wayland and X11
  * Logging out then logging back in or restarting KWin using `kwin --replace`
fixes the problem (but loses all open applications on Wayland). 
  * Gnome on the same machine does not exhibit this problem, suspends/resumes
just fine
  * No obvious CPU hogging processes are seen after suspend, also laptop
doesn't run hot, and e.g. compile tasks have identical timings before/after
suspend, suggesting this is more likely a GPU or synchronization issue

I have tried to enable KWin debug logging  using
`QT_LOGGING_RULES="kwin_*.debug=true"`  in my shell profile, but no log
messages are written to `~/.local/share/sddm/wayland-session.log` at all.
Neither `journalctl -f` or `dmesg` provide any clues what is going on. I would
like to be able to debug this but I have no idea how/where KWin/Plasma is
supposed to write log/debug info to.


STEPS TO REPRODUCE
1. Log in using SDDM
2. Suspend using either menu or `systemctl suspend`
3. Resume by pressing power button

OBSERVED RESULT
Desktop UI rendering is sluggish as if running at reduced framerate

EXPECTED RESULT
Desktop UI performance is the same as before suspending

Operating System: Arch Linux 
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.114.0
Qt Version: 5.15.12
Kernel Version: 6.7.1-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 7640S with Radeon 760M Graphics
Memory: 13,4 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: LENOVO
Product Name: 83AA
System Version: Yoga Slim 7 14APU8

ADDITIONAL INFORMATION
[1] https://gitlab.freedesktop.org/drm/amd/-/issues/2812#note_2242326

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to