Ok, so … I would like to keep this as short as possible. Lost hours and too much mental energy to find a fix for this issue.
I have an AMD build: X670 (TUF GAMING X670E-PLUS WIFI) + Ryzen 9700X + RX9070XT.
Fedora KDE is recently upgraded from 43 to 44, but I made a fresh install today, just to make sure it’s not related to upgrade. The problem appears on this system on all installed OSes: Fedora KDE, Kinoite, openSuse Tumbleweed (and Solus in the past).
The problem is that the pc enters sleep, but it does not stay there: it wakes up in like 29 seconds to 1 min. Then the PC will stay awake with displays on. Checked multiple time the bios, everything should be fine from that perspective.
Current config:
.',;::::;,'. user@fedora11
.';:cccccccccccc:;,. --------------
.;cccccccccccccccccccccc;. OS: Fedora Linux 44 (KDE Plasma Desktop Edition) x86_64
.:cccccccccccccccccccccccccc:. Kernel: Linux 7.0.10-201.fc44.x86_64
.;ccccccccccccc;.:dddl:.;ccccccc;. Uptime: 2 mins
.:ccccccccccccc;OWMKOOXMWd;ccccccc:. Packages: 10 (flatpak), 2577 (rpm)
.:ccccccccccccc;KMMc;cc;xMMc;ccccccc:. Shell: bash 5.3.9
,cccccccccccccc;MMM.;cc;;WW:;cccccccc, Display (MSI MAG401QR): 3440x1440 in 40", 144 Hz [External] *
:cccccccccccccc;MMM.;cccccccccccccccc: Display (Q32G1WG4): 2560x1440 in 32", 60 Hz [External]
:ccccccc;oxOOOo;MMM000k.;cccccccccccc: DE: KDE Plasma 6.6.5
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 [GTK2/3]
ccccc;0MNc.ccc.xMMd;ccccccccccccccc; Icons: breeze [Qt], breeze [GTK2/3/4]
cccccc;dNMWXXXWM0:;cccccccccccccc:, Font: Noto Sans (10pt) [Qt], Noto Sans (10pt) [GTK2/3/4]
cccccccc;.:odl:.;cccccccccccccc:,. Cursor: breeze (24px)
ccccccccccccccccccccccccccccc:'. Terminal: konsole 26.4.1
:ccccccccccccccccccccccc:;,.. CPU: AMD Ryzen 7 9700X (16) @ 5.58 GHz
':cccccccccccccccc::;,. GPU 1: AMD Radeon RX 9070 XT [Discrete]
GPU 2: AMD Radeon Graphics [Integrated]
Memory: 3.86 GiB / 30.49 GiB (13%)
Swap: 0 B / 8.00 GiB (0%)
Disk (/): 311.39 GiB / 1.86 TiB (16%) - btrfs
Local IP (eno1): 192.168.50.204/24
Locale: en_US.UTF-8
The solution(s) proposed by chatgpt is this:
Option A — udev rule (clean and standard on Fedora)
sudo nano /etc/udev/rules.d/90-disable-amd-usb-wakeup.rules
Add:
ACTION=="add", SUBSYSTEM=="pci", KERNEL=="0000:14:00.3", ATTR{power/wakeup}="disabled"
ACTION=="add", SUBSYSTEM=="pci", KERNEL=="0000:14:00.4", ATTR{power/wakeup}="disabled"
Apply:
sudo udevadm control --reload-rules
sudo udevadm trigger
Option B — systemd-tmpfiles (often better on Kinoite)
sudo nano /etc/tmpfiles.d/amd-usb-wakeup.conf
Then:
w /sys/bus/pci/devices/0000:14:00.3/power/wakeup - - - - disabled
w /sys/bus/pci/devices/0000:14:00.4/power/wakeup - - - - disabled
Very clean on immutable systems
Applied at boot automatically
Often preferred on Kinoite
Went for Option A for Fedora KDE and it works. Will try option B tomorrow for Kinoite and also check if A works for TW.
Maybe will be useful for someone!
Thanks!
G.