Power button doesn't suspend PC and autosuspend on idle broken with secure boot

Hi,
If I set the action for power button to show logout screen , it works , but not for suspend . Also the PC doesn’t suspend after idle . It happens only when secure boot is enabled (dual boot with windows and had to enable it)
edit : manually suspending works with secure boot
specs:

System:
  Kernel: 6.18.3-1-default arch: x86_64 bits: 64 compiler: gcc v: 15.2.1
    clocksource: tsc avail: hpet,acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.18.3-1-default
    root=UUID=d6f34633-2bb0-42cb-a9eb-45ff2b2a2daf splash=silent quiet
    security=selinux selinux=1 enforcing=1 resume=/dev/mapper/cr_swap
    mitigations=auto
  Desktop: KDE Plasma v: 6.5.4 tk: Qt v: N/A info: frameworks v: 6.21.0
    wm: kwin_wayland tools: avail: xscreensaver vt: 2 dm: SDDM Distro: openSUSE
    Tumbleweed 20260108
Graphics:
  Device-1: Advanced Micro Devices [AMD/ATI] Navi 32 [Radeon RX 7700 XT /
    7800 XT] vendor: Sapphire driver: amdgpu v: kernel arch: RDNA-3
    code: Navi-3x process: TSMC n5 (5nm) built: 2022+ pcie: gen: 4
    speed: 16 GT/s lanes: 16 ports: active: DP-1 empty: DP-2, HDMI-A-1,
    HDMI-A-2, Writeback-1 bus-ID: 09:00.0 chip-ID: 1002:747e class-ID: 0300
  Display: wayland server: X.org v: 1.21.1.21 with: Xwayland v: 24.1.8
    compositor: kwin_wayland driver: X: loaded: modesetting unloaded: vesa
    alternate: fbdev dri: radeonsi gpu: amdgpu display-ID: 0
  Monitor-1: DP-1 model: AOC AG276QZD2 serial: <filter> built: 2024 res:
    mode: 2560x1440 hz: 240 scale: 125% (1.25) to: 2048x1152 dpi: 110 gamma: 1.2
    size: 590x334mm (23.23x13.15") diag: 678mm (26.7") ratio: 16:9 modes:
    max: 2560x1440 min: 720x400
  API: EGL v: 1.5 hw: drv: amd radeonsi platforms: device: 0 drv: radeonsi
    device: 1 drv: swrast gbm: drv: kms_swrast surfaceless: drv: radeonsi
    wayland: drv: radeonsi x11: drv: radeonsi
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 25.3.3 glx-v: 1.4
    direct-render: yes renderer: AMD Radeon RX 7800 XT (radeonsi navi32 LLVM
    21.1.7 DRM 3.64 6.18.3-1-default) device-ID: 1002:747e memory: 15.62 GiB
    unified: no display-ID: :0.0
  API: Vulkan v: 1.4.335 layers: 2 device: 0 type: discrete-gpu name: AMD
    Radeon RX 7800 XT (RADV NAVI32) driver: mesa radv v: 25.3.3
    device-ID: 1002:747e surfaces: N/A device: 1 type: cpu name: llvmpipe
    (LLVM 21.1.7 256 bits) driver: mesa llvmpipe v: 25.3.3 (LLVM 21.1.7)
    device-ID: 10005:0000 surfaces: N/A
  Info: Tools: api: eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor gpu: radeontop wl: wayland-info
    x11: xdpyinfo, xprop, xrandr

Is there any guide of how to post this bug on https://bugzilla.opensuse.org/index.cgi ?
It’s super unfriendly for normal users and I don’t think here devs will look into it .

See https://en.opensuse.org/openSUSE:Submitting_bug_reports

“suspend” AKA “suspend to RAM” should work.
“hibernate” AKA “suspend to disk” does not work by design with SecureBoot enabled unless you are using full disk encryption.
Check:

LT-B:~ # systemctl suspend
LT-B:~ # systemctl hibernate

Check exactly which one you set for the power button.

if I run systemctl suspend , the system suspends fine . As for hibernate I do have encrypted the linux partitions but I dual boot in windows so I don’t know if it works or not . I’d prefer solving suspend first.

the only option on KDE power section is ‘sleep’ (I mean there is no hibernate option)

ok, figured out , it seems when booting without secure boot I had sleep and then hibernate, enabled . Booting with secure boot did not let me undo this option , so if anyone can contact devs , report this bug (hibernation should be disabled if not working when on secure boot , so at least sleep can work)

@korakios that is the default with secure boot and kernel lockdown, suspend only, as designed, not a bug. If you want that configuration, the only way is to disable secure boot now days.

edit , wrong quote .

The bug is that hibernate is not automatically disabled and it bricks sleep . I know it’s rare to switch form non secure boot , to secure boot , but I think it should be handled automatically , either in kde or the distro .

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