Wake up from standby result in laggy system

Hello comunity,
I am facing an error every time my system goes into Standby. (It was running without problems since some weeks ago)
Normally the first or second standby in one session goes well and the system will recover without iusses. But at the third time ( or randomly, I don’t know) the system will recover from standby, with the following behavior:

  • either the system boots, but the screen remains black. So I have to press the power button to power off.
  • or the system boots up and the wallpaper is displayed normally. However, it takes an eternity until the login field appears. Keystrokes are very sluggish and when I do manage to log in then the whole system is extremely slow (practically unusable).
    If I switch to tty before logging in (again it takes time for the system to process the keystrokes) then I can log in with my credentials without problems and restart the system from tty.
    After the reboot everything runs normally again until the next standby.

I know that linux gives a tons of report, so if something does not work properly an expert can check for the error, but I’m not such one an being a normal user I need help from the comunity, if someone can help me. Also any link to a similar problem is willcome, so maybe i can learn something new while trying the provided solutions.

My system is the following, using KDE System settings as source. I know that i have to porvide other information but without your help I don’t know how and where to find it.

Thank you very much for your time.
Greeting
K77U

Operating System: Manjaro Linux
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9
Kernel Version: 6.3.3-1-MANJARO (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 5800H with Radeon Graphics
Memory: 30.8 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: SchenkerTechnologiesGmbH
Product Name: XMG CORE (CZN/E21)

Before restarting, can you execute “top” command to see which proccess is slowing the computer?

Hello an thanks for your response. htop shows me

I’ve used this command:

echo q | htop | aha --black --line-fix > htop.png

I had an image but the form give me an error while uploading it.

  16685 k77u      20   0 10276  6452  3508 R  55.2  0.0  0:00.08 htop         
      1 root        20   0  166M 13948  9928 S   0.0  0.0  0:01.89 /sbin/init
    416 root        20   0 75420 38504 37376 S   0.0  0.1  0:00.76 /usr/lib/systemd/systemd-journald
    417 root        20   0 35692 10876  7548 S   0.0  0.0  0:00.16 /usr/lib/systemd/systemd-udevd
    639 systemd-ti  20   0 91348  8340  7444 S   0.0  0.0  0:00.08 /usr/lib/systemd/systemd-timesyncd
    724 systemd-ti  20   0 91348  8340  7444 S   0.0  0.0  0:00.00 /usr/lib/systemd/systemd-timesyncd
    727 avahi       20   0  8668  4032  3776 S   0.0  0.0  0:00.25 avahi-daemon: running [k77unit.local]
    728 root        20   0  6676  2940  2172 S   0.0  0.0  0:00.00 /usr/bin/crond -n
    729 dbus        20   0 11240  5596  3804 S   0.0  0.0  0:01.78 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --
    732 polkitd     20   0  375M 10096  6792 S   0.0  0.0  0:00.72 /usr/lib/polkit-1/polkitd --no-debug
    733 root        20   0 2235M 45600 19724 S   0.0  0.1  0:00.75 /usr/lib/snapd/snapd
    735 root        20   0 50636  8840  7552 S   0.0  0.0  0:00.14 /usr/lib/systemd/systemd-logind
    740 root        20   0 2235M 45600 19724 S   0.0  0.1  0:00.03 /usr/lib/snapd/snapd
    741 root        20   0 2235M 45600 19724 S   0.0  0.1  0:00.00 /usr/lib/snapd/snapd
    742 root        20   0 2235M 45600 19724 S   0.0  0.1  0:00.03 /usr/lib/snapd/snapd
    743 root        20   0 2235M 45600 19724 S   0.0  0.1  0:00.10 /usr/lib/snapd/snapd
    744 root        20   0 2235M 45600 19724 S   0.0  0.1  0:00.00 /usr/lib/snapd/snapd
    754 root        20   0 2235M 45600 19724 S   0.0  0.1  0:00.04 /usr/lib/snapd/snapd
    755 root        20   0 2235M 45600 19724 S   0.0  0.1  0:00.02 /usr/lib/snapd/snapd
    756 root        20   0 2235M 45600 19724 S   0.0  0.1  0:00.00 /usr/lib/snapd/snapd
    759 root        20   0  445M 28496 17664 S   0.0  0.1  0:00.49 /opt/cisco/anyconnect/bin/vpnagentd -execv_instance
    761 avahi       20   0  8524  1292   896 S   0.0  0.0  0:00.00 avahi-daemon: chroot helper
    762 polkitd     20   0  375M 10096  6792 S   0.0  0.0  0:00.00 /usr/lib/polkit-1/polkitd --no-debug
    764 polkitd     20   0  375M 10096  6792 S   0.0  0.0  0:00.00 /usr/lib/polkit-1/polkitd --no-debug
    765 polkitd     20   0  375M 10096  6792 S   0.0  0.0  0:00.27 /usr/lib/polkit-1/polkitd --no-debug
    766 root        20   0  399M 23096 18240 S   0.0  0.1  0:01.22 /usr/bin/NetworkManager --no-daemon
    767 root        20   0  344M 43928 20152 S   0.0  0.1  0:00.44 /usr/bin/python3 /usr/bin/input-remapper-service
    777 root        20   0  399M 23096 18240 S   0.0  0.1  0:00.09 /usr/bin/NetworkManager --no-daemon
    779 root        20   0  399M 23096 18240 S   0.0  0.1  0:00.00 /usr/bin/NetworkManager --no-daemon
    784 root        20   0  399M 23096 18240 S   0.0  0.1  0:00.27 /usr/bin/NetworkManager --no-daemon
    787 root        20   0  309M 11844 10180 S   0.0  0.0  0:00.09 /usr/bin/ModemManager
    789 root        20   0 27296  9220  7300 S   0.0  0.0  0:00.02 /usr/bin/cupsd -l
    811 root        20   0 2235M 45600 19724 S   0.0  0.1  0:00.00 /usr/lib/snapd/snapd
    812 root        20   0 2235M 45600 19724 S   0.0  0.1  0:00.05 /usr/lib/snapd/snapd

This indicates that you are using hibernation

is a state where the system has suspended to ram and resumes to an active state

I suggest you go over your power settings and if using hibernation you need to ensure enough swap space avaiable.

1 Like

Ok, if I check on System Settings → Energy there is selceted to put the system into Standby, no Hybernation option is given in the dropdown menu.
I checked with gparted my SWAP partition, it is 8.8 GB. I think this is enough on 32GB Ram, or I am supposig wrong?

I don’t know if it is useful but

cat /sys/power/mem_sleep   

results in [s2idle]
And in

cat /etc/systemd/sleep.conf                                                             

I found this line

#  Software Foundation; either version 2.1 of the License, or (at your option)
#  any later version.
#
# Entries in this file show the compile time defaults. Local configuration
# should be created by either modifying this file, or by creating "drop-ins" in
# the sleep.conf.d/ subdirectory. The latter is generally recommended.
# Defaults can be restored by simply deleting this file and all drop-ins.
#
# See systemd-sleep.conf(5) for details.

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

I am no expert on the matter - but those looks conflicting to me.

It is possible that setting AllowHibernation=no implies a disable of the following two - but just to be sure - I suggest uncommenting and setting those to no as well.

Thanks for respoonse and link.
I have tried but it does not solve my problem.
I’ve tried several times to put the pc in standby. On the firs wakeup all is well. But with the second, the problem appears.

I’ve also noticed that the problem seems to apper on second standby/wakeup.

Here an Update.
I created a new Profile to login and noticed that the problem there does not exist. So i renamed my .config and .local/share folder and now it seems to work properly.
I don’t know why but it seems as something has bugged my KDE desktop configuration.

Thanks all for your help.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.