Computer is slow after waking from sleep (suspend to RAM)

THE PROBLEM

Hi there! I recently installed OpenSuse tumbleweed last week and have been slowly configuring it ever since. One thing I noticed almost immediately after the installation was that after going to sleep, whether through timeout or explicit command, the system would be slow to boot. For reference, I installed the system on a brand new SSD and after sleeping, the login screen can take up to 20 seconds to register a keystroke in the password field.

CHANGES I’VE MADE TO THE SYSTEM

To note what I’ve done so far to the system:

  • Installed some basic applications (browser, text editor, boxbuddy, discord) flatpaks
  • Installed nvidia drivers
    • sudo zypper in nvidia-common-G06 nvidia-compute-G06 nvidia-compute-utils-G06 nvidia-driver-G06-kmp-default nvidia-gl-G06 nvidia-video-G06
  • Installed one specialty application (Steam) and downloaded some games
  • Installed some QoL stuff with CoolerControl
  • Installed a specific driver to work for my motherboard’s fan sensors: only non-zypper/flatpak thing I’ve touched
    • cd ~
    • git clone https://github.com/frankcrawford/it87.git
    • cd it87
    • sudo make dkms
    • sudo touch /etc/modprobe.d/it87.conf && sudo echo "options it87 ignore_resource_conflict=1" | sudo tee /etc/modprobe.d/it87.conf
    • sudo touch /etc/modules-load.d/it87.conf && sudo echo "it87" | sudo tee /etc/modules-load.d/it87.conf
    • reboot
  • Got distrobox up and running.

Those are all the major changes I’ve made to my system so far, and yet I can’t really pinpoint what’s happening to make things freezeup after the computer falls asleep.

MY SUSPICIONS

I suspect that maybe this is happening because my amount of swap memory is so low? It’s only 2GB on a 32GB RAM system, but that’s just me following the installer to the best of my ability so maybe I messed something up. Though as I understand it, given the larger amount of ram, when initiating sleep (suspend to RAM), the system shouldn’t even be touching that SWAP partition right? Or am I totally wrong in my understanding of what is/isn’t happening?

SYSTEM SPECIFICS

For further reference, here are my specs, as listed by fastfetch

     .,:lloooooc;.                              ------------------------
   ,ool'     oo,;oo:                            OS: openSUSE Tumbleweed x86_64
 .lo'        oo.   oo:                          Kernel: Linux 6.15.7-1-default
.oo.         oo.    oo:                         Uptime: 31 mins
:ol          oo.    'oo                         Packages: 2947 (rpm), 11 (flatpak-system), 15 (flatpak-user)
:oo         .oo.    .oo.                        Shell: bash 5.2.37
.oooooooooooooo.    .oo.                        Display (DEL41D9): 2560x1440 @ 144 Hz in 27" [External] *
 ;oo.               .oo.                        Display (S2719DGF): 2560x1440 @ 144 Hz in 27" [External]
  'oo,              .oo.                        DE: KDE Plasma 6.4.3
    "ooc,',,,,,,,,,,:ooc,,,,,,,,,,,             WM: KWin (X11)
       ':cooooooooooooooooooooooooool;.         WM Theme: Breeze
                    .oo.             .oo;       Theme: Breeze (Dark) [Qt], Breeze-Dark [GTK2], Breeze [GTK3]
                    .oo.               .oo.     Icons: breeze-dark [Qt], breeze-dark [GTK2/3/4]
                    .oo.    'oooooooooo:ooo.    Font: Noto Sans (10pt) [Qt], Noto Sans (10pt) [GTK2/3/4]
                    .oo.    'oo.         col    Cursor: breeze (24px)
                    .oo'    'oo          col    Terminal: alacritty 0.15.1
                     coo    'oo          oo'    Terminal Font: alacritty (11pt)
                      coc   'oo        .lo,     CPU: AMD Ryzen 7 5800X (16) @ 4.85 GHz
                       `oo, 'oo      .:oo       GPU: NVIDIA GeForce RTX 3070 [Discrete]
                         'ooooc,, ,:lol         Memory: 6.82 GiB / 31.25 GiB (22%)
                            `''"clc"'           Swap: 0 B / 2.00 GiB (0%)
                                                Disk (/): 458.94 GiB / 1.82 TiB (25%) - btrfs
                                                Local IP (enp7s0): 192.168.86.31/24
                                                Locale: en_US.UTF-8

