Skip to content

Instantly share code, notes, and snippets.

@cliffom
Last active June 24, 2026 15:58
Show Gist options
  • Select an option

  • Save cliffom/2a41fbc354c0a8113a9955a1ddf503cf to your computer and use it in GitHub Desktop.

Select an option

Save cliffom/2a41fbc354c0a8113a9955a1ddf503cf to your computer and use it in GitHub Desktop.
2026 SFF PC - Ryzen AM4 Build

2026 SFF PC - Ryzen AM4 Build

I've been wanting to do a small form factor build for a while. Since I already had a spare 5800X3D, RAM, and storage sitting around, it felt hard to justify not putting them to use. With hardware prices where they are today, investing in a case, PSU, and mini-ITX motherboard seemed like a much better value than letting those parts collect dust.

Components

Issues & Resolutions

Images

image image image image
@cliffom

cliffom commented Jun 11, 2026

Copy link
Copy Markdown
Author

Bazzite Immediate Wake from Suspend (Gigabyte B550I AORUS PRO AX + Samsung 980 Pro)

Symptoms

systemctl suspend immediately resumed.

Logs showed:

  • PM: suspend entry (deep)
  • ACPI: PM: Waking up from system sleep state S3
  • xhci_hcd 0000:02:00.0: xHC error in resume, USBSTS 0x401, Reinit

Root Cause

The AMD PCIe root bridge (0000:00:01.1) associated with the Samsung 980 Pro NVMe (0000:01:00.0) was configured as a wake source, causing immediate resume from S3.

Temporary Fix

Disable wake on both the PCIe bridge and NVMe device:

echo disabled | sudo tee /sys/bus/pci/devices/0000:00:01.1/power/wakeup
echo disabled | sudo tee /sys/bus/pci/devices/0000:01:00.0/power/wakeup

Verify:

cat /sys/bus/pci/devices/0000:00:01.1/power/wakeup
cat /sys/bus/pci/devices/0000:01:00.0/power/wakeup

Both should report:

disabled

Result

Suspend works normally.

  • USB mouse wake continues to function.
  • No kernel parameters required.
  • No need to disable XHC0.
  • No need to enable ErP.
  • Persistent Fix

Create /etc/systemd/system/disable-pcie-wakeup.service:

[Unit]
Description=Disable wakeup on AMD PCIe bridge and Samsung NVMe
After=local-fs.target

[Service]
Type=oneshot
ExecStart=/usr/bin/sh -c 'echo disabled > /sys/bus/pci/devices/0000:00:01.1/power/wakeup'
ExecStart=/usr/bin/sh -c 'echo disabled > /sys/bus/pci/devices/0000:01:00.0/power/wakeup'
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

Enable:

sudo systemctl daemon-reload
sudo systemctl enable disable-pcie-wakeup.service

@cliffom

cliffom commented Jun 24, 2026

Copy link
Copy Markdown
Author

SteamOS Suspend Issue Resolution

Create /etc/systemd/system/disable-wakeup.service:

[Unit]
Description=Disable problematic wake sources
After=multi-user.target

[Service]
Type=oneshot
ExecStart=/bin/sh -c 'echo GPP0 > /proc/acpi/wakeup; echo XHC0 > /proc/acpi/wakeup'
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl enable disable-wakeup.service
sudo systemctl start disable-wakeup.service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment