Desktop Machine Immediately Wakes from Sleep

I’m relatively new to Linux but like to think I’m tech-savvy enough to figure out solutions to things - I’ve reached a standstill with this though. I’ll try my best to lay out what I’ve (unsuccessfully) tried based on my days of searching.

Happy to try anything and provide any additional info/logs requested!

Description of Issue

I’ve tried on fresh installs of both Fedora KDE Plasma 41 and 42 - no matter how I put my machine to sleep (terminal, lock screen, menu, or power button), it refuses to suspend/sleep and immediately cycles back on to the lockscreen.

My System

Full AMD machine, dualbooting with Windows 11 24H2 on a single NVME

Fastfetch

         .';:cccccccccccc:;,.             ------------------------------------
      .;cccccccccccccccccccccc;.          OS: Fedora Linux 42 (KDE Plasma) x86_64
    .:cccccccccccccccccccccccccc:.        Host: B650M AORUS ELITE AX
  .;ccccccccccccc;.:dddl:.;ccccccc;.      Kernel: Linux 6.14.0-63.fc42.x86_64
 .:ccccccccccccc;OWMKOOXMWd;ccccccc:.     Uptime: 19 mins
.:ccccccccccccc;KMMc;cc;xMMc;ccccccc:.    Packages: 2239 (rpm)
,cccccccccccccc;MMM.;cc;;WW:;cccccccc,    Shell: bash 5.2.37
:cccccccccccccc;MMM.;cccccccccccccccc:    Display (DELL G2724D): 2560x1440 @ 165 Hz in 27" [External]
:ccccccc;oxOOOo;MMM000k.;cccccccccccc:    DE: KDE Plasma 6.3.4
cccccc;0MMKxdd:;MMMkddc.;cccccccccccc;    WM: KWin (Wayland)
ccccc;XMO';cccc;MMM.;cccccccccccccccc'    WM Theme: Breeze
ccccc;MMo;ccccc;MMW.;ccccccccccccccc;     Theme: Breeze (Light) [Qt], Breeze [GTK3]
ccccc;0MNc.ccc.xMMd;ccccccccccccccc;      Icons: breeze [Qt], breeze [GTK3/4]
cccccc;dNMWXXXWM0:;cccccccccccccc:,       Font: Noto Sans (10pt) [Qt], Noto Sans (10pt) [GTK3/4]
cccccccc;.:odl:.;cccccccccccccc:,.        Cursor: breeze (24px)
ccccccccccccccccccccccccccccc:'.          Terminal: konsole 24.12.3
:ccccccccccccccccccccccc:;,..             CPU: AMD Ryzen 7 7800X3D (16) @ 5.05 GHz
 ':cccccccccccccccc::;,.                  GPU 1: AMD Radeon RX 6900 XT [Discrete]
                                          GPU 2: AMD Raphael [Integrated]
                                          Memory: 3.47 GiB / 30.45 GiB (11%)
                                          Swap: 0 B / 8.00 GiB (0%)
                                          Disk (/): 4.95 GiB / 194.55 GiB (3%) - btrfs
                                          Local IP (wlp8s0): 192.168.1.109/24
                                          Locale: en_CA.UTF-8

Attempted:

  1. I tried the most basic option of turning off Wifi and Bluetooth, disconnecting all USB devices and putting the machine to sleep (via power button pressed = sleep). Did not work.
  2. As far as I can tell, my Motherboard does not have specific settings to enable/disable wake-on-lan. (Bios manual here for reference)
  3. Landed on and tried the solution proposed in this thread up to disabling all wake devices: Fedora 41 wakes up immediately after suspend (work around)
    Ran $ cat /proc/acpi/wakeup
