Framework 13 AMD 7040 reboot after resume (because of HDMI ?)

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:

  1. The original (faulty) placement of the HDMI module during test above is left-bottom (relative to when laptop is normal side up)
  2. 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.
  3. when HDMI module is plugged into other locations - it actually works when plugging HDMI cable into it.
  4. 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.
  5. 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

1 Like

Just for clarity, do you have a display plugged into the hdmi socket in order to cause these problems, or is the problem there even without a display plugged in.

nothing was plugged into the HDMI module during the tests.

I’ve updated the text of the first post to reflect that, and also added a little update on more testing

Did you see this page. It explains which port works for display output.

1 Like

WHAT! how stupid am I to not have found that!

On the picture in that article my “original” location for HDMI expansion was 2 (left-bottom), so no wonder it does not work)

That explains a lot! thank you

Though it’s still a bit concerning that if plugged into the “wrong” port the expansion module causes the system to not be able to wake sometimes…