Welcome to openSUSE Forums.

I assume that when you refer to sleep, you specifically mean ‘suspend’ and ‘resume’? When you refer to the login screen, I don’t think you mean the display-manager login screen, you actually mean the screen lock screen of the desktop environment?

It could be a graphics (initialization) issue of some kind. Check the journal for potential issues eg
sudo journalctl -b -1 | grep -iE 'resume|suspend|nvidia|error|fail'

I would also examine
sudo systemd-analyze blame
for any services causing delays upon resume perhaps.

You could also try switching to Plasma Wayland the next time you login perhaps. Does that exhibit the same issue?

Ok, I’ve done the command you listed above relating to journalctl and this is the output I got:

Jul 28 19:29:47 desktop-m72tg6f.lan wireplumber[2142]: wp-proc-utils: failed to get cgroup for PID 165: Failed to open file “/proc/165/status”: No such file or directory
Jul 28 19:29:47 desktop-m72tg6f.lan wireplumber[2142]: wp-proc-utils: failed to get cmdline for PID 165: No such file or directory
Jul 28 19:29:47 desktop-m72tg6f.lan flatpak[6464]: 19:29:47.740 › [GatewaySocket] Updating resume url to wss://gateway-us-east1-d.discord.gg
Jul 28 19:29:50 desktop-m72tg6f.lan flatpak[6464]: 19:29:50.218 › Uncaught (in promise) Error: Request has been terminated
Jul 28 19:30:14 desktop-m72tg6f.lan flatpak[6464]: [5:0728/193014.137176:ERROR:atom_cache.cc(230)] Add chromium/x-internal-source-rfh-token to kAtomsToCache
Jul 28 19:35:08 desktop-m72tg6f.lan kwin_x11[2052]: kwin_core: XCB error: 152 (BadDamage), sequence: 42193, resource id: 11568356, major code: 143 (DAMAGE), minor code: 3 (Subtract)
Jul 28 20:04:02 desktop-m72tg6f.lan dracut[24773]: *** Including module: resume ***
Jul 28 20:04:03 desktop-m72tg6f.lan dracut[24773]:  resume=UUID=6880d377-36a7-4857-8b87-0d42975cde12
Jul 28 20:04:31 desktop-m72tg6f.lan dracut[31961]: *** Including module: resume ***
Jul 28 20:04:32 desktop-m72tg6f.lan dracut[31961]:  resume=UUID=6880d377-36a7-4857-8b87-0d42975cde12
Jul 28 20:04:39 desktop-m72tg6f.lan dracut[37292]: *** Including module: resume ***
Jul 28 20:04:41 desktop-m72tg6f.lan dracut[37292]:  resume=UUID=6880d377-36a7-4857-8b87-0d42975cde12
Jul 28 20:05:42 desktop-m72tg6f.lan sddm[1619]: Authentication error: SDDM::Auth::ERROR_INTERNAL "Process crashed"
Jul 28 20:05:42 desktop-m72tg6f.lan sddm[1619]: Authentication error: SDDM::Auth::ERROR_INTERNAL "Process crashed"
Jul 28 20:05:42 desktop-m72tg6f.lan kalendarac[2395]: The X11 connection broke (error 1). Did the X11 server die?
Jul 28 20:05:42 desktop-m72tg6f.lan kglobalacceld[1956]: The X11 connection broke (error 1). Did the X11 server die?
Jul 28 20:05:42 desktop-m72tg6f.lan systemd[1775]: dbus-:1.8-org.a11y.atspi.Registry@0.service: Main process exited, code=exited, status=1/FAILURE
Jul 28 20:05:42 desktop-m72tg6f.lan systemd[1775]: dbus-:1.8-org.a11y.atspi.Registry@0.service: Failed with result 'exit-code'.
Jul 28 20:05:42 desktop-m72tg6f.lan ksmserver[2048]: The X11 connection broke (error 1). Did the X11 server die?
Jul 28 20:05:42 desktop-m72tg6f.lan kwin_x11[2052]: The X11 connection broke: I/O error (code 1)
Jul 28 20:05:42 desktop-m72tg6f.lan kglobalacceld[1956]: The X11 connection broke: I/O error (code 1)
Jul 28 20:05:42 desktop-m72tg6f.lan kglobalacceld[1956]: XIO:  fatal IO error 2 (No such file or directory) on X server ":0"
Jul 28 20:05:42 desktop-m72tg6f.lan systemd[1775]: plasma-kglobalaccel.service: Main process exited, code=exited, status=1/FAILURE
Jul 28 20:05:42 desktop-m72tg6f.lan systemd[1775]: plasma-kglobalaccel.service: Failed with result 'exit-code'.
Jul 28 20:05:42 desktop-m72tg6f.lan coolercontrol[2407]: ICE default IO error handler doing an exit(), pid = 2407, errno = 11
Jul 28 20:05:42 desktop-m72tg6f.lan systemd[1]: Stopping NVIDIA Persistence Daemon...
Jul 28 20:05:42 desktop-m72tg6f.lan nvidia-persistenced[1347]: Received signal 15
Jul 28 20:05:42 desktop-m72tg6f.lan nvidia-persistenced[1347]: Socket closed.
Jul 28 20:05:42 desktop-m72tg6f.lan kernel: traps: Bluez D-Bus thr[6513] trap int3 ip:5561dd3eea3e sp:7f8610f69a90 error:0 in Discord[636ba3e,5561d92d0000+869a000]
Jul 28 20:05:42 desktop-m72tg6f.lan nvidia-persistenced[1347]: device 0000:09:00.0 - persistence mode disabled.
Jul 28 20:05:42 desktop-m72tg6f.lan kded6[2051]: XIO:  fatal IO error 22 (Invalid argument) on X server ":0"
Jul 28 20:05:42 desktop-m72tg6f.lan nvidia-persistenced[1347]: device 0000:09:00.0 - NUMA memory offlined.
Jul 28 20:05:42 desktop-m72tg6f.lan nvidia-persistenced[1347]: PID file unlocked.
Jul 28 20:05:42 desktop-m72tg6f.lan nvidia-persistenced[1347]: PID file closed.
Jul 28 20:05:42 desktop-m72tg6f.lan nvidia-persistenced[1347]: Shutdown (1347)
Jul 28 20:05:42 desktop-m72tg6f.lan systemd-coredump[44319]: Failed to send coredump datagram: Broken pipe
Jul 28 20:05:42 desktop-m72tg6f.lan kded6[2051]: The X11 connection broke (error 1). Did the X11 server die?
Jul 28 20:05:42 desktop-m72tg6f.lan dbus-broker-launch[1805]: Activation request for 'org.bluez.obex' failed.
Jul 28 20:05:42 desktop-m72tg6f.lan kded6[2051]: The X11 connection broke: I/O error (code 1)
Jul 28 20:05:42 desktop-m72tg6f.lan systemd[1]: nvidia-persistenced.service: Deactivated successfully.
Jul 28 20:05:42 desktop-m72tg6f.lan systemd[1]: Stopped NVIDIA Persistence Daemon.
Jul 28 20:05:43 desktop-m72tg6f.lan systemd[1775]: plasma-kwin_x11.service: Main process exited, code=exited, status=1/FAILURE
Jul 28 20:05:43 desktop-m72tg6f.lan systemd[1775]: plasma-kwin_x11.service: Failed with result 'exit-code'.
Jul 28 20:05:43 desktop-m72tg6f.lan systemd[1775]: plasma-kded6.service: Main process exited, code=exited, status=1/FAILURE
Jul 28 20:05:43 desktop-m72tg6f.lan systemd[1775]: plasma-kded6.service: Failed with result 'exit-code'.
Jul 28 20:05:43 desktop-m72tg6f.lan plasmashell[2225]: The X11 connection broke: I/O error (code 1)
Jul 28 20:05:43 desktop-m72tg6f.lan systemd[1775]: plasma-plasmashell.service: Main process exited, code=exited, status=1/FAILURE
Jul 28 20:05:43 desktop-m72tg6f.lan systemd[1775]: plasma-plasmashell.service: Failed with result 'exit-code'.
Jul 28 20:05:43 desktop-m72tg6f.lan dbus-broker-launch[1220]: Activation request for 'org.freedesktop.nm_dispatcher' failed.
Jul 28 20:05:43 desktop-m72tg6f.lan auditctl[44441]: failure 1

