Sometimes, my HP Razen laptop (OMEN 15-en1507na) doesn't detect the display port monitor, I have to follow the steps below to make it work.
- disconnect the display port cable,
- power off the monitor
- power on the monitor with display port cable disconnected
- Connect the display port cable