Device  S-state   Status   Sysfs node
GPP3      S4    *disabled
GPP4      S4    *disabled
GPP5      S4    *disabled
GPP6      S4    *disabled
GP17      S4    *enabled   pci:0000:00:08.1
XHC0      S4    *enabled   pci:0000:12:00.3
XHC1      S4    *enabled   pci:0000:12:00.4
XHC2      S4    *enabled   pci:0000:13:00.0
GPP0      S4    *disabled  pci:0000:00:01.1
SWUS      S4    *enabled   pci:0000:01:00.0
SWDS      S4    *enabled   pci:0000:02:00.0
GPP1      S4    *disabled
GPP2      S4    *disabled
GPP7      S4    *enabled   pci:0000:00:02.1
UP00      S4    *enabled   pci:0000:04:00.0
DP00      S4    *enabled   pci:0000:05:00.0
NV00      S4    *disabled
DP08      S4    *enabled   pci:0000:05:01.0
EP00      S4    *disabled
DP10      S4    *enabled   pci:0000:05:02.0
WN00      S4    *disabled  pci:0000:08:00.0
DP18      S4    *enabled   pci:0000:05:03.0
LN00      S4    *disabled  pci:0000:09:00.0
DP20      S4    *enabled   pci:0000:05:04.0
NV00      S4    *disabled
DP28      S4    *enabled   pci:0000:05:05.0
EP00      S4    *disabled
DP30      S4    *enabled   pci:0000:05:06.0
EP00      S4    *disabled
DP38      S4    *enabled   pci:0000:05:07.0
EP00      S4    *disabled
DP40      S4    *enabled   pci:0000:05:08.0
EP00      S4    *disabled
DP48      S4    *disabled
EP00      S4    *disabled
DP50      S4    *disabled
EP00      S4    *disabled
DP58      S4    *disabled
EP00      S4    *disabled
DP60      S4    *enabled   pci:0000:05:0c.0
XH00      S4    *enabled   pci:0000:0f:00.0
DP68      S4    *enabled   pci:0000:05:0d.0
SA00      S4    *disabled  pci:0000:10:00.0
GPP8      S4    *enabled   pci:0000:00:02.2

Ran below to disabled all enabled devices and tried sleeping - immediately woke up. Ran again to revert back to default.

echo 'GP17' | sudo tee /proc/acpi/wakeup; echo 'XHC0' | sudo tee /proc/acpi/wakeup; echo 'XHC1' | sudo tee /proc/acpi/wakeup; echo 'XHC2' | sudo tee /proc/acpi/wakeup; echo 'GPP0' | sudo tee /proc/acpi/wakeup; echo 'SWUS' | sudo tee /proc/acpi/wakeup; echo 'SWDS' | sudo tee /proc/acpi/wakeup; echo 'GPP7' | sudo tee /proc/acpi/wakeup; echo 'UP00' | sudo tee /proc/acpi/wakeup; echo 'DP00' | sudo tee /proc/acpi/wakeup; echo 'DP08' | sudo tee /proc/acpi/wakeup; echo 'DP10' | sudo tee /proc/acpi/wakeup; echo 'DP18' | sudo tee /proc/acpi/wakeup; echo 'DP20' | sudo tee /proc/acpi/wakeup; echo 'DP28' | sudo tee /proc/acpi/wakeup; echo 'DP30' | sudo tee /proc/acpi/wakeup; echo 'DP38' | sudo tee /proc/acpi/wakeup; echo 'DP40' | sudo tee /proc/acpi/wakeup; echo 'DP60' | sudo tee /proc/acpi/wakeup; echo 'XH00' | sudo tee /proc/acpi/wakeup; echo 'DP68' | sudo tee /proc/acpi/wakeup; echo 'GPP8' | sudo tee /proc/acpi/wakeup
  1. More google searching took me to the Power management/Wakeup triggers page on the arch wiki. Specifically section 3.3.2 on Gigabyte motherboards as I have a GIGABYTE B650M AORUS ELITE AX (rev 1.2).
    • I tried adding acpi_osi="!Windows 2015" to the kernel parameters (by hitting e in Grub, and adding that to the linux line). I couldn’t find the specific _osi string for Windows 11 24H2, but I did try acpi_osi="!Windows 2021" for base Windows 11 as detailed by Microsoft here. Neither worked. I did also (unsuccessfully) try both these acpi_osi options in combination with disabling all wakeup devices, and also just with GPP0 disabled.

So yeah, That is what I’ve tried over the past few days. I’m still leaning towards it being something with my motherboard but I’m 100% uncertain. I’m not sure. VERY open to suggestions as I’d love to continue exploring Fedora and Linux in general!

Just wanted to share that I figured out a solution to this with assistance elsewhere. Fairly certain it is a Gigabyte motherboard-related quirk. solution for me was:

Modify GRUB_CMDLINE_LINUX string in /etc/default/grub to add acpi_osi=\"!Windows 2015\" acpi_os_name=\"Microsoft Windows\" and refresh grub.

Thus my line is:

GRUB_CMDLINE_LINUX="rhgb quiet acpi_osi=\"!Windows 2015\" acpi_os_name=\"Microsoft Windows\""

and rebuilt Grub2 by running this in terminal:

sudo grub2-mkconfig -o /boot/grub2/grub.cfg

a couple reboots and now my PC sleeps as I would expect it to :slight_smile: