Framework 13 AMD, regular black internal screen

I run nixos on a framework 13 with the 7840U, running gnome 46 on wayland.
Most of the time the laptop is connected to a usb4 dock and the lid is closed, I only use the external screen.
I also suspend the laptop daily overnight.

What I noticed, is that very often, when I take the laptop off the dock, the internal display does not work, it’s totally black. The system is running fine though, I can connect through SSH, and when plugging it back into the dock, the external display works perfectly. But to get the internal one back on, I need to reboot.
This also happens when the laptop was suspended when I unplugged it.

I’m running nixos with the latest stable kernel and the latest linux-firmware. I have had this issue on both 6.9 and 6.10, possibly also on earlier versions.

I couldn’t find anything useful in the logs, but I can upload the full journal for a boot where I encountered this issue if someone would want to take a look.
I do see the lid open/close events though, so those are coming through, but nothing related to the display or GPU or such.

same exact situation. Normally I use it in dual screen, one external, and the internal. One morning the screen (internal) is black. The external continues to work, but nothing seems to change the state of the primary screen.