I’ll try to explain in detail how I’ve managed to get the second screen recognized in Linux.
First, it’s important to clarify that I’ve never been able to get the second monitor recognized in Windows.
However, in Linux, the problem of not recognizing the second screen seems to be intermittent.
When this problem occurs in Linux, I take the port where the cable for monitor 1 was being recognized and switch it with the cable for monitor 2.
If I leave both cables connected at this point, the image is only displayed on one monitor.
Then, when I switch the cable for monitor 2 to port 1 (which was working for monitor 1) and leave only monitor 2 connected, the image appears on it. At this point, I can take the cable from monitor 1 and plug it into port 2. At this point, both monitors start displaying an image again.