After migrate to Tumbleweed from Leap 15.6 'suspend' function fails

After upgrade to to Tumbleweed on my desktop the suspend function appears not to function properly, i.e. does not suspend completely, and cannot be recalled from this mode.
The machine has to be forcibly shut down and restarted.# System Details Report

System Details Report


Report details

  • Date generated: 2025-03-05 19:44:56

Hardware Information:

  • Hardware Model: Dell Inc. OptiPlex GX620
  • Memory: 4.0 GiB
  • Processor: IntelÂŽ PentiumÂŽ D 2.80GHz × 2
  • Graphics: Unknown
  • Disk Capacity: 240.1 GB

Software Information:

  • Firmware Version: A07
  • OS Name: openSUSE Tumbleweed
  • OS Build: (null)
  • OS Type: 64-bit
  • GNOME Version: 47
  • Windowing System: X11
  • Kernel Version: Linux 6.13.5-1-default

I suggest to try sudo zypper in kernel-longterm and then reboot. That old 945G iGPU, if that’s what you are still depending on, requires xf86-video-intel, which has been in maintenance only mode for a very long time.

Doesn’t work with kernel-longterm and xf86-video-intel. By the way, after installation of the xf86-video-intel via Yast, the only reference to it under root/ was a license file

On mrmazda’s advice, I installed the xf86-video-ati driver and added a file
10-radeon-conf to /etc/X11/xorg.conf.d, containing the text

Section "Device"
    Identifier "DefaultDevice"
	Driver 	"radeon"
EndSection

The effect was that after power on (cold start) and not logging in yet, the machine went into ‘suspend’ mode after a while, from which it was possible to recover and continue as normal. In other words ‘suspend’ seemed to work in part.

I confirmed that, in general, logging out first and then performing suspend and recover from suspend also seems to work as expected. So what are the steps needed to get ‘suspend’ properly again, i.e. without the workaround of having to log out first?

And, by the way, shouldn’t log out/log in operation return the desktop to the status before logout? Now, however, the whole cold start sequence starts —zypp-main, btrfs-cleaner, usw

Pentium D 820 from 2005?
Post

inxi -aFz

to be sure.

Not compatible with Leap 16.0.
If you want you can use it with ATI/AMD Terascale or newer video card.

ILL iGPU is absent. Need more info about used GPU.

inxi -aFz
System:
  Kernel: 6.13.5-1-default arch: x86_64 bits: 64 compiler: gcc v: 14.2.1
    clocksource: tsc avail: hpet,acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.13.5-1-default
    root=UUID=912bd7ac-40b5-405c-a05a-21b5f98b6e81 splash=silent preempt=full
    mitigations=auto quiet security=apparmor
  Desktop: GNOME v: 47.5 tk: GTK v: 3.24.48 wm: gnome-shell
    tools: gsd-screensaver-proxy avail: xscreensaver dm: GDM v: 47.0
    Distro: openSUSE Tumbleweed 20250306
Machine:
  Type: Desktop System: Dell product: OptiPlex GX620 v: N/A
    serial: <superuser required> Chassis: type: 3 serial: <superuser required>
  Mobo: Dell model: 0FH884 serial: <superuser required>
    uuid: <superuser required> BIOS: Dell v: A07 date: 03/31/2006
