Hey all,
Just got a fresh fw 13 amd 7040 laptop, ran memtest, installed nixos-25.05 (kernel 6.12.47), updated bios to everything latest
straight away i’ve noticed a spam of message:
kernel: xhci_hcd 0000:c1:00.3: Refused to change power state from D0 to D3hot
every several seconds.
Next thing i’ve noticed that randomly after some number of suspend-resume cycles (let’s say around 5-7) you will see this line after resume:
kernel: usb usb2-port2: Cannot enable. Maybe the USB cable is bad?
and no more xhci_hcd errors.
But now after you suspend - on resume it will not resume, but wait a bit on black screen and reboot itself.
journalctl logs show nothing at all, only that system is going to s2idle, everything is normal, and system does sleep as normal - it’s on wake when it reboots.
Now by trial and error I’ve figured out that what causes all those errors is HDMI port. (Nothing is plugged into the HDMI expansion port). After disconnecting this hdmi module (which i yet have not tested if it works actually) - no more spamming errors in log, and no more rebooting after suspend (though i’m still testing, so far more than 50 suspend-resume cycles without issues)
So far I’ve only been testing this without power connected, only on battery.
Is this a bad hdmi module?
update:
after getting relatively certain that the issue has gone away completely with the removal of HDMI module, i’ve tested configurations some more:
- The original (faulty) placement of the HDMI module during test above is left-bottom (relative to when laptop is normal side up)
- When plugged to original location - HDMI module does not actually work when connecting HDMI cable to it. Nothing is reacting, no messages in journalctl, nothing.
- when HDMI module is plugged into other locations - it actually works when plugging HDMI cable into it.
- when HDMI module is plugged into other locations - there is no spamming of
Refused to change power state from D0 to D3hot, though it does appear once when connecting HDMI cable. - when other modules are placed in the original location (i have only usb-a and usb-c modules) - they seem to work normally
I’ve yet to test if reboot bug happens when HDMI module is placed into another location, and if it matters which location it was plugged during boot