Question Screen turning black and back on when switching light

Jul 14, 2020
1
0
10
0
I have a stand lamp and recently switched my monitor to a Samsung c27g5 using a DisplayPort. Whenever I turn the lamp on and off the display become black like it's turned off and then comes back on. once I had to take out and plug back in the DisplayPort. I noticed people said to buy a better cable but I'm using the one I got from Samsung with the monitor and I'm not sure if I can get any better cable in the time being. Is there any other solution I could use?
 

ASK THE COMMUNITY