From what I can tell, the plasma-kde service exited a failed a couple of times and the X11 connection was lost too.

...
  18ms systemd-modules-load.service
  16ms systemd-user-sessions.service
  16ms kmod-static-nodes.service
  16ms issue-generator.service
  16ms modprobe@configfs.service
  15ms systemd-sysctl.service
  15ms modprobe@drm.service
  14ms modprobe@fuse.service
  13ms modprobe@nvme_fabrics.service
  12ms initrd-cleanup.service
  11ms user-runtime-dir@1000.service
  10ms systemd-remount-fs.service
   8ms initrd-udevadm-cleanup-db.service
   8ms home.mount
   7ms kernel-sysctl.service
   7ms opt.mount
   6ms var.mount
   6ms root.mount
   6ms srv.mount
   5ms usr-local.mount
...

I have no idea what the above information really means so if there’s something wrong or out-of-place, what would I be looking for?


All of the text above was written before switching to a Wayland session. So far, after a 15-minute sleep, it goes to sleep and wakes just happily. So this would be an x11 issue then?

You just post it and let others comment. :wink: There are likely to be further questions, commands etc. Something wrong with the X-server for sure…there are multiple X11-related crashes and NVIDIA-related shutdowns, all clustering around resume.

Good to know that the Plasma Wayland session behaves as expected.

