Tumbleweed fails to suspend

Hello.

Whenever I try to suspend, it just shows the sddm lock screen and fades to black, but the system doesn’t actually suspend. I have to force reset to recover.

JournalCtl logs: logs - Pastebin.com

System specs

Tumbleweed 20231221
KDE 5.27.10
Kernel 6.6.6-1-default (64-bits)
X11
All AMD (CPU & GPU)

hi actually i face same issue here… not sure why.
sometimes it goes to sleep mode and then few times crashes on the SDDM screen.

i tried to change the SDDM, no effect.
now running standard Breeze for OpenSuse.
same Kernel but running on Wayland. same AMD CPU and GPU.
same plasma.

Post

inxi -aFz
roguefort8@localhost:~> inxi -aFz
System:
  Kernel: 6.6.7-1-default arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    clocksource: tsc available: hpet,acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.6.7-1-default
    root=UUID=4d9632fb-73b9-46e3-8447-ef68818f3bcb splash=silent
    resume=/dev/disk/by-uuid/f5da7225-0974-41aa-bdd6-d9d2e972edb1 quiet
    security=apparmor mitigations=auto
  Desktop: KDE Plasma v: 5.27.10 tk: Qt v: 5.15.11 wm: kwin_x11 vt: 2
    dm: SDDM Distro: openSUSE Tumbleweed 20231226
Machine:
  Type: Desktop Mobo: Micro-Star model: MAG B550 TOMAHAWK MAX WIFI (MS-7C91)
    v: 1.0 serial: <superuser required> UEFI: American Megatrends LLC. v: 2.50
    date: 07/03/2023