CPU:
  Info: model: Intel Pentium D bits: 64 type: MCP arch: Netburst Prescott
    level: v1 built: 2004-06 process: Intel 90nm family: 0xF (15) model-id: 4
    stepping: 7 microcode: 0x3
  Topology: cpus: 1x dies: 1 clusters: 2 cores: 2 smt: <unsupported> cache:
    L1: 32 KiB desc: d-2x16 KiB L2: 2 MiB desc: 2x1024 KiB
  Speed (MHz): avg: 2793 min/max: N/A cores: 1: 2793 2: 2793 bogomips: 11172
  Flags: ht lm nx pae sse sse2 sse3
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: KVM: VMX unsupported
  Type: l1tf mitigation: PTE Inversion
  Type: mds status: Vulnerable: Clear CPU buffers attempted, no microcode;
    SMT disabled
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data status: Unknown: No mitigations
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass status: Vulnerable
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines; STIBP: disabled; RSB filling;
    PBRSB-eIBRS: Not affected; BHI: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Advanced Micro Devices [AMD/ATI] Caicos [Radeon HD 6450/7450/8450
    / R5 230 OEM] vendor: PC Partner / Sapphire driver: radeon v: kernel
    alternate: amdgpu arch: TeraScale-2 code: Evergreen process: TSMC 32-40nm
    built: 2009-15 pcie: gen: 1 speed: 2.5 GT/s lanes: 16 ports:
    active: DVI-D-1,HDMI-A-1 empty: VGA-1 bus-ID: 01:00.0 chip-ID: 1002:6779
    class-ID: 0300 temp: 58.5 C
  Display: x11 server: X.Org v: 21.1.15 with: Xwayland v: 24.1.6
    compositor: gnome-shell driver: X: loaded: radeon dri: r600 gpu: radeon
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3840x1080 s-dpi: 96 s-size: 1016x285mm (40.00x11.22")
    s-diag: 1055mm (41.54")
  Monitor-1: DVI-D-1 mapped: DVI-0 pos: primary,right model: AOC 2243W
    serial: <filter> built: 2010 res: mode: 1920x1080 hz: 60 scale: 100% (1)
    dpi: 102 gamma: 1.2 size: 477x268mm (18.78x10.55") diag: 547mm (21.5")
    ratio: 16:9 modes: max: 1920x1080 min: 720x400
  Monitor-2: HDMI-A-1 mapped: HDMI-0 pos: left model: Lenovo L24e-30
    serial: <filter> built: 2022 res: mode: 1920x1080 hz: 60 scale: 100% (1)
    dpi: 93 gamma: 1.2 size: 527x296mm (20.75x11.65") diag: 604mm (23.8")
    ratio: 16:9 modes: max: 1920x1080 min: 720x400
  API: EGL v: 1.5 hw: drv: amd r600 platforms: device: 0 drv: r600 device: 1
    drv: swrast gbm: drv: kms_swrast surfaceless: drv: r600 x11: drv: r600
    inactive: wayland
  API: OpenGL v: 4.5 vendor: mesa v: 25.0.0 glx-v: 1.4 direct-render: yes
    renderer: AMD CAICOS (DRM 2.50.0 / 6.13.5-1-default LLVM 19.1.7)
    device-ID: 1002:6779 memory: 1000 MiB unified: no
  Info: Tools: api: eglinfo,glxinfo x11: xdpyinfo, xprop, xrandr
Audio:
  Device-1: Intel 82801G AC97 Audio vendor: Dell OptiPlex GX620
    driver: snd_intel8x0 v: kernel bus-ID: 00:1e.2 chip-ID: 8086:27de
    class-ID: 0401
  Device-2: Advanced Micro Devices [AMD/ATI] Caicos HDMI Audio [Radeon HD
    6450 / 7450/8450/8490 OEM R5 230/235/235X OEM]
    vendor: PC Partner / Sapphire driver: snd_hda_intel v: kernel pcie: gen: 1
    speed: 2.5 GT/s lanes: 16 bus-ID: 01:00.1 chip-ID: 1002:aa98
    class-ID: 0403
  API: ALSA v: k6.13.5-1-default status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: PipeWire v: 1.3.83 status: off with: wireplumber status: active
    tools: pw-cat,pw-cli,wpctl
  Server-2: PulseAudio v: 17.0 status: active with: pulseaudio-alsa
    type: plugin tools: pacat,pactl
Network:
  Device-1: Broadcom NetXtreme BCM5751 Gigabit Ethernet PCI Express
    vendor: Dell OptiPlex GX620 driver: tg3 v: kernel pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 port: N/A bus-ID: 02:00.0 chip-ID: 14e4:1677
    class-ID: 0200
  IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Info: services: wpa_supplicant
Drives:
  Local Storage: total: 223.57 GiB used: 101.03 GiB (45.2%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Kingston model: SUV400S37240G
    size: 223.57 GiB block-size: physical: 4096 B logical: 512 B
    speed: <unknown> tech: SSD serial: <filter> fw-rev: 37R5 scheme: MBR
Partition:
  ID-1: / raw-size: 221.56 GiB size: 221.56 GiB (100.00%)
    used: 100.7 GiB (45.4%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
  ID-2: /home raw-size: 221.56 GiB size: 221.56 GiB (100.00%)
    used: 100.7 GiB (45.4%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
  ID-3: /opt raw-size: 221.56 GiB size: 221.56 GiB (100.00%)
    used: 100.7 GiB (45.4%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
  ID-4: /tmp raw-size: 221.56 GiB size: 221.56 GiB (100.00%)
    used: 100.7 GiB (45.4%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
  ID-5: /var raw-size: 221.56 GiB size: 221.56 GiB (100.00%)
    used: 100.7 GiB (45.4%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) zswap: no
  ID-1: swap-1 type: partition size: 2.01 GiB used: 340.8 MiB (16.6%)
    priority: -2 dev: /dev/sda1 maj-min: 8:1
Sensors:
  System Temperatures: cpu: N/A mobo: N/A gpu: radeon temp: 58.0 C
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 4 GiB note: est. available: 3.39 GiB used: 2.28 GiB (67.1%)
  Processes: 245 Power: uptime: 6h 10m states: freeze,standby,mem,disk
    suspend: deep avail: s2idle,shallow wakeups: 1 hibernate: platform
    avail: shutdown, reboot, suspend, test_resume image: 1.33 GiB
    services: gsd-power, power-profiles-daemon, upowerd Init: systemd v: 257
    default: graphical tool: systemctl
  Packages: pm: dpkg pkgs: 0 pm: rpm pkgs: N/A note: see --rpm tools: dnf,
    gnome-software, yast, yum, zypper pm: flatpak pkgs: 4 Compilers:
    gcc: 14.2.1 alt: 7 Shell: Bash v: 5.2.37 running-in: gnome-terminal
    inxi: 3.3.37

Try to enlarge swap partition to 6-8 GB.

SELinux or AppArmor in use?

What will that achieve to solve this issue?

Apparently, Svyatko believes your 2G current swapspace may be inadequate in size for proper operation of suspend. I believe that could be a correct supposition. It is generally recommended that swapspace be no smaller than installed RAM size, and you have 4G of RAM.

Sounds like I have to backup and reformat disks etc. I would not have taken this risk had I known what it entailed - somewhat untypical in my long experience with OpenSUSE. Migrate back to Leap 15.6? Is that an option?

What OP needs - “Suspend (to memory)” or "Hibernation (suspend to disk) "?
For “Suspend (to memory)” big swap is not needed.
But for 4 GB RAM and TW I recommend bigger swap anyway.

Your CPU is not compatible with Leap 16.0 - you cannot upgrade Leap 15.6 to it in the future.

Bad idea, but there may be other options to suggest if you provide output from fdisk -l.

Even without that information you have a relatively simple way out: Buy a 250G or 256G or larger SSD to replace the existing. By cloning from your 240 to a 250 you gain ~10G freespace that can be allocated to a new swap partition.

Just resize the btrfs partition…

1 Like

How can the freed-up space be made part of a contiguous swap partition?

Wouldn’t it be way easier to disable the swap partition and start using a swap file of desired size?

FWIW: Suspend does not even use swap. Hibernation does.

1 Swap partition/swap file
The swap partition was set up by the OpenSUSE installation procedure. I might have approved the Leap 15 suggestion at the time but how would I overwrite that now?
2. What’s the difference between suspend and hibernation? I have always assumed they are alternative names for the same thing.

Re. 1:
There is quite a lot of good reads about the difference
Re. 2:
Suspend keeps the RAM powered, so waking up uses the RAM state
Hibernation (by openSUSE default) writes the RAM state to the swap (partition or file ), sets some flag and then powers off. Waking up loads the data from swap.

It looks like I am faced with 2 options in that scenario

  1. Releasing 4 GB of memory from my main partition and creating a new snap partition from 2, currently non-contiguous, memory sections. Presumably, this would require reformatting both partitions and reinstalling everything.
  2. Deleting the current 2GB swap partition and allocating the memory to the main partition. Is this what is called deactivating the swap partition? Then, presumably, I could extend the memory of the main partition and allocate 6 GB for swap file.

Is my understand correct? What do I have to bear in mind in the case 2 regard protection of data and system integrity?

You still haven’t made clear whether you want Suspend to RAM or disk

…whatever was the default with Leap15.6…as I have an SSD I suppose I hardly notice the difference.