Framework 16 I need to unplug HDMI cable to detect the monitor

Which Linux distro are you using?

Ubuntu

Which release version?
(if rolling release without a release version, skip this question)

24.04.2 LTS

(If rolling release, last date updated?)

Which kernel are you using?

Linux 6.11.0-21-generic x86_64

Which BIOS version are you using?

3.05

Which Framework Laptop 16 model are you using?

AMD Ryzen™ 7040 Series

I have an issue where when I use an HDMI switch to reconnect the FW16 to a single monitor, in mirror mode, I have to often unplug the cable to have the laptop detect the monitor.

xrandr when not detecting the external monitor:

$ xrandr
Screen 0: minimum 16 x 16, current 1920 x 1080, maximum 32767 x 32767
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 340mm x 220mm
1920x1080 164.83*+
1440x1080 164.85
(truncated)
720x400 164.23
640x350 164.46

and when it does detect it:

$ xrandr
Screen 0: minimum 16 x 16, current 1920 x 1080, maximum 32767 x 32767
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 340mm x 220mm
1920x1080 164.83*+
1440x1080 164.85
(truncated)
720x400 164.23
640x350 164.46
DP-2 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 600mm x 340mm
1920x1080 59.96*+
1440x1080 59.99
(truncated)
720x400 59.55
640x350 59.77