CPU:
  Info: model: AMD Ryzen 7 5700X bits: 64 type: MT MCP arch: Zen 3+ gen: 4
    level: v3 note: check built: 2022 process: TSMC n6 (7nm) family: 0x19 (25)
    model-id: 0x21 (33) stepping: 2 microcode: 0xA20120A
  Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
    L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB
    L3: 32 MiB desc: 1x32 MiB
  Speed (MHz): avg: 2810 high: 3621 min/max: 2200/4662 boost: enabled
    scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 3594 2: 2200
    3: 2200 4: 3621 5: 2200 6: 3598 7: 2881 8: 3598 9: 2200 10: 2200 11: 2200
    12: 2200 13: 3262 14: 3599 15: 3211 16: 2200 bogomips: 108839
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow status: Vulnerable: Safe RET, no microcode
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
    STIBP: always-on, RSB filling, PBRSB-eIBRS: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M/6850M XT]
    vendor: Sapphire driver: amdgpu v: kernel arch: RDNA-2 code: Navi-2x
    process: TSMC n7 (7nm) built: 2020-22 pcie: gen: 4 speed: 16 GT/s
    lanes: 16 ports: active: HDMI-A-1 empty: DP-1,DP-2,DP-3 bus-ID: 2d:00.0
    chip-ID: 1002:73df class-ID: 0300
  Display: x11 server: X.Org v: 21.1.9 with: Xwayland v: 23.2.2
    compositor: kwin_x11 driver: X: loaded: amdgpu
    unloaded: fbdev,modesetting,vesa dri: radeonsi gpu: amdgpu display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: HDMI-A-1 mapped: HDMI-A-0 model: Gigabyte G24F serial: <filter>
    built: 2021 res: 1920x1080 dpi: 93 gamma: 1.2 size: 527x296mm (20.75x11.65")
    diag: 595mm (23.4") ratio: 16:9 modes: max: 1920x1080 min: 640x480
  API: EGL v: 1.5 hw: drv: amd radeonsi platforms: device: 0 drv: radeonsi
    device: 1 drv: swrast surfaceless: drv: radeonsi x11: drv: radeonsi
    inactive: gbm,wayland
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 23.2.1 glx-v: 1.4
    direct-render: yes renderer: AMD Radeon RX 6700 XT (navi22 LLVM 17.0.6 DRM
    3.54 6.6.7-1-default) device-ID: 1002:73df memory: 11.72 GiB unified: no
  API: Vulkan v: 1.3.268 layers: 5 device: 0 type: discrete-gpu name: AMD
    Radeon RX 6700 XT (RADV NAVI22) driver: mesa radv v: 23.2.1
    device-ID: 1002:73df surfaces: xcb,xlib
Audio:
  Device-1: AMD Navi 21/23 HDMI/DP Audio driver: snd_hda_intel v: kernel pcie:
    gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 2d:00.1 chip-ID: 1002:ab28
    class-ID: 0403
  Device-2: AMD Starship/Matisse HD Audio vendor: Micro-Star MSI
    driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
    bus-ID: 2f:00.4 chip-ID: 1022:1487 class-ID: 0403
  API: ALSA v: k6.6.7-1-default status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: PipeWire v: 1.0.0 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: MEDIATEK MT7921K Wi-Fi 6E 80MHz driver: mt7921e v: kernel pcie:
    gen: 2 speed: 5 GT/s lanes: 1 bus-ID: 29:00.0 chip-ID: 14c3:0608
    class-ID: 0280
  IF: wlo1 state: down mac: <filter>
  Device-2: Realtek RTL8125 2.5GbE vendor: Micro-Star MSI driver: r8169
    v: kernel pcie: gen: 2 speed: 5 GT/s lanes: 1 port: f000 bus-ID: 2a:00.0
    chip-ID: 10ec:8125 class-ID: 0200
  IF: enp42s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Bluetooth:
  Device-1: MediaTek Wireless_Device driver: btusb v: 0.8 type: USB rev: 2.1
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-9:6 chip-ID: 0e8d:0608
    class-ID: e001 serial: <filter>
  Report: btmgmt ID: hci0 rfk-id: 0 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: <filter> bt-v: 5.2 lmp-v: 11
    status: discoverable: no pairing: no
Drives:
  Local Storage: total: 5.46 TiB used: 629.96 GiB (11.3%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital
    model: WD Blue SN570 1TB size: 931.51 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 tech: SSD serial: <filter>
    fw-rev: 234110WD temp: 32.9 C scheme: GPT
  ID-2: /dev/nvme1n1 maj-min: 259:5 vendor: Samsung model: SSD 980 PRO 1TB
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: 5B2QGXA7 temp: 39.9 C
    scheme: GPT
  ID-3: /dev/sda maj-min: 8:0 vendor: Seagate model: ST2000DM008-2UB102
    size: 1.82 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    tech: HDD rpm: 7200 serial: <filter> fw-rev: 0001 scheme: GPT
  ID-4: /dev/sdb maj-min: 8:16 vendor: Crucial model: CT2000MX500SSD1
    size: 1.82 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    tech: SSD serial: <filter> fw-rev: 046 scheme: MBR
Partition:
  ID-1: / raw-size: 315.16 GiB size: 315.16 GiB (100.00%)
    used: 30.22 GiB (9.6%) fs: btrfs dev: /dev/nvme1n1p2 maj-min: 259:7
  ID-2: /boot/efi raw-size: 512 MiB size: 511 MiB (99.80%)
    used: 5.8 MiB (1.1%) fs: vfat dev: /dev/nvme1n1p1 maj-min: 259:6
  ID-3: /home raw-size: 600.33 GiB size: 600.33 GiB (100.00%)
    used: 81.92 GiB (13.6%) fs: btrfs dev: /dev/nvme1n1p3 maj-min: 259:8
  ID-4: /opt raw-size: 315.16 GiB size: 315.16 GiB (100.00%)
    used: 30.22 GiB (9.6%) fs: btrfs dev: /dev/nvme1n1p2 maj-min: 259:7
  ID-5: /var raw-size: 315.16 GiB size: 315.16 GiB (100.00%)
    used: 30.22 GiB (9.6%) fs: btrfs dev: /dev/nvme1n1p2 maj-min: 259:7
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) zswap: no
  ID-1: swap-1 type: partition size: 15.52 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/nvme1n1p4 maj-min: 259:9
Sensors:
  System Temperatures: cpu: 42.6 C mobo: 36.0 C gpu: amdgpu temp: 52.0 C
    mem: 52.0 C
  Fan Speeds (rpm): N/A gpu: amdgpu fan: 0
Info:
  Processes: 422 Uptime: 0h 1m wakeups: 0 Memory: total: 16 GiB
  available: 15.54 GiB used: 2.78 GiB (17.9%) Init: systemd v: 254
  default: graphical tool: systemctl Compilers: gcc: 13.2.1 alt: 13 Packages:
  pm: rpm pkgs: N/A note: see --rpm tools: yast,zypper pm: flatpak pkgs: 36
  Shell: Bash v: 5.2.21 running-in: konsole inxi: 3.3.31

@Roguefort Is secure boot enabled?

Secure boot is disabled.

Execute this to show the systemd sleep / suspend config:

cat /usr/lib/systemd/sleep.conf
roguefort8@localhost:~> cat /usr/lib/systemd/sleep.conf
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it under the
#  terms of the GNU Lesser General Public License as published by the Free
#  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 a copy of it placed in
# /etc/ if the original file is shipped in /usr/), or by creating "drop-ins" in
# the /etc/systemd/sleep.conf.d/ directory. The latter is generally
# recommended. Defaults can be restored by simply deleting the main
# configuration file and all drop-ins located in /etc/.
#
# Use 'systemd-analyze cat-config systemd/sleep.conf' to display the full config.
#
# See systemd-sleep.conf(5) for details.

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

Try to update BIOS. But I have doubts that it will help.
Some device refuse to suspend.
Try to disable onboard WiFi & BT - if you don’t need them.

1 Like

Do you have an external monitor ? What is the primary device enabled in KDE’s setting (i.e. hardware, monitor)? If it is HDMI, try “screen” or something similar.

Hello again.

Sorry for the delay, I needed some day-to-day usage to test if those changes would fix it.

I’ve updated the BIOS to the latest version and enabled air plane mode on KDE: Wifi and Bluetooth were already disabled, but just to make sure…

Only the ethernet was on.

For a few days, it did suspend successfully, until today. It went to the lock screen, but no black screen to a sleep state.

Here are journal logs: log4 - Pastebin.com

I noticed on the BIOS that ‘BIOS wake up’ setting is set to the BIOS and there is an option to change to the OS. I’m unsure if that is the cause of the problem.

I also ran the systemd-inhibit --list --mode=block so see what is preventing the computer to go to sleep. The only thing it showed was PowerDevil.

WHO        UID  USER       PID  COMM            WHAT                                                                       WHY     >
PowerDevil 1000 roguefort8 2137 org_kde_powerde handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch KDE hand>

1 inhibitors listed.

This is a desktop PC. it uses 1 monitor.

Side note, here are the logs of a successful one: log7 successful suspend - Pastebin.com

It’s preferred to use openSuse 's paste feature … some folks may not tap on a 3rd party link :+1:

https://paste.opensuse.org/

openSUSE’s Paste has short period of expiration.

BIOS setting: AMD CBS (global C-state Control) - try to disable.

The default is one day, but can be set for up to three months, which should be adequate enough time.

Hello.

It’s preferred to use openSuse 's paste feature … some folks may not tap on a 3rd party link :+1:

https://paste.opensuse.org/

Oh, I didn’t knew of any other private log dump website other than pastebin. Thanks!

Here are the logs so far in paste.opensuse.org

First suspend failure : openSUSE Paste

Second suspend fail (After updating BIOS and disabling WiFi & Bluetooth): openSUSE Paste

Successful suspend: openSUSE Paste

BIOS setting: AMD CBS (global C-state Control) - try to disable.

I’ve disabled that option on the BIOS and tried to suspend, but it failed again :<

Logs for that: openSUSE Paste

Why is it so difficult to suspend…it always seems like a Russian roulette…I either suspend or risk damaging my hardware…

Well, man susepaste gives for option -e:

       -e EXPIRE
              for how log will be paste stored on the server. Default is 30 minutes, possible values are:
                   30            30 Minutes
                   60             1 Hour
                   360            6 Hours
                   720           12 Hours
                   1440           1 Day
                   10080          1 Week
                   40320          1 Month
                   151200         3 Months
                   604800         1 Year
                   1209600        2 Years
                   1814400        3 Years
                   0                Never

I could have sworn this worked on the website, too. Never mind.

Edit: “this” meaning expiry longer than 3 months

I do see something suspicious … it seems the process “QQuickPixmapRea” is busy.

a. Do you have any apps running at the time of suspend?

b. After it refuses to sleep, have you tried to put it to sleep immediately after the first attempt - maybe the process needs more than 20 seconds ?

c. Also, can you show the output of this (should see deep):

:~> cat /sys/power/mem_sleep
[s2idle] deep
:~> 

Log snippet from susepaste log:

...
dez 22 20:11:03 localhost.localdomain kernel: Freezing user space processes
dez 22 20:11:03 localhost.localdomain kernel: usb 4-3: USB disconnect, device number 2
dez 22 20:11:03 localhost.localdomain kernel: usb 3-3: USB disconnect, device number 2
dez 22 20:11:03 localhost.localdomain kernel: usb 3-3.5: USB disconnect, device number 3

vvvvvvvvvvv  right here vvvvvvvvvvvvvvvv
dez 22 20:11:03 localhost.localdomain kernel: Freezing user space processes failed after 20.009 seconds (1 tasks refusing to freeze, wq_busy=0):
dez 22 20:11:03 localhost.localdomain kernel: task:QQuickPixmapRea state:D stack:0     pid:21875 ppid:2011   flags:0x00000006
^^^^^^^^^^^^^^^^^^^^^^

dez 22 20:11:03 localhost.localdomain kernel: Call Trace:
dez 22 20:11:03 localhost.localdomain kernel:  <TASK>
dez 22 20:11:03 localhost.localdomain kernel:  __schedule+0x3dd/0x14b0
...