Alright then! Thanks for helping me out with this kind of thing! I’ve set Wayland as my default session via system settings. If I might ask a final question? I REALLY want to make this desktop my main thing. I want to actually truly migrate away from Windows but I also want a solid desktop experience. I see plenty of anecdotes and reviews talking about the stability and modernity of tumbleweed, yet all these individuals seem to have some experience in “fiddling around” to the point where certain things they expect/do are things I wouldn’t know how to start researching.

So, I guess what I’m asking is, are there templates out there for beginners like me? Like, I installed tumbleweed then hopped into the wiki. Now, don’t get me wrong, it’s well written, but also it feels dense and tangled for a first timer. I got to pages about VPN configuration and lo and behold, there’s actually like three other links I need to read before even thinking about continuing on the main page: VPN Providers to Consider, Wireguard vs OpenVPN, What is a VPN?, DNS Resolution and You; A Guide to More Rabbit Holes and Confusion, etc… Point being, are there wikis or projects out there that have the same kind of philosophy or guidance as something like kickstart.nvim? Wherein, there’s the basic things I need to know, plus some popular defaults/additions commented out, and a clear path forward depending on my use-case without a bunch of side-trails or optional (yet somehow highly recommended) quests to distract me?

I wish I could have worded that question more coherently and made it more succinct. However, I think the gist gets through.

If you suspend to RAM you do not need (disk) swap at all. For hibernation to disk swap is needed that is at least the size of the memory. In boot cases there is no new boot after wake up.

For a VPN, use the NetworkManager:

Right click on the icon on Chose Configure Network Connections:

Add an new connection:

And chose Import VPN Connection…:

For that use a config file that you can get from your VPN provider.
Alternatively configure WireGuard or OpenVPN by hand.

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