F41 doesn't suspend (sometimes)

Sometimes, when my F41 install tries to suspend, it only suspends for about 1-2 seconds and then powers back on.

I’ve been having this problem for a while, and I’ve experienced it with F39, F40 and now F41 (and Ubuntu 24.04/24.10 as well).

It’s sporadic. Some days, it will suspend just fine. Other days it will not. To test it, I run

sleep 1; systemctl suspend -i

And I disconnect all USB except for the keyboard and mouse. I have disabled power-on-via-network and everything else I can think of in my BIOS.

If I run that above command, sometimes it suspends successfully, other times it suspends for 1-2 seconds and then turns back on. If it fails, and I try it again, it almost always fails again. I have to reboot my computer to get it to suspend again.

It seems to work pretty reliably just after a reboot, but then after a while of running get into a state where it can’t stay suspended.

Any ideas of what I can try?

System:
  Kernel: 6.11.7-300.fc41.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.43.1-2.fc41
  Desktop: GNOME v: 47.1 tk: GTK v: 3.24.43 wm: gnome-shell dm: GDM
    Distro: Fedora Linux 41 (Workstation Edition)
Machine:
  Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
  Mobo: ASUSTeK model: PRIME Z790-P WIFI v: Rev 1.xx
    serial: <superuser required> part-nu: SKU UEFI: American Megatrends v: 1604
    date: 12/15/2023
CPU:
  Info: 16-core (8-mt/8-st) model: 13th Gen Intel Core i7-13700 bits: 64
    type: MST AMCP arch: Raptor Lake rev: 1 cache: L1: 1.4 MiB L2: 24 MiB
    L3: 30 MiB
  Speed (MHz): avg: 800 min/max: 800/5100:5200:4100 cores: 1: 800 2: 800
    3: 800 4: 800 5: 800 6: 800 7: 800 8: 800 9: 800 10: 800 11: 800 12: 800
    13: 800 14: 800 15: 800 16: 800 17: 800 18: 800 19: 800 20: 800 21: 800
    22: 800 23: 800 24: 800 bogomips: 101376
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel Raptor Lake-S GT1 [UHD Graphics 770] vendor: ASUSTeK
    driver: i915 v: kernel arch: Gen-13 ports: active: DP-1
    empty: HDMI-A-1,HDMI-A-2 bus-ID: 00:02.0 chip-ID: 8086:a780
  Display: wayland server: Xwayland v: 24.1.4 compositor: gnome-shell
    driver: X: loaded: modesetting unloaded: fbdev,vesa dri: iris gpu: i915
    display-ID: 0
  Monitor-1: DP-1 model: BenQ EW3280U res: 3840x2160 dpi: 139
    diag: 806mm (31.7")
  API: OpenGL v: 4.6 vendor: intel mesa v: 24.2.6 glx-v: 1.4 es-v: 3.2
    direct-render: yes renderer: Mesa Intel Graphics (RPL-S)
    device-ID: 8086:a780 display-ID: :0.0
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
Audio:
  Device-1: Intel Raptor Lake High Definition Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:7a50
  API: ALSA v: k6.11.7-300.fc41.x86_64 status: kernel-api
  Server-1: JACK v: 1.9.22 status: off
  Server-2: PipeWire v: 1.2.6 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
Network:
  Device-1: Intel Raptor Lake-S PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:7a70
  IF: wlp0s20f3 state: down mac: <filter>
  Device-2: Realtek RTL8125 2.5GbE vendor: ASUSTeK driver: r8169 v: kernel
    pcie: speed: 5 GT/s lanes: 1 port: 4000 bus-ID: 05:00.0 chip-ID: 10ec:8125
  IF: eno1 state: up speed: 100 Mbps duplex: full mac: <filter>
Bluetooth:
  Device-1: Intel AX201 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 bus-ID: 1-14:8 chip-ID: 8087:0026
  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
RAID:
  Hardware-1: Intel Volume Management Device NVMe RAID Controller Intel
    driver: vmd v: 0.6 bus-ID: 00:0e.0 chip-ID: 8086:a77f
Drives:
  Local Storage: total: 3.64 TiB used: 691.37 GiB (18.6%)
  ID-1: /dev/nvme0n1 vendor: Crucial model: CT4000P3PSSD8 size: 3.64 TiB
    speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 25.9 C
Partition:
  ID-1: / size: 97.66 GiB used: 11.26 GiB (11.5%) fs: btrfs
    dev: /dev/nvme0n1p4
  ID-2: /boot size: 973.4 MiB used: 372.9 MiB (38.3%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-3: /boot/efi size: 598.8 MiB used: 24.4 MiB (4.1%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-4: /home size: 3.54 TiB used: 679.72 GiB (18.7%) fs: btrfs
    dev: /dev/nvme0n1p3
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 25.2 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 16 GiB note: est. available: 15.35 GiB used: 4.95 GiB (32.2%)
  Processes: 539 Power: uptime: 5m wakeups: 0 Init: systemd v: 256
    target: graphical (5) default: graphical
  Packages: pm: rpm pkgs: N/A note: see --rpm pm: flatpak pkgs: 2 Compilers:
    gcc: 14.2.1 Shell: Bash v: 5.2.32 running-in: ptyxis-agent inxi: 3.3.36

Added f41, power-management

If I disable all USB wakeups using:

sudo bash -c “echo XHCI > /proc/acpi/wakeup”

Then suspend does NOT wake up.

I had only 2 USB devices left: Keyboard and mouse. It was the mouse that was causing the trouble.

A logitech wireless mouse. Argh. Is there any way I can disable just the wake-on-mouse?

Bus 001 Device 009: ID 046d:c548 Logitech, Inc. Logi Bolt Receiver