How to install amd-debug-tools (needs systemd-devel) on Bazzite for kernel debugging?

Hardware: HP EliteBook X G1a, AMD Ryzen AI 9 HX 375 (Strix Point)

Problem:
The symptom is that the laptop cannot be woken up from suspend.
Debugged and found that the system hangs on suspend entry when amd_pmc driver is loaded.
Current workaround is to add kargs: initcall_blacklist=amd_pmc_driver_init

I then contacted amd_pc maintainer, who requested:
Install amd-debug-tools from PyPI to collect debug logs for upstream bug report.

Now is the real issue:
amd-debug-tools requires compiling systemd Python bindings, which needs systemd-devel package.

What I tried:

❌ rpm-ostree layer systemd-devel → System won't boot after reboot, had to rollback
❌ Distrobox with systemd-devel → Can install, but can't access /sys/kernel/debug or dmesg
❌ Pre-compile wheel in distrobox then install on host → Script hardcoded to compile csystemd dependency itself

Question:
What's the Bazzite-recommended way to:

Install debug tools that need compilation/system headers?
OR collect amd_pmc debug data for upstream kernel bug reports?

Would appreciate any guidance on the "right way" to do kernel-level debugging on Bazzite.

Orignal message received from AMD maintainer:

Hi,

Please use amd-s2idle from https://pypi.org/project/amd-debug-tools/ to
generate a report.  It may root cause it for you. If it doesn't, please
attach it to a bugzilla or drm/freedesktop bug report and CC me.
Solution
OK LMAO, I figured out a way.
turns out this amd-debug-tool is just a set of damn simple scripts calling journalctl and dmesg to collects logs. I just cloned the repo and directly calls these scripts, it is working perfectly.
https://github.com/superm1/amd-debug-tools/blob/master/src/launcher.py
We are so doomed. What kind of maintainer they have, bundling hard-coded gcc-12 compilation with systemd-headers when these are almost installed on every machine nowadays.:dispair:
Was this